function popWin(url){
	if (url == "http://www.medlineplus.gov"){ // this url does not allow framing
		window.open("http://www.medlineplus.gov","links","width=900, height=600, top=25, left=25, statusbar=no, menubar=no, resizable=yes, scrollbars=yes");
	} else if (url == "help.html"){ // for the help menu
		window.open("help.html","help","width=600, height=660, top=25, left=25, statusbar=no, menubar=no, resizable=yes, scrollbars=no");
	} else {
		window.open("linkFrames.cfm?pageURL="+url,"links","width=995, height=600, top=25, left=25, statusbar=no, menubar=no, resizable=yes");
	}
}


function doit() {
    timerRunning = false;
    window.location.href="index.html";
}


function microsoftMouseMove() {
    if (window.event.x != document.test.x.value && window.event.y != document.test.y.value) {
        if (timerRunning) {
            clearTimeout(myTimer);
            myTimer = setTimeout('doit()',600000);  //SET for 10 minutes
			//myTimer = setTimeout('doit()',10000);  //SET for 10 seconds -- for testing
        }	
        document.test.x.value = window.event.x;
        document.test.y.value = window.event.y;
    }
}

var myTimer = setTimeout('doit()',1200000); // invoke doit() after five seconds of mouse inactivity
var timerRunning = true;

