<!--

/*
	File:  noRightClick.js
	Purpose:  Bind and export Nathan's no right clicking allowed routine.
	Created:  4/2002 - Nathan
	Modification History:
		· 4/22/2002 - Nathan - modified as taken from the public domain
*/

//-------------------------------------------------------------------------
// This handler is used to filter out the right-click in IE.
//-------------------------------------------------------------------------
function clickIE() {

	if (document.all) {
		return false;
	}

} // clickIE()


//-------------------------------------------------------------------------
// This handler is used to filter out the right-click in Netscape.
//-------------------------------------------------------------------------
function clickNS(e) {
	if (document.layers||(document.getElementById&&!document.all)) {
		if (e.which==2||e.which==3) {
			return false;
		}
	}
} // clickNS()


	/// bind the appropriate function handler...
	if (document.layers) {
		document.captureEvents(Event.MOUSEDOWN);
		document.onmousedown=clickNS;
	} else{
		document.onmouseup=clickNS;
		document.oncontextmenu=clickIE;
	}
	document.oncontextmenu = new Function("return false");


//-->
