t_tip = null;

document.onmousemove = update_tt;

function update_tt(e)
{
 if(t_tip != null)
 {
  x = (document.all) ? window.event.x + t_tip.offsetParent.scrollLeft : e.pageX;
  y = (document.all) ? window.event.y + t_tip.offsetParent.scrollTop  : e.pageY;
  t_tip.style.left = (x + 20) + "px";
  t_tip.style.top   = (y + 20) + "px";
 }
}

function show_tt(id)
{
 t_tip = document.getElementById(id);
 t_tip.style.display = "block"
}


function hide_tt()
{
 t_tip.style.display = "none";
}