

// funzione x disabilitare il tasto destro
function right(e){
if (navigator.appName == "Netscape" && (e.which == 2 || e.which == 3)) return false;
else if (navigator.appName == "Microsoft Internet Explorer" && (event.button == 2 || event.button == 3))
{alert("Copyright 2007 - All rights reserved - Tutti i diritti riservati");
return false;}
}


// funzione x disabilitare la selezione del testo
function disableSelect(){
document.onselectstart = function()  {
alert("Copyright 2007 - All rights reserved - Tutti i diritti riservati");
return false;} 
}

// per associare le due funzioni agli eventi del documento
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN)
window.onmousedown=right;
window.onload = disableSelect;
