// setValue is called from onfocus and onblur events in the input text fields on the data form
function setValue(obj, clearField) {
	// clearField==true means that the input has the focus and the default text should be erased
	if (clearField == true) {
		// isEdited == true if the user has already typed into the field.  if not, go ahead and clear the field
		if (obj.getAttribute("isEdited") == "no")
			obj.value = "";
	}
	// clearField != true means that the input has lost the focus (onblur) and if the field is empty, the default text should be added
	// if the field is not empty, i.e. the user has typed something, don't add the default text and set the isEdited attribute
	else {
		if (obj.value == "") {
			switch (obj.name) {
	    		case "Search":
					newText = "Quick Search";
					break;
            }		
			obj.value = newText;
			obj.setAttribute("isEdited", "no");
		}
		else
			obj.setAttribute("isEdited", "yes");
	}
}