var valfields = new Array();
var cnt = 0;

valfields[cnt++] = new valobj("churchname",	"Church Name", "text", isBlank, isText);
valfields[cnt++] = new valobj("fname", "First Name", "text", isBlank, isText); 			//isValidDate);
valfields[cnt++] = new valobj("lname", "Last Name", "text", isBlank, isText);
valfields[cnt++] = new valobj("contacttitle", "Title", "text", isBlank, isText);
valfields[cnt++] = new valobj("address1", "Address 1", "text", isBlank, isText);
valfields[cnt++] = new valobj("city", "City", "text", isBlank, isText);
valfields[cnt++] = new valobj("state", "State", "text", isBlank, isAlpha);
valfields[cnt++] = new valobj("zip", "Zip", "text", isBlank, isValidZIPCode);
valfields[cnt++] = new valobj("phone1", "Area Code", "text", isBlank, isAllDigits);
valfields[cnt++] = new valobj("phone2", "Phone 1", "text", isBlank, isAllDigits);
valfields[cnt++] = new valobj("phone3", "Phone 2", "text", isBlank, isAllDigits);
valfields[cnt++] = new valobj("email", "Email", "text", null, isValidEmail);
valfields[cnt++] = new valobj("numberfamilies", "Number of Families", "text", isBlank, isAllDigits);
//fsvalfields[cnt++] = new valobj("interested", "Interested Contact", radio_isBlank, 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)
{
	var	isValid = true;
	
/*	if (isBlank(form.greeter.value) && isBlank(form.producer.value)) {
		alert("Please enter either 'Agent' or 'Greeter'");
		form["producer"].focus();
		return false;
	}
*/
	return isValid;
}

