//NoPrint/NoCopy Script
//This script disables the right mouse button
//and the ctrl and alt keys
//Author:
//Carl Martin
//Education Technology Service Center
//Angelo State University
//San Angelo TX
// 2/15/2006


function IE(e) 
//traps right-click in IE
{
     if (navigator.appName == "Microsoft Internet Explorer" && (event.button == "2" || event.button == "3"))
     {
	  	alert("For security reasons, that operation is disabled");		 
        return false;
     } 
}
function NS(e) 
//traps right-click in Netscape/firefox, et al
{
     if (document.layers || (document.getElementById && !document.all))
     {
          if (e.which == "2" || e.which == "3")
          {
			  	alert("For security reasons, this operation is disabled");
                return false;
          }
     }
}

function handlePress(e) {
//traps ctrl and alt keys
  var evtobj=window.event? event : e;
  if (evtobj.ctrlKey || evtobj.altKey) {
	  alert("For security reasons, disabled use of Ctrl or Alt Key");
	return false;
  }
}			


document.onmousedown=IE;
document.onmouseup=NS;
document.oncontextmenu=new Function("return false");
document.onkeydown=handlePress;

