/*******************************************************************************
 *
 * NETXIS :: Explore the city in your way ::
 *
 * $Id: Misc.js,v 1.0 2003/07/01 00:00:00 ying Exp $
 *
 * Copyright (c) 2002-2003 NETXIS Ltd. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of NETXIS Ltd.
 * ("Confidential Information"). You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with NETXIS
 *
 *******************************************************************************/


/**
 * Miscellaneous Functions
 *
 * @author	$Author$
 * @revision	$Revision$
 *
 * @see Browser.js
 */

 
function noRightClick ()
{
	if (browser.ns4)
	{
		document.captureEvents(Event.MOUSEDOWN);
		document.onmousedown = disableClickNS4;
	}
	else if (browser.kde)
		document.onmousedown = disableClickKDE;
	else
		document.oncontextmenu = disableClick;
		
	document.oncontextmenu = new Function("return false");
}


function disableClickKDE(e)
{
	if(e.button==2||e.button==3)
		return false;
}

function disableClickNS4(e)
{
	if(e.which==2 || e.which==3)
		return false;
}

function disableClick()
{
	return false;
}
