// 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 "j: Phone":
					newText = "Please include area code";
					break;
            
				case "k: Fax":
					newText = "Please include area code";
					break;
					
				case "Details":
					newText = "Please provide any information that might help us with your request. (i.e. Intended Use, Present Surface Area, etc.)";
					break;
					
				case "Area":
					newText = "Approximate Square Footage";
					break;
				
				default :
					newText = "";
					break;
			}		
			obj.value = newText;
			obj.setAttribute("isEdited", "no");
		}
		else
			obj.setAttribute("isEdited", "yes");
	}
}