//	Search Form Submit Function

	//	Right Nav Search
		function doSubmit1() {
			if (!document.frmSearch.criteria.value || document.frmSearch.formFocused.value == '0') {
				alert('Please enter at least one search word.');
				return false;
			}
			document.frmSearch.action = '/kids/teachers/search/index.cfm?hf=1&searchTerm='+document.frmSearch.criteria.value;
			return true;
		}
				
		function doSubmit2() {
			if (!document.frmSearch.criteria.value || document.frmSearch.formFocused.value == '0') {
				alert('Please enter at least one search word.');
				return false;
			}
			document.frmSearch.action = '/kids/teachers/search/index.cfm?hf=2&searchTerm='+document.frmSearch.criteria.value;
			return true;
		}				
		
	//	Top Nav Bar
		function doSubmit3() {
			if (!document.frmSearch.criteria.value || document.frmSearch.formFocused.value == '0') {
				alert('Please enter at least one search word.');
				return false;
			}
			document.frmSearch.action = '/kids/teachers/search/index.cfm?hf=3&searchTerm='+document.frmSearch.criteria.value;
			return true;
		}
		function searchboxFocus() {
			/*	If the site search textbox has a value of search when the user places focus on it, the
				value will be cleared out.  Finally, the text font color in the textbox is verified set
				to black (as opposed to a diminished black).												*/
			if (document.getElementById('criteria').value == 'Search') {
				document.getElementById('criteria').value			= '';
			}
			document.getElementById('formFocused').value			= '1';
			document.getElementById('criteria').style.color		= '#000';
		}
		
		function searchboxBlur() {
			/*	When the user focus departs from the site search textbox, the value and text color will
				only be initialized if the value of the textbox is basically null (blank).					*/
			if (document.getElementById('criteria').value == '') {
				document.getElementById('criteria').value			= 'Search';
				document.getElementById('criteria').style.color	= '#666';
				document.getElementById('formFocused').value			= '0';
			}
		}
