/* BEGIN - No Right Click - BEGIN */
if (window.Event) // only Netscape will have the CAPITAL E.
  document.captureEvents(Event.MOUSEUP); // catch the mouse up event.

function nocontextmenu() { // this function only applies to IE4 or Mozilla, ignored otherwise.
  if (window.Event) { // again, IE or Mozilla?
    return false;
  }
  else {
    event.cancelBubble = true;
    event.returnValue = false;
    return false;
  }
}

function norightclick(e) { // this function is used by all others.
  if (window.Event) { // again, IE or Netscape?
    if (e.which == 2 || e.which == 3)
      return false;
  }
  else
    if (event.button == 2 || event.button == 3) {
      event.cancelBubble = true;
      event.returnValue = false;
      return false;
    }
}

document.oncontextmenu = nocontextmenu; // for IE4 or Mozilla.
document.onmousedown = norightclick; // for all others.
/* END - No Right Click - END */
