var valfields = new Array();
var cnt = 0;

//valfields[cnt++] = new valobj("Division", "Division", "text", isBlank, radio_isBlank);
valfields[cnt++] = new valobj("firstname", "First Name", "text", isBlank, isText);
valfields[cnt++] = new valobj("lastname", "Last Name", "text", isBlank, isText);
valfields[cnt++] = new valobj("phone", "Phone", "text", null, isPhoneNum);
valfields[cnt++] = new valobj("city", "City", "text", null, isText);
valfields[cnt++] = new valobj("state", "State", "text", isBlank, isUSState);
valfields[cnt++] = new valobj("email", "Email", "text", null, isValidEmail);
valfields[cnt++] = new valobj("comments", "Comments", "text", null, isText);


/*	Local validation to be done after initial single-field validation. This
	function should be written for pages where one of two fields must be 
	filled, say, or if one field is filled others should be checked. */
function local_validateForm(form)
{
	if (form.phone.value == "" && form.email.value == "") {
		alert("You need to provide some way for us to reply to your request for more information. Please enter a valid phone number or email address.");
		if (form.phone.value == ""){
			form.phone.focus();
		}
		else{
			form.email.focus();
		}
		return false;
	}

	return true;
}
