//
// Right Mouse Intercept
//
function max_is_right(e) {
  if (!e) e = window.event;
  if (e.button) {
    if (e.button == 2 || e.button == 3)
      return true;
  }
  else if (e.which) {
    if (e.which == 3 || e.which == 2)
      return true;
  }
  return false;
}
function max_right(e) {
  if (max_is_right(e)) {
    alert(max_right_msg);
    return false;
  }
  return true;
}
function max_right_cancel(e) {
  if (max_is_right(e))
    return false;
  return true;
}
document.onmousedown=max_right;
document.onmouseup=max_right_cancel;
document.onclick=max_right_cancel;
if (document.layers) {
  window.captureEvents(Event.MOUSEDOWN);
  window.onmousedown=max_right;
}
