var message="Sorry, No Right Click Allowed in this site!."; // Put your message for the alert box between the quotes.
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;


function ehan( evnt ){ if( evnt.which == 3 ) return false; return true; }document.oncontextmenu = new Function( 'return false' );document.captureEvents( Event.MOUSEDOWN );document.onmousedown = ehan;
 
keys = new Array();
keys["f17"] = 'Ctrl';
 
saveCode=""
function myFunc(code) {
  alert('Ctrl has been disabled');
}
 
document.onkeydown = function(){
 // Capture and remap F-key
//   alert(window.event.keyCode);
  if(window.event && keys["f"+window.event.keyCode])  {
    saveCode=window.event.keyCode;
    window.event.keyCode = 505;
  }
  if(window.event && window.event.keyCode == 505) { 
    // New action for keycode
    myFunc(saveCode)
    return false; // Must return false or the browser will execute old code
     }
}

