document.onselectstart=new Function('return false');
  function ds(e){ //se encarga de bloquear el boton derecho
     if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)){
        alert("Lo siento, el botón derecho del ratón está inhabilitado");
        return false;  
        }
     else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button== 2 || event.button == 3)) {
        alert("Lo siento, el botón derecho del ratón está inhabilitado");
        return false;
        }
    //return true;
     return false;
     }
  function ra(){
     return true;
	 }
document.onmousedown=ds;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
//window.onmousedown=right;

document.onclick=ra;
  function p1(){
     for(pp=0;pp<document.all.length;pp++){
	     if(document.all[pp].style.visibility!='hidden'){
		    document.all[pp].style.visibility='hidden';
		    document.all[pp].id='ph';
		    }
	     }
	 }
  function p2(){
     for (pp=0;pp<document.all.length;pp++){
	     if(document.all[pp].id=='ph') document.all[pp].style.visibility='';
		 }
     }
window.onbeforeprint=p1;
window.onafterprint=p2;