document.onkeydown=checkKeys
var browser=navigator.appName.substring(0,9);
if (browser=="Microsoft"){
	document.oncontextmenu=new Function("return false")
}
else if(browser=="Netscape"){
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=disable_right_click;
}
function checkKeys()
{
	if (event.ctrlKey && event.keyCode==78) //added by Vishalkumar on 29/03/2005 to disable user from shift + clicking on the links
	{
    		event.keyCode=0;
    		return false;
	}
  if(event.keyCode == 116) //added by Vishalkumar on 29/03/2005 to disable user from pressing F5 button
  {
    alert("Sorry!!! This feature has been disabled on this Trading Site");
    event.keyCode = 0;
 		event.returnValue = false;
  }  
  if(event.keyCode == 27) //added by Vishalkumar on 29/03/2005 to disable user from pressing escape button on textfields
  {
    event.keyCode = 0;
 		event.returnValue = false;
  }  
  if(event.shiftKey && event.keyCode == 13) //added by Deepak Singhania on 21/03/2006 to disable user from pressing shift+enter button
  {
    alert("Sorry!!! This feature has been disabled on this Trading Site");
    event.keyCode = 0;
 		event.returnValue = false;
  }
}
function disable_right_click(e)
{
	if(e.which==2||e.which==3)
	{
		return false
	}
	else{
		return true
	}
}
function mouseDown(e) {
 var shiftPressed=0;
 if (parseInt(navigator.appVersion)>3) {
  if (navigator.appName=="Netscape")
       shiftPressed=(e.modifiers-0>3);
  else shiftPressed=event.shiftKey;
  if (shiftPressed) {
   alert("Sorry!!! This feature has been disabled on this Trading Site");
   return false;
  }
 }
 return true;
}
if (parseInt(navigator.appVersion)>3) {
 document.onmousedown = mouseDown;
 if (navigator.appName=="Netscape") 
  document.captureEvents(Event.MOUSEDOWN);
}