function show_hint(message,width,show)
{
 if (navigator.appVersion != "Netscape")
 {
 document.getElementById('tooltip').style.left = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX -155

document.getElementById('tooltip').style.top = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY+5

	html = "<TABLE width=\"" + width + "\" align=\"center\" bgcolor=\"#154574\" id=\"tooltip\">";
	html += "<TR><TD valign=\"top\" class=\"bord\">";
	html += "<DIV class=\"text\" id=\"telo\"><center>" + message + "</center></div></td></tr></table>";

    if (show == 1 && message != '')
    {
      document.all('hint').innerHTML = html;
      document.all('hint').style.width = width;
      h = document.body.scrollWidth  - document.all('hint').offsetWidth; 
      v = document.body.scrollHeight - document.all('hint').offsetHeight; 
      posx1 = document.body.scrollLeft + event.clientX + 20; 
      posy1 = document.body.scrollTop + event.clientY + 10; 
      posx2 = document.body.scrollLeft + event.clientX - document.all('hint').offsetWidth - 10; 
      posy2 = document.body.scrollTop + event.clientY - document.all('hint').offsetHeight - 10; 

      if (posx1<h)
        document.all('hint').style.posLeft = posx1;
      else
        document.all('hint').style.posLeft = posx2;
      if (posy1<v)
        document.all('hint').style.posTop = posy1;
      else
        document.all('hint').style.posTop = posy2;

      document.all('hint').style.visibility = "visible";
    }
    else
    {
      document.all('hint').style.visibility = "hidden";
      document.all('hint').style.posTop = 0;
      document.all('hint').style.posLeft = 0;
    }
 }
}

function move_hint()
{
 if (navigator.appVersion != "Netscape")
 {
  h = document.body.scrollWidth  - document.all('hint').offsetWidth; 
  v = document.body.scrollHeight - document.all('hint').offsetHeight; 
  posx1 = document.body.scrollLeft   + event.clientX + 20; 
  posy1 = document.body.scrollTop    + event.clientY + 10; 
  posx2 = document.body.scrollLeft   + event.clientX - document.all('hint').offsetWidth  - 10; 
  posy2 = document.body.scrollTop    + event.clientY - document.all('hint').offsetHeight - 10; 
  if (posx1<h) 
     document.all('hint').style.posLeft = posx1;
  else 
     document.all('hint').style.posLeft = posx2;
  if (posy1<v) 
     document.all('hint').style.posTop = posy1;
  else 
     document.all('hint').style.posTop = posy2;
 }
}