
// Set-up to use getMouseXY function onMouseMove
document.onmousemove = getMouseXY;

// Temporary variables to hold mouse x-y pos.s
var posx = 0
var posy = 0

// Main function to retrieve mouse x-y pos.s

function getMouseXY(e) {
 // grab the x-y pos.s 
 if (!e) var e = window.event;
  if (e.pageX || e.pageY)
 {
 	posx = e.pageX;
 	posy = e.pageY;
 }
 else if (e.clientX || e.clientY)
 {
 	posx = e.clientX + document.body.scrollLeft;
 	posy = e.clientY + document.body.scrollTop;
 }
   
   
  // catch possible negative values in NS4
  if (posx < 0){posx = 0}
  if (posy < 0){posy = 0}  
  // show the position values in the form named Show
  // in the text fields named MouseX and MouseY
//  document.Show.MouseX.value = tempX
//  document.Show.MouseY.value = tempY
  return true
}




