wmtt = null;

function updateWMTT(e) {
	x = (document.all) ? window.event.x + document.documentElement.scrollLeft : e.pageX;
	y = (document.all) ? window.event.y + document.documentElement.scrollTop  : e.pageY;
	if (wmtt != null) {
		wmtt.style.left = (x + 10) + "px";
		wmtt.style.top 	= (y + 10) + "px";
	}
}

function showWMTT(e, id) {
	hideall();
	wmtt = document.getElementById(id);
	updateWMTT(e);
	if(wmtt.style.display == "none"){
		wmtt.style.display = "block";
	}
	else{
		wmtt.style.display = "none";
	}
}

function Tastendruck (Ereignis) {
  if (!Ereignis)
    Ereignis = window.event;
  if (Ereignis.button) {
      // hideall();
  }
}

document.onmousedown = Tastendruck;