//focusForm() sets the focus to the first form field
//in order for the scripts to function they must be loaded after the page loads so the id's will be loaded into the DOM
window.onload = prepareScript;

//prepareScript waits for the page to load then calls the functions
function prepareScript(){
	focusForm();
}

//if the id exists on the page, set the relevant form focus 
function focusForm(){
	if (!document.getElementById) return false;	

	var e = document.getElementById("search_text");
	e.onfocus = function() {
		e.value = "";
		return false;
	}	 
}