function mouseDown(e) {
 if (parseInt(navigator.appVersion)>3) {
  var clickType=1;
  if (navigator.appName=="Netscape") clickType=e.which;
  else clickType=event.button;
  if (clickType!=1) {
   //alert ('Right mouse button is disabled.');
   return false;
  }
 }
 return true;
}
if (parseInt(navigator.appVersion)>3) {
 document.onmousedown = mouseDown;
 document.onclick=reEnable;
 if (navigator.appName=="Netscape") 
  document.captureEvents(Event.MOUSEDOWN);
}
function reEnable(){
return true
}
function disableselect(e){
return false
}
document.onselectstart=new Function ("return false");
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}