//Capture the onblur event so clicking on another window can execute a javascript.//This would be used to close a window in body tag.//captureEvents(onblur); removed 3-24-2002 causes javascript error in each file?//The following code sets up a timer to close a window after a specified interval that//is passed to startclock in the body tag.var timerID = nullvar timerRunning = falsefunction stopclock(){if(timerRunning)clearInterval(timerID)timerRunning = false}function startclock(seconds){// Make sure the clock is stoppedstopclock()timerID = setInterval("closeit()",1000*seconds)timerRunning = true}function closeit(){self.close();}// This script and many more are available free online at -->// The JavaScript Source!! http://javascript.internet.com -->// Beginfunction Startlarge(page) {OpenWin = window.open(page, "large", "height=500,width=600,scrollbars=yes,left=0,top=0");OpenWin.focus();}// End -->// Beginfunction Start(page) {OpenWin = window.open(page, "big", "height=400,width=600,scrollbars=yes,left=0,top=0");OpenWin.focus();}// End -->// Begin// Beginfunction Startlittle(page) {OpenWin = window.open(page, "little", "height=100,width=300,scrollbars=yes,left=0,top=0");OpenWin.focus();}// End -->// Beginfunction Startmedium(page) {OpenWin = window.open(page, "medium", "height=200,width=480,scrollbars=yes,left=0,top=0");OpenWin.focus();}// End -->// Beginfunction gohome() {var urlpath = location.pathname;var newpath = urlpath.substring(0,urlpath.lastIndexOf("/"));var newlocation = newpath.concat("/first.htm");window.location.href = newlocation;}// End -->// Beginfunction goback(){window.history.back();}// End -->// Beginfunction logo(){document.write("<IMG SRC=\"../images/pagesmal.gif\" alt=\"Our Logo!\" border=\"0\">");document.write("");}// End -->// Beginfunction copyright(){document.write("<p class=\"small\">Copyright &copy; 2002-2007 <A HREF=\"http://crbadger.uwsp.edu\" target=\"_blank\">Dr. Robert Badger</A> | <A HREF=\"http://www.uwsp.edu\" target=\"_blank\">University of Wisconsin-Stevens Point</A>| <A HREF=\"http://mypoint.uwsp.edu\" target=\"_blank\">Login to Mypoint</A></p>");document.write("");}// End -->// Beginfunction lastupdate(){var lastModDate = new Date(document.lastModified);var lastModMonth = lastModDate.getMonth() +1;var lastModDay = lastModDate.getDate();var lastModYear = lastModDate.getYear();document.write("Last Updated: " + lastModMonth + "/" + lastModDay + "/" + lastModYear + "");//end script -->}//end -->