function hide_help(id) {
    var o = document.getElementById(id);

    o.style.display = 'none';
}

function show_help(e,id,t) {

    var o = document.getElementById(id);
    var l;

    o.style.display = 'block';

    if (typeof(window.pageYOffset)=="undefined") {
      var sy = document.documentElement.scrollTop;
      var sx = document.documentElement.scrollLeft;
      var ow = document.body.clientWidth;
    } else {
      var sy = window.pageYOffset;
      var sx = window.pageXOffset;
      var ow = window.outerWidth;
    }

    o.style.top = (e.clientY + sy)+"px";
    l = (e.clientX + sx);
    

    if (l + o.offsetWidth > ow)
        l -= (o.offsetWidth)

    o.style.left = l +"px";
    
    t.onmouseout = function() {
        hide_help(id);
    }
}