////noclick_msg = "マウス右ボタンはクリックできません";
//// do not edit below this line
//// ===========================
//bV  = parseInt(navigator.appVersion)
//bNS = navigator.appName=="Netscape"
//bIE = navigator.appName=="Microsoft Internet Explorer"
//
//function nrc(e) {
//   if (bNS && e.which > 1){
//      alert(noclick_msg);
//      return false
//   } else if (bIE && (event.button >1)) {
//     alert(noclick_msg);
//     return false;
//   }
//}
//
//document.onmousedown = nrc;
//if (document.layers) window.captureEvents(Event.MOUSEDOWN);
//if (bNS && bV<5) window.onmousedown = nrc;


function disableRightClick(e)
{  
  if(!document.rightClickDisabled) // initialize
  {
    if(document.layers) 
    {
      document.captureEvents(Event.MOUSEDOWN);
      document.onmousedown = disableRightClick;
    }
    else document.oncontextmenu = disableRightClick;
    return document.rightClickDisabled = true;
  }
  if(document.layers || (document.getElementById && !document.all))
  {
    if (e.which==2||e.which==3)
    {
      return false;
    }
  }
  else
  {
    return false;
  }
}
disableRightClick();
