function SetAction() {
	// This function will change the action of the form depending on the option, only used in search.asp	
	document.form1.action = document.form1.searchloc.options[document.form1.searchloc.selectedIndex].value
}
function trim(strText) { 
    // this will get rid of leading spaces 
    while (strText.substring(0,1) == ' ') 
        strText = strText.substring(1, strText.length);

    // this will get rid of trailing spaces 
    while (strText.substring(strText.length-1,strText.length) == ' ')
        strText = strText.substring(0, strText.length-1);
   return strText;
}
function checkField() {
	var strText;
	strText = document.form1.text1.value;

	strText = trim(strText);

	if((document.form1.text1.value=='') || (trim(strText)==''))
	{
		alert('Please enter a word or phrase to search for.');
		return false;
	}
}

