document.onmousedown = checkClick
document.onkeydown = document_onkeydown
if (document.layers)
//********************************************************************************************       	
	var message="Sorry, No Right Click Allowed!!!";
	function clickIE6()
	{
	    if (event.button==2)
	    {
	        alert(message);
	        return false;
	    }
	}	
	function clickNS4(e)
	{
	    if (document.layers||document.getElementById&&!document.all)
	    {
	        if (e.which==2||e.which==3)
	        {
	            alert(message);
	            return false;
	        }
	    }
	}

    if (document.layers)
    {
        document.captureEvents(Event.MOUSEDOWN);
        document.onmousedown=clickNS4;
    }
    else if (document.all&&!document.getElementById)
    {
        document.onmousedown=clickIE6;
    }
    document.oncontextmenu=new Function("alert(message);return false")

       	
function checkClick(ev)
{
	if(event.button != 1)
	{
		//return true;
	}	
}
//********************************************************************************************       	
//right click disabled script start from here
var message="Sorry the right click option is disabled";
//********************************************************************************************       	
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")		
//********************************************************************************************       	
function document_onkeydown()
{
	///if(event.ctrlKey ==true)
	////{
	/////	alert("Sorry You cannot print or copy from this document");
	////	return false;
	////}
	////else if(event.altKey ==true)
	////{
	////	alert("Sorry You can not save this document")
	////	return false;
	////}
}
//********************************************************************************************       	
function CallOnClose()
{
	window.close(); 
}
//********************************************************************************************       	
function onKeyDown() 
{
	var pressedKey = String.fromCharCode(event.keyCode).toLowerCase();
	if (event.ctrlKey && (pressedKey == "c" || pressedKey == "v" || pressedKey == "a" ))
	{		
		event.returnValue = false;
	}
}
//********************************************************************************************       	

