var left;
var top;
function hlpinfo(info, place)
{
  if (place=='left')
  {
    left=160; // left=table_width+10
    top=0;
  }
  else if (place=='top1')
  {
    left=0;
    top=30;
  }
  else
  {
    left=0;
    top=0;
  }
  document.onmousemove=newPos;
  if (document.layers)
  document.captureEvents(Event.MOUSEMOVE);
  txt="<div><table width=150 bgcolor=#336699 CELLPADDING=0 CELLSPACING=0 border=0><tr><td><table width=100% CELLPADDING=1 CELLSPACING=1 border=0><tr><td bgcolor=#ffffdd><font face='Verdana, Arial, Helvetica' size=1 color=#336699>"+info+"</font></td></tr></table></td></tr></table></div>";
  divwrite(txt);
  if (document.layers)
  {
    divwrite(txt);
    showinfo();
  }
}

function divwrite(txt)
{
  if (document.all)
    document.all["hlpdiv"].innerHTML = txt;
  else
  {
    var lyr = document.hlpdiv.document;
    lyr.write(txt);
    lyr.close();
  }
}

function showinfo()
{
  if (document.all)
  {
    document.all.hlpdiv.style.visibility="visible";
  }
  else
    document.hlpdiv.visibility="show";
}

function clrinfo()
{
  if (document.all){
    document.all.hlpdiv.style.visibility="hidden";
  }
  else{
    document.hlpdiv.visibility="hide";
  }
  document.onmousemove=fixPos;
  if (document.layers)
  document.captureEvents(Event.MOUSEMOVE);
}

function newPos(e){
  if (document.all)
  {
    fix1=document.body.scrollLeft+10;
    fix2=document.body.scrollTop+10;
    document.all.hlpdiv.style.left=event.clientX+fix1-left;
    document.all.hlpdiv.style.top=event.clientY+fix2-top;
  }
  else
  {
    document.hlpdiv.left=e.pageX+10-left;
    document.hlpdiv.top=e.pageY+10-top;
  }
    showinfo();
}

function fixPos(e){
  if (document.all)
  {
    document.all.hlpdiv.style.left=0;
    document.all.hlpdiv.style.top=0;
  }
}
