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", "Keyword");
mySelectedField("email", "Email");
mySelectedField("postalCode", "Postal Code");
mySelectedField("postalCode2", "Postal Code");
mySelectedField("comments", "Type in your comments");
}

function mySelectedField(selectedField, fieldText) {
	
	if (document.getElementById(selectedField)) {
		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;
		}
	}

}