var wmtt;

function updateWMTT(e) {
    if (wmtt !== null) {
        x = (document.all) ? window.event.x + wmtt.offsetParent.scrollLeft : e.pageX;
        y = (document.all) ? window.event.y + wmtt.offsetParent.scrollTop  : e.pageY;

        wmtt.style.width = 300+"px";
        wmtt.style.left = (x-330) + "px";
        wmtt.style.top   = (y) + "px";
    }
}

function showWMTT(id) {
    wmtt = document.getElementById(id);
    wmtt.style.display = "block";
    document.onmousemove = updateWMTT;
}

function hideWMTT() {
    wmtt.style.display = "none";
}
