
//		determine_cursor_x_y.js		2007-05-29
//
//	functions to determine the x and y coordinates of cursor

/*	2007-05-29
	copied from
	http://javascript.about.com/library/blmousepos.htm
	steve chapman
*/

function mouseX(evt) {
if (evt.pageX) return evt.pageX;
else if (evt.clientX)
   return evt.clientX + (document.documentElement.scrollLeft ?
   document.documentElement.scrollLeft :
   document.body.scrollLeft);
else return null;
}
function mouseY(evt) {
if (evt.pageY) return evt.pageY;
else if (evt.clientY)
   return evt.clientY + (document.documentElement.scrollTop ?
   document.documentElement.scrollTop :
   document.body.scrollTop);
else return null;
}




