<!-- 

//declare these as global variables so they can be used by all functions
var xcurs=0;
var ycurs=0;
var oldXcurs = 0;
var oldYcurs = 0;
var olderXcurs = 0;
var olderYcurs = 0;

//this function stores the cursor position after each mousemove event
//see the second half of this function at the bottom of html body
function updatePosition(e){
if (navigator.appName == 'Netscape'){
xcurs = e.pageX;
ycurs = e.pageY;
}else{
//IE version
xcurs = event.clientX;
ycurs = event.clientY;
}
}

//function displays cursor location
//initialized in the body statement
function showPos(){
//save old
olderXcurs = oldXcurs;
olderYcurs = oldYcurs;
oldXcurs = xcurs;
oldYcurs = ycurs;
//display new
document.getElementById("modDataXloc").innerHTML = xcurs;
document.getElementById("modDataYloc").innerHTML = ycurs;
//figure distance - hooray Pythagoras!
dist = Math.sqrt(Math.pow((olderXcurs - oldXcurs),2) + Math.pow((olderYcurs - oldYcurs),2));
speed = Math.floor(dist*10);	//to get speed in pixels per second
document.getElementById("modDataSpeed").innerHTML = speed;

myTimeout=setTimeout('showPos()',100)	//timeout of 100 milliseconds = 1/10 sec
}


function linkOn(who){document.getElementById("modDataLink").innerHTML = who;}

function linkOff(){document.getElementById("modDataLink").innerHTML = "-";}
// -->