var startpage = location.search.substr(1);function Login_OK () {	var username;	if (document.loginForm.username.value == '') {		if (confirm('You didn\'t enter a username.  Would you like to log in as a Guest?')) {			username = "Guest";			document.loginForm.username.value = "Guest";		} else {			document.loginForm.username.select ();			return false;		}	} else {		username = document.loginForm.username.value;	}		if (username != 'Guest' && username != 'guest' && document.loginForm.password.value == '') {		if (confirm('You didn\'t enter a password.  Would you like to log in as a Guest?')) {			username = "Guest";			document.loginForm.username.value = "Guest";		} else {			document.loginForm.password.select ();			return false;		}	}		// store the user's name to fill in later	var later = new Date();	later.setFullYear (later.getFullYear() + 10);	document.cookie = "sftoaot=" + username + "; path=/; expires=" + later.toGMTString();		// If a startpage was sent in, store it in the appropriate cookie	if (startpage != "")		document.cookie = username + "=" + startpage + "; path=/; expires=" + later.toGMTString();		return true;}function Show_Supp (href) {	Open_Supp_Window ('start/loginhelp.html?' + href);}function Open_Tour () {	Open_Supp_Window ('tour/tour.html');}var suppwin;function Open_Supp_Window (href) {	if (suppwin != null && !suppwin.closed)		suppwin.focus ();	suppwin = window.open (href, "tourWindow", "top=20,left=20,width=630,height=440,scrollbars,resizable,menubar", true);}function Fillin_Username () {	var cook = document.cookie;	var pos = cook.indexOf ("sftoaot=");	if (pos != -1) {		var start = pos + 8;		var end = cook.indexOf (";", start);		if (end == -1) end = cook.length;		cook = cook.substring (start, end);		document.loginForm.username.value = cook;	}	document.loginForm.username.select ();}
