/**
 * This function validates the "request information" forms.  Real basic validation, just goes 
 * through all form elements, and checks to make sure that each element with class="required"
 * is not empty.  Shows an alert box error message, and changes the style of the element, if 
 * there was an error.
 */
function validateForm() {
	var theForm = document.infoForm;
	var isValid = true;
	
	for (var i = 0; i < theForm.elements.length; i++) {
		if (theForm.elements[i].className == "required" && theForm.elements[i].value.length == 0) {
			alert("Please enter a valid " + theForm.elements[i].name + ".");
			if (theForm.elements[i].type == "text") {
				theForm.elements[i].style.border = "2px dashed red";
			} else {
				theForm.elements[i].style.color = "red";
			}
			return false;
		}
	}
	
	return isValid;
}