//---------disable rightclick-------------//
var message="";
function clickIE4(){
if (event.button==2){
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("return false")
//---------end right click ---------------//


PopUpURL    = "The right click options are disabled";

isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;

if (isIE||isNN)
{
 document.oncontextmenu=checkV;
}
else
{
 document.captureEvents(Event.MOUSEDOWN || Event.MOUSEUP);
 document.onmousedown=checkV;
} 

function checkV(e)
{
	if (isN4)
	 {
	if (e.which==2||e.which==3)
		{
		//dPUW=alert(PopUpURL);
		return false;
		}
	}
	else
	{
	//dPUW=alert(PopUpURL);
	return false;
	}
}