function noRightClick(evnt) 
{
if (navigator.appName.toUpperCase().match(/NETSCAPE/) != null) 
{
if (evnt.which == 3)
{
alert("Quelltextzugriff nicht gestattet!");
return false;
}
}
else file://Microsoft Internet Explorer
if (event.button==2)
alert("Quelltextzugriff nicht gestattet!");
}

document.onmousedown = noRightClick;