<!--
var arrLogoImg=new Array(
"images/logo1.jpg",
"images/logo2.jpg",
"images/logo3.jpg",
"images/logo4.jpg",
"images/logo5.jpg",
"images/logo6.jpg",
"images/logo7.jpg"
);
var arrLogoObj=new Array();
Preload(arrLogoImg,arrLogoObj);

var currImg=0;
function FadeImages(){
	if (currImg>arrLogoImg.length-1) currImg=0;
	document.getElementById("imgLogo").src=arrLogoObj[currImg].src;
	currImg++;
	setTimeout('FadeImages()',4000);
}

function Preload(arrFrom,arrToGen) {
	var l = arrFrom.length;
	for (var i=0; i<l; i++) {
		arrToGen[i] = new Image();
		arrToGen[i].src = arrFrom[i];
	}
}

function ValidateSearch(frm){
	if (Trim(frm.search.value)=="") {alert("Enter keywords to search for.");frm.search.focus();return false;}
	else {
		if (frm.radSearchType[0].checked) frm.action="search_hr.asp";
		if (frm.radSearchType[1].checked) frm.action="search.asp";
		return true;
	}
}

function SubmitSearch(){
	var frm=document.forms[0];
	if (ValidateSearch(frm)) frm.submit();
}

//used for paging:
function GoToPageNo(page){
	document.forms[document.forms.length-1].page.value=page;
	document.forms[1].submit();
}
//used for paging:
function GoToRecNo(start){
	document.frmMain.start.value=start;
	document.frmMain.submit();
}


//opens a new popup window containing the page from parameter "url":
var newWin;
function OpenWin(url,title,w,h){
	w=parseInt(w);
	h=parseInt(h);
	if (!mac) if (new String(newWin)!="undefined" && newWin!=null) if (!newWin.closed) newWin.close();
	newWin=window.open(url,title,"width="+w+",height="+h+",top=0,left=0,location=no,directories=no,hotkeys=no,copyhistory=no,resizable=yes,menubar=no,status=no,toolbar=no,scrollbars=yes,z-lock=yes");
	//if (mac) win.resizeTo(w+25,h+50);
	newWin.focus();
}

//opens a new popup window containing the image from parameter:
var newWinImg;
function OpenImage(imgFile){
	if (new String(newWinImg)!="undefined" && newWinImg!=null) if (!newWinImg.closed) newWinImg.close();
	var newWinImg=window.open("","ProjectNewWindowImage","width=100,height=100,top=0,left=0,location=no,directories=no,hotkeys=no,copyhistory=no,resizable=no,menubar=no,status=no,toolbar=no,scrollbars=no,z-lock=yes");
	newWinImg.document.write('<html><head><title>Project :: New Window Image</title></head><body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" bgcolor="#ffffff" onload="window.resizeTo(parseInt(document.images[\'img\'].width)+10,parseInt(document.images[\'img\'].height)+29)"><img src="' + imgFile + '" name="img" /></body></html>');
	newWinImg.document.close();
	newWinImg.focus();
}
function exitform(appnumber)
{
	if(confirm("This is your Online Application Number "+appnumber+" which you will need to return to this form. Click OK to continue or Cancel to return to page!"))
	{
		document.frmApp.btnExit.value="Exit";
		document.frmApp.submit();
	}
	else
	{
		return;
	}
}
//-->