function goLogin() {
	self.location.hash = "loginForm";
	var theField = document.getElementById("loginIdField");
	theField.select();
	focusField(theField);
}
function focusField(theField) {
	theField.style.backgroundColor = "#FFFF00";
}
function blurField(theField) {
	theField.style.backgroundColor = "#FFFFFF";
}

function checkLoginForm(theForm) {
	if (theForm.id.value.length==0) return false;
	if (theForm.pw.value.length==0) return false;
	return true;
}

sfHover = function() {
	var sfEls = document.getElementById("navHome").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
sfHover2 = function() {
	var sfEls = document.getElementById("sideNav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
if (window.attachEvent) window.attachEvent("onload", sfHover2);
