addLoadListener(searchBox)

function searchBox() {

// To add a new field, simply copy and paste a new line below, modifying the parameters
// First parameter is the ID of the form field
// Second parameter is the text to appear in the field by default

mySelectedField("search", "search");
}

function mySelectedField(selectedField, fieldText) {

	var myClickedField = document.getElementById(selectedField);
	var myClickedFieldValue = document.getElementById(selectedField).value;
	myClickedField.value = fieldText;
		
	myClickedField.onfocus = function() {
		if (this.value == fieldText)
			myClickedField.value = "";
	}
	
	myClickedField.onblur = function() {
		if (this.value == '')
			myClickedField.value = fieldText;
	}

}
