/* this file contains fucntions relating to clearing and
	resetting the values of the search box. */
	
function focusSearchBox(sb) {
/* removes the instructions from the search box
	when it is clicked  
	
	sb = HtmlInputElement of the textbox */
	if( sb.defaultValue == sb.value ) sb.value = "";
}

function blurSearchBox(sb) {
/* replaces the instructions in the search box when it looses
	focus if the vistor left it blank 
	
	sb = HtmlInputElement of the textbox */
	if( sb.value == "" ) sb.value = sb.defaultValue;
}

function validateSearchForm(sf) {
/* this function validates the search box.  it just checks that there
	is somethign other then the default value in the box 
	sf = HtmlFormElement 
	sf.q = search box*/
	if( sf.q.value == "" ||  sf.q.value == sf.q.defaultValue) {
		alert("Please enter one or more search keywords");
		return false;
	}
	return true;

}