// JavaScript Document
// disable right click 
var paMsg = "Sorry, copying of this content is not permitted. Should you wish to use this content, please contact us directly."
function click(e)
{
  if (document.all)
  {
    if (event.button == 2 || event.button == 3)
    {
      alert(paMsg);
      return false;
    }
  }
  else
  {
    if (e.button == 2 || e.button == 3)
    {
      e.preventDefault();
      e.stopPropagation();
      //alert(paMsg);
      return false;
    }
  }
}

ctlPress = false;
// prevent copying using Ctl + C
function ctlPressed() {
	if(event.keyCode==17){
		ctlPress = true;
	}
	if(ctlPress && event.keyCode==67) {
		alert(paMsg);
		return false;
	}
}
function ctlUp() {
	if(event.keyCode==17){
		ctlPress = false;
	}
}

if (document.all) // for IE browsers
{
  document.onmousedown = click;
}
else // for Firefox browsers
{
  document.onclick = click;
}

// prevent text being copied
window.onload = function() {
  document.onselectstart = function() {return false;} // ie
  document.onkeydown = ctlPressed;
  document.onkeyup = ctlUp;

}