//v1.0 23 aug 2002 chris bassett

function newWindow(page) {
	picWindow = window.open( page, 'newWindow', 'toolbar=no,location=no,scrollbars=no,width=600,height=400')
}

if (window.event + "" == "undefined") {
	event = null;
}

function HM_f_PopUp() {
	return false;
}

function HM_f_PopDown() {
	return false;
}

popUp = HM_f_PopUp;
popDown = HM_f_PopDown;

HM_PG_MenuWidth = 142;
HM_PG_FontFamily = "arial, helvetica, sans-serif;";
HM_PG_FontSize = 8;
HM_PG_FontBold = 0;
HM_PG_FontItalic = 0;
HM_PG_FontColor = "#5A717B";
HM_PG_FontColorOver = "#FFFFFF";
HM_PG_BGColor = "#FFFFFF";
HM_PG_BGColorOver = "#5A717B";
HM_PG_ItemPadding = 2;
HM_PG_BorderWidth = 1;
HM_PG_BorderColor = "#5A717B";
HM_PG_BorderStyle = "solid";
HM_PG_SeparatorSize = 1;
HM_PG_SeparatorColor = "#5A717B";
HM_PG_ImageSrc = "";
HM_PG_ImageSrcLeft = "HM_More_black_left.gif";
HM_PG_ImageSrcOver = "";
HM_PG_ImageSrcLeftOver = "HM_More_black_left.gif";
HM_PG_ImageSize = 6;
HM_PG_ImageHorizSpace = 0;
HM_PG_ImageVertSpace = 3;
HM_PG_KeepHilite = true; 
HM_PG_ClickStart = 0;
HM_PG_ClickKill = false;
HM_PG_ChildOverlap = 20;
HM_PG_ChildOffset = 10;
HM_PG_ChildPerCentOver = null;
HM_PG_TopSecondsVisible = .5;
HM_PG_StatusDisplayBuild = 0;
HM_PG_StatusDisplayLink = 0;
HM_PG_UponDisplay = null;
HM_PG_UponHide = null;
HM_PG_RightToLeft = 0;
HM_PG_CreateTopOnly = 0;
HM_PG_ShowLinkCursor = 1;
HM_PG_NSFontOver = true;

// Resets nav rollovers to off state. No return value.
// v2.0 13 aug 2002 chris bassett
// now without switch statement
function BI_reset(intCurrentMenu) { //as void
	
	if (intCurrentMenu > 0){
		
		if (Math.floor(intCurrentMenu) == Math.ceil(intCurrentMenu)){
			
			var strNav = 'nav' + (intCurrentMenu);
			var intOriginalImage = 2 * (intCurrentMenu - 1);
			
			document.images[strNav].src = menuImages[intOriginalImage];
			
		}
		
	}

}

//resets all images to default state
//v 1.0 13 august 2020 chris bassett

function BI_setAll(strNavPrefix, intNewMenu){ //as void
	
	
	
	for (i = 1; i <= (menuImages.length / 2); i ++){
		
		var strNavToCall = strNavPrefix + i;
		
		if (i == eval(intNewMenu)){
			
			var intImageSet = (2 * i) - 1;
			
		}else{
			
			var intImageSet = 2 * (i -1);
		
		}
		
		document.images[strNavToCall].src = menuImages[intImageSet];
	}
}

//handles the multiple calls for mouseout actions
// v 1.0 13 aug 2002 chris bassett
function BI_HM_out(intCurrentMenu, strMenuPrefix){ //as void
	
	var strMenuToCall = strMenuPrefix + intCurrentMenu;
	
	currentMenu = intCurrentMenu;
	popDown(strMenuToCall);
	
}

//handles the multiple calls for mouseover actions
//v 1.0 13 aug 2002 chris bassett
function BI_HM_over(intCurrentMenu, intNewMenu, strNavPrefix, strMenuPrefix, strPassThrough){ //as void
	
	var strMenuToCall = strMenuPrefix + intNewMenu;
	
	currentMenu = intCurrentMenu;
	popUp(strMenuToCall, strPassThrough);
	BI_setAll(strNavPrefix, intNewMenu);
	
}

//handles simple single rollovers
//v3.0 23 aug 2002 chris bassett
function BI_singleroll(strName, strImage, strPath){ //as void
	
	//set the default image directory if we didn't get one
	if (strPath == ''){
		strPath = 'images/';
	}
	
	var strMyImage = strPath + strImage;
	document.images[strName].src = strMyImage;
	
}



function ckQuiz()
{
	
	if ((document.candidateQuiz.q1[0].checked == false) && (document.candidateQuiz.q1[1].checked == false) && (document.candidateQuiz.q1[2].checked == false) && (document.candidateQuiz.q1[3].checked == false))
	{
		alert("Please select an answer for Question #1");
		candidateQuiz.q1[0].focus();
		return false;
	}
	
	if ((document.candidateQuiz.q2[0].checked == false) && (document.candidateQuiz.q2[1].checked == false))
	{
		alert("Please select an answer for Question #2");
		candidateQuiz.q2[0].focus();
		return false;
	}
	
	if ((document.candidateQuiz.q3[0].checked == false) && (document.candidateQuiz.q3[1].checked == false) && (document.candidateQuiz.q3[2].checked == false))
	{
		alert("Please select an answer for Question #3");
		candidateQuiz.q3[0].focus();
		return false;
	}
	
	if ((document.candidateQuiz.q4[0].checked == false) && (document.candidateQuiz.q4[1].checked == false))
	{
		alert("Please select an answer for Question #4");
		candidateQuiz.q4[0].focus();
		return false;
	}
	
	if ((document.candidateQuiz.q5[0].checked == false) && (document.candidateQuiz.q5[1].checked == false) && (document.candidateQuiz.q5[2].checked == false))
	{
		alert("Please select an answer for Question #5");
		candidateQuiz.q5[0].focus();
		return false;
	}
	
	if ((document.candidateQuiz.q6[0].checked == false) && (document.candidateQuiz.q6[1].checked == false))
	{
		alert("Please select an answer for Question #6");
		candidateQuiz.q6[0].focus();
		return false;
	}
			
	if (document.candidateQuiz.q7.value== '' ) 
	{
		window.alert("Please select an answer for Question #7");
    document.candidateQuiz.q7.focus();
		return false;
	}
	
	if ((document.candidateQuiz.q8[0].checked == false) && (document.candidateQuiz.q8[1].checked == false) && (document.candidateQuiz.q8[2].checked == false))
	{
		alert("Please select an answer for Question #8");
		candidateQuiz.q8[0].focus();
		return false;
	}
	
	if ((document.candidateQuiz.q9[0].checked == false) && (document.candidateQuiz.q9[1].checked == false) && (document.candidateQuiz.q9[2].checked == false))
	{
		alert("Please select an answer for Question #9");
		candidateQuiz.q9[0].focus();
		return false;
	}
			
	if (document.candidateQuiz.q10.value== '' ) 
	{
		window.alert("Please select an answer for Question #10");
    document.candidateQuiz.q10.focus();
		return false;
	}
	
	if ((document.candidateQuiz.q11[0].checked == false) && (document.candidateQuiz.q11[1].checked == false))
	{
		alert("Please select an answer for Question #11");
		candidateQuiz.q11[0].focus();
		return false;
	}
			
	if (document.candidateQuiz.q12.value== '' ) 
	{
		window.alert("Please select an answer for Question #12");
    document.candidateQuiz.q12.focus();
		return false;
	}
	
	
}

function clearInput(ele, str)
{
	if ( ele.value == str )
	{ ele.value = ''; }
}

function restoreInput(ele, str)
{
	if ( ele.value == '' || ele.value == str )
	{ ele.value = str; }
}



/*------------------------------------------------------------
	Document Text Sizer- Copyright 2003 - Taewook Kang.  All rights reserved.
	Coded by: Taewook Kang (txkang.REMOVETHIS@hotmail.com)
	Web Site: http://txkang.com
	Script featured on Dynamic Drive (http://www.dynamicdrive.com)
	
	Please retain this copyright notice in the script.
	License is granted to user to reuse this code on 
	their own website if, and only if, 
	this entire copyright notice is included.
--------------------------------------------------------------*/

//Specify affected tags. Add or remove from list:
var tgs = new Array( 'td' );

//Specify spectrum of different font sizes:
// var szs = new Array( 'xx-small','x-small','small','medium','large','x-large','xx-large' );
var szs = new Array( '0.6em','0.7em','0.8em','0.9em','1.0em','1.1em','1.2em' );
var startSz = 1;

function ts( trgt,inc ) {
	if (!document.getElementById) return
	var d = document,cEl = null,sz = startSz,i,j,cTags;
	
	sz += inc;
	if ( sz < 0 ) sz = 0;
	if ( sz > 6 ) sz = 6;
	startSz = sz;
		
	if ( !( cEl = d.getElementById( trgt ) ) ) cEl = d.getElementsByTagName( trgt )[ 0 ];

	cEl.style.fontSize = szs[ sz ];

	for ( i = 0 ; i < tgs.length ; i++ ) {
		cTags = cEl.getElementsByTagName( tgs[ i ] );
		for ( j = 0 ; j < cTags.length ; j++ ) cTags[ j ].style.fontSize = szs[ sz ];
	}
}