function validateForm()
{
	var validated = true;
	var validations = new Array();
	
	// Creates an array to denote what fields are required and should be validated
	// @param: the id of the input field to validate against
	// @param: the id of where on the form to display the error message if validation for the field fails
	// @param: the text to display when validation for the field fails
	// @param: true or false whether or not to change color of a field if validation fails
	// @param: the id of the field to change color to red if validation fails
	// validations.push(validation.required("netrefer", "netreferLabel", "* ", true, "netreferLabel"));
	validations.push(validation.required("name", "nameLabel", "* ", true, "nameLabel"));
	validations.push(validation.required("email", "emailLabel", "* ", true, "emailLabel"));
	// validations.push(validation.required("colleageaddress", "colleageaddressLabel", "* ", true, "colleageaddressLabel"));
	validations.push(validation.required("colleagefirst", "colleagefirstLabel", "* ", true, "colleagefirstLabel"));
	validations.push(validation.required("colleagelast", "colleagelastLabel", "* ", true, "colleagelastLabel"));
	validations.push(validation.required("mailing", "mailingLabel", "* ", true, "mailingLabel"));
	validations.push(validation.required("city", "cityLabel", "* ", true, "cityLabel"));
	validations.push(validation.required("state", "stateLabel", "* ", true, "stateLabel"));
	validations.push(validation.required("zip", "zipLabel", "* ", true, "zipLabel"));
			
	for (var v in validations) 
		validated = validated && validations[v];

	return validated;
}
