﻿// JScript File

var lastX=0;
var lastY=0;
wmtt = null; 
document.onmousemove = updateWMTT;
function updateWMTT(e) {

  // notwendig für IE
  if (!e) e = window.event;
  lastX=e.x;
  lastY=e.y;
  if (wmtt != null) {
    var tab = document.getElementById('tbTabelle').offsetParent;
    x = (document.all) ? lastX + wmtt.offsetParent.scrollLeft+tab.offsetLeft : e.pageX;
    y = (document.all) ? lastY + wmtt.offsetParent.scrollTop  : e.pageY;
    wmtt.style.left = (x - 20) + "px";
    wmtt.style.top   = (y + 100+20) + "px";
  }
}
 
function showWMTT(id) {
  wmtt = document.getElementById(id);
  wmtt.style.display = "block"
}
 
function hideWMTT() {
  wmtt.style.display = "none";
}
