	if (window.Event)
		document.captureEvents(Event.MOUSEUP);
	
	function noContextMenu() {
		event.cancelBubble = true;
		event.returnValue = false;
		return false;
	}
	function noRightClick(e) {
		if (window.Event)
			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;
			}
		}
	}
	if (document.layers)
		document.captureEvents(Event.MOUSEDOWN);
	document.oncontextmenu = noContextMenu;
	document.onmousedown = noRightClick;
	document.onmouseup = noRightClick;
	
	var help = false;

  function clicked() {
    if(!help) return;
    for(var i = 0; i < document.all.length; i++)
      document.all[i].style.cursor='';

    var tag = event.srcElement;

    if(typeof(tag.help) != "undefined") {
			alert(tag.help);
    }
		
    event.cancelBubble = true;
    event.returnValue = false;

    help = false;
    document.detachEvent("onclick", clicked);
  }

  function helpClicked() {
    event.cancelBubble = true;
    help=true;
    for(var i = 0; i < document.all.length; i++)
      document.all[i].style.cursor='help';

    document.attachEvent("onclick", clicked);
  }
