function submitSearch(thisForm) {
	if (thisForm.searchtext.value == '') {
		alert("Please enter some search text before submitting your search.");
		return false;
	} else {
		return true;
	}
}

function processSearch(thisForm, includePage, searchItems) {
	if(submitSearch(thisForm) == true) {
		startRequest(includePage, searchItems);
	}
}

function currentYear() {
	var currentTime = new Date();
	var thisYear = currentTime.getFullYear();
	document.getElementById("copyrightDate").innerHTML = thisYear;	
}

function popmailwin(x, y) {
	window.open(x,y,'status=no,scrollbars=yes,resizable=yes,width=480,height=400');
}


function setHome(jhsph_arg){

if(navigator.appVersion.charAt(navigator.appVersion.indexOf("MSIE") + 5) >= 5 && navigator.platform.indexOf("Win16") == -1 
&& navigator.platform.indexOf("Mac") == -1){
jhsph_arg.style.behavior='url(#default#homepage)';
jhsph_arg.setHomePage(jhsph_arg);
jhsph_arg.href="#";
return true;

}
else {alert("This function only works on Internet Explorer for the PC versions 5.5 and up.\nIn Firefox, click Tools->Options... and then click Use Current Pages to set this as your home page.")}
}

function openWindow(file){
	popupWin = window.open(file, 'popup', 'scrollbars=yes,status=0,menubar=no,resizable=yes,width=618,height=450');
myTimer=setTimeout("popupWin.focus()",1000);
}