
var msg = "Sorry, right-mouse click operations are not allowed for this page.";
var msg1 = "Sorry, clipboard operations are not allowed for this page.";

function cID(o){if (o && o.id) {if (o.id.substr(0,2)=='ss'){return false;}} return true;}
function cIE(){if (event.button==2 && cID(event.srcElement)){alert(msg);return false;}}
function cNS(e){if (document.layers||document.getElementById&&!document.all){if ((e.which==2||e.which==3) && cID(e.target)){alert(msg);return false;}}}
function cCM(e){var src = (e && e.target ? e.target : event.srcElement); if (cID(src)) {alert(msg);return false;}}
if (document.layers){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=cNS;}
else if (document.all&&!document.getElementById){document.onmousedown=cIE;}
document.oncontextmenu=cCM;
var disabled = {a:0, c:0, x:0};
if (typeof window.event == 'undefined'){
   document.onkeypress = function(e){
   if (e.ctrlKey && (String.fromCharCode(e.which).toLowerCase() in disabled)){
 	  alert(msg1);e.preventDefault();return false;
 	}
   }
 }else{
   document.onkeydown = function(){
 	if (event.ctrlKey && (String.fromCharCode(event.keyCode).toLowerCase() in disabled)){
 	  alert(msg1);event.returnValue=false;
 	}
   }
 }
