// SITE FUNCTIONS 
// TESTABILITY INC.
// CREATED 6/29/2004
// BY James Gibson

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (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);

function saveLoginForm(form,action) {
	var msg = "";
	if (!document.getElementById('password').value) {
	 msg = "Please enter your Password.";
	 setgoto = "password";
	}
	if (!document.getElementById('userName').value) {
	 msg = "Please enter your PIN.";
	 setgoto = 'userName';
	}
	if(msg==""){
		form.action = action;
		document.getElementById('button1').disabled = true;
		form.submit();
	}
	else{
		alert(msg);
		document.getElementById(setgoto).focus();
		return false;
	}
}

function SetHomePage()
{
	oHomePage.setHomePage('http://www.fhba.com/');
	event.returnValue = false;
}

function interviewAudio(person) {
	fullURL = "/interviews/" + person + ".html";
	var load = window.open(fullURL,'','scrollbars=no,menubar=no,height=60,width=300,resizable=yes,toolbar=no,location=no,status=no');
}

function cancelForm(action) {
	window.location.href = action;
}