A parte de lo que te dice Shfile, prueba con esto:
<script language="JavaScript">
<!--
//alert(navigator.userAgent);
/// Variables globales
var bEntorno = "1";
var bDebug = "0";
var bEnCurso = false;
/// Deshabilitar el botón derecho del ratón
function NoRaton(e) {
if(bEntorno == "1") {
if (document.layers && (e.which == 3 || e.which == 2)) alert("Botón derecho del ratón deshabilitado.");
else if (event.button == 2 || event.button == 3) alert("Botón derecho del ratón deshabilitado.");
return false;
}
}
document.onmousedown = NoRaton;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown = NoRaton;
//-->
</script>
<script language=JavaScript>
<!--
var message="EL boton derecho está deshabilitado";
function clickNS(e)
{
if (document.layers||(document.getElementById&&!document.all))
{
if (e.which==2||e.which==3)
{
alert(message);
return false;
}
}
}
if (document.layers)
{
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS;
}
else
{
document.onmouseup=clickNS;
}
document.oncontextmenu=new Function("return false")
// -->
</script>