//============================================================
//Capturing The Mouse Position in IE4-6 & NS4-6
//(C) 2000 www.CodeLifter.com
//Free for all users, but leave in this header
//20031110 LN modified to remove form elements, modified IE to ie to use brothercake's sniffer.

// If NS -- that is, !IE -- then set up for mouse capture
if (!ie) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;

var tempX = 0
var tempY = 0

function getMouseXY(e) {
  if (ie) { // grab the x-y pos.s if browser is IE - use brothercake's sniffer
    tempX = event.clientX + document.body.scrollLeft
    tempY = event.clientY + document.body.scrollTop
  } else {  // grab the x-y pos.s if browser is NS
  	//scripts work fine, but because we are passing something, we have to give it a number. Null is NOT the same as undefined, so we must pass something valid (numerical). 
    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
}
