// I know this part is dirty, yet it is needed to check for the visibility tag in different browsers.var explorer;var netscape4;var netscape6;var theDOM, theSuffix, hiddenKeyword, dhtml;if (document.all) {explorer = true;}else if (document.layers) {netscape4 = true;} else {netscape6 = true;}if(explorer){   theDOM = 'document.all';   theSuffix = '.style';   hiddenKeyword = 'hidden';   dhtml = true;}if(netscape4){   theDOM = 'document';   theSuffix = '';   hiddenKeyword = 'hide';   dhtml = true;}if (netscape6) {  theDOM = "document.getElementsByTagName('*')";  theSuffix = ".style";  hiddenKeyword = "hidden";  dhtml = true;} function buildQS(thisForm ){		var cnt = 0;	var qs = ""	if ( thisForm.Location.selectedIndex >0 )	{		qs= thisForm.Location.options[thisForm.Location.selectedIndex].text;	} else {//		alert("Location Default.");	}		if ( thisForm.Division.selectedIndex >0 )	{		if (qs=="") 		{			qs= thisForm.Division.options[thisForm.Division.selectedIndex].text;		} else {			qs= qs + " " + thisForm.Division.options[thisForm.Division.selectedIndex].text;		}		cnt =cnt++;	} else {//		alert("Division Default.");	}	if ( thisForm.FunctionalArea.selectedIndex >0 )		{		if (qs=="") 		{			qs= thisForm.FunctionalArea.options[thisForm.FunctionalArea.selectedIndex].text;		} else {			qs= qs + " " + thisForm.FunctionalArea.options[thisForm.FunctionalArea.selectedIndex].text;		}		cnt =cnt++;	} else {//		alert("FA Default.");	}	if ( thisForm.SearchQuery.value != "Keyword Search" )	{		if (qs=="") 		{			qs= thisForm.SearchQuery.value;		} else {			qs= qs + " " + thisForm.SearchQuery.value;		}		cnt =cnt++;	} else {//		alert("Keyword Default.");	}		if (qs!="") {//		alert("We have query values: " + qs);//		thisForm.strQuery.value = qs;		   return true;	} else {		alert("Please make a selection or enter a keyword before clicking the SEARCH button.");	}}function writeSearchResults(){      for(var i=0;i<a.length;i++){       document.write(a[i] + "\n");    }}	function getDisplay(theObject){	var theObjectReference = eval(theDOM + '.' + theObject + theSuffix);	if(theObjectReference.visibility == hiddenKeyword){     	return false;    	} else {		return true;		}	}	function hideObject(theObject){	var theObjectReference = eval(theDOM + '.' + theObject + theSuffix);	theObjectReference.visibility = hiddenKeyword;	}function maxArray( arr ) {	// this function calculates the maximum value in the associative array	var max = 0;	for(var i in arr){  	    if (arr[i] > max)  	    		max = arr[i];  	}  	return max;}function minArray( arr ) {	// this function calculates the minimum value in the associative array	var min;	var count = 0;	for(var i in arr){		// initialize minimum value with first value of associative array		if (count==0)			min = arr[i];		if (arr[i] < min)  	    		min = arr[i];  	    	count++;  	}  	return min;}
