var g_BANDIT_SEARCH_FORM="homeAdvSearchForm";//To Show/Hide divsfunction showDiv(showWhich, hideWhich){	var showThisDiv=eval("document.getElementById('"+showWhich+"')")	showThisDiv.style.display=''	if(hideWhich!=''){		var hideThisDiv=eval("document.getElementById('"+hideWhich+"')")		hideThisDiv.style.display='none'	}}//To Open Data Linksfunction openLink(UNID){var thisform=document.forms[0]var location="/"+thisform.dbPath.value+'/0/'+UNID+'?OpenDocument&Query='+thisform.currLink.valuewindow.location=location}//To set background color in navigation on loadfunction setLinkBackground(divName){//var color="#ffffcc";var color="#fff3ea";		if (divName!=""){			if(document.getElementById('LinkBack'+divName)){				var activeBackDiv=document.getElementById('LinkBack'+divName);				activeBackDiv.style.background=color;			}		}}//function openWindow(location){var newPopup=window.open(location, '_blank', 'width=450, height=450, top=70, left=70, resizable=no, titlebar=no, scrollbars=no, status=no, menubar=no, toolbar=no, location=no, directories=no')}/* -------------------------------------------------- */function banditSearch(resource){var formName=g_BANDIT_SEARCH_FORM;var thisform=document.forms[formName];if(resource=="llkr"){var cat=checkItemSelected(document.forms[formName].llCategory);}else{var cat=true}var app=checkItemSelected(document.forms[formName].llAppArea);var goal=checkItemSelected(document.forms[formName].llGoal);var lesson=checkItemSelected(document.forms[formName].llLocation);	if (!cat && !app && !goal && !lesson){		alert("Please select at least one classification area for the search.");		document.forms[0].SubmitCount.value=0;	}	else{		thisform.submit();	}}function checkItemSelected(box){var check = "Continue";	//check the the user has selected an item	for(var j=0; j<box.options.length; j++) {		if(!box[j].selected || box[j].text=='') {check="None"}		else{check="Continue";break}	}	//if nothing selected, stop	if(check=="None"){return(false)}	else{return(true)}}function clearSelected(fieldNameString){var formName=g_BANDIT_SEARCH_FORM;var fieldName=eval("document.forms['"+formName+"']."+fieldNameString)	for (var i=0; i<fieldName.length; i++){		if (fieldName.options[i].selected){			fieldName.options[i].selected=false		}	}}/* -------------------------------------------------- */function openHelp(infoPage){	var location="/"+document.forms[0].dbPath.value+"/ByInfo/"+infoPage	var newPopup=window.open(location, '_blank', 'width=450, height=450, top=70, left=70, resizable=yes, titlebar=yes, scrollbars=yes, status=no, menubar=no, toolbar=no, location=no, directories=no')}/* -------------------------------------------------- */function validateTextField(fieldName, returnMessage){var thisform=document.forms[0]var fieldValue=fieldName.value	if (fieldValue==''){alert("Please enter "+returnMessage+".");fieldName.focus();thisform.SubmitCount.value=0;return(true)}}//function to check comboboxfunction validateComboBox(fieldName, returnMessage){var thisform=document.forms[0]	if (fieldName[0].selected){alert("Please select "+returnMessage+".");fieldName.focus();thisform.SubmitCount.value=0;return(true)}}//function to validate that a field is a numberfunction validateNumberField(checkfield, label){var thisform=document.forms[0]var fieldValue=checkfield.value	if(fieldValue!=''&&isNaN(fieldValue)){alert("Please enter a number for the "+label+".");thisform.SubmitCount.value=0;checkfield.focus();return(true)}}