if (window.Event) {					 		 // Only Netscape will have the CAPITAL E
   document.captureEvents(Event.MOUSEUP);	 // Catch the mouse up event
}

// Disable context menu in IE5+
function noContextMenu() {
	event.cancelBubble = true;
	event.returnValue = false;
	return false;
}

// This function is used by all others
function noRightClick(e) {
	if (window.Event)	  			  		  // Check for IE or Netscape
	{
	   // Netscape
	   if (e.which == 2 || e.which == 3) {
	   	  return false;
	   }
	}
	else
	{
	 	// IE
		if (event.button == 2 || event.button == 3) {
		   event.cancelBubble = true;
		   event.returnValue = false;
		   return false;
		}
	}
}
document.oncontextmenu = noContextMenu;		  // For IE5+
document.onmousedown = noRightClick;		  // For all others
