
 NS4 = (document.layers) ? 1 : 0;
 IE4 = (document.all) ? 1 : 0;
 DOM = (document.getElementById) ? 1 : 0;
 if (!IE4)
  {
   document.captureEvents(Event.MOUSEMOVE)
   document.onmousemove = getMouseXY;
  }


var tempX = 0
var tempY = 0

function getMouseXY(e) {
  if (IE4) { // grab the x-y pos.s if browser is IE
    tempX = window.event.x+document.body.scrollLeft
//Customized!
    tempY = event.clientY + document.body.scrollTop

  } else {  // grab the x-y pos.s if browser is NS
    tempX = e.pageX
    tempY = e.pageY
  }
  // catch possible negative values in NS4
  if (tempX < 0){tempX = 0}
  if (tempY < 0){tempY = 0}
  // show the position values in the form named Show
  // in the text fields named MouseX and MouseY
  return true
}


 function show_messbox(x)
  {
   if (IE4) {getMouseXY(this)}
   if (NS4)
   {
    document.layers[x].visibility='show';
    document.layers[x].left=tempX+14;
   document.layers[x].top=tempY-150;
   }
   else if (IE4)
   {
    document.all[x].style.visibility='visible';
    document.all[x].style.left=tempX+14;
  document.all[x].style.top=tempY-150;
 
     }
   else if (DOM)
   {
    document.getElementById(x).style.visibility='visible';
    document.getElementById(x).style.left=tempX+14;
    document.getElementById(x).style.top=tempY-150;

   }
  }
 function hide_messbox(x)
 {
   if (NS4)
   {
    document.layers[x].visibility='hide';
   }
   else if (IE4)
   {
    document.all[x].style.visibility='hidden';
    }
   else if (DOM)
   {
    document.getElementById(x).style.visibility='hidden';
   }
 }



