document.oncontextmenu = new Function("return false;");

if ( document.layers ) {
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown = ContextClick;
}
if ( document.all ) {
	document.onselectstart = ContextClick;
}
if ( document.all ) {
	document.ondragstart = ContextClick;
}

function ContextClick() {
	if ( document.all )	return false;
	 else if ( document.layers ) {
			if ( evenement.which == 3 ) {
			return false;
		}
	
		if ( evenement.modifiers == 2 ) {
			return false;
		}
	}
	return true;
}