﻿ var debug = true;
function rightclick(e) {
     //alert(navigator.appName + "," + e.which.toString() + "," +event.button.toString());
     if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) {
         alert('This Page is fully protected!'); // for chrome
         return false;
     }
     else
         if ((navigator.appName == 'Microsoft Internet Explorer' || navigator.appName == 'Chrome' || navigator.appName == 'Opera' || navigator.appName == 'Safari') && (event.button == 2 || event.button == 3)) {
         alert('This Page is fully protected!');
         return false;
     }
     
   
   return true;
}
document.onmousedown = rightclick;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown = rightclick; 
        
        
var popup="Sorry, right-click is disabled.";
 function noimg(go) 
 { 
 if (document.all) 
 { 
 if (event.button == 2)
  {
   alert(popup); 
   return false; 
   }
 }
 if (document.layers)
 { 
 if (go.which == 3)
  { 
  alert(popup);
   return false;
   } 
 } 
 }
  if (document.layers) 
{ document.captureEvents(Event.MOUSEDOWN); } 
document.onmousedown=noimg; 

