//  redirect.js
//  Created: 27 Aug 04 by Ray Dahl
//  This is a modified version of deptSelect.js which had been used for several years as the department select script.
//  The 2005 version of www.slco.org uses this script for both department select and e-services

function reDirect(s)
//  's' is the name of the menu which was selected. Determined by which 'GO' button is selected.    
{
	
//  sel is used to determine the index of the selected menu.
	var sel = eval("document.getElementById('chooseOne')." + s + ".selectedIndex");
    
//  page is used to extract the value of the selected item which is the URL to go to.
	var page = eval("document.getElementById('chooseOne')."+ s +".options[" + sel + "].value");

//  If the page variable doesn't have a length (i.e a URL) then nothing happens
	if (!page.length) 
		return

//  Go to the URL listed in the variable page.		
	else
		location = page;
}



//  clearField is used to clear 'search' from the search input when the field is focused.
function clearField(){
	document.getElementById('seek1').qt.value = "";
	}