var vf = new Array("fname", "cname", "email", "phone", "addr");
var errMsgs = new Array("Facility Name", "Your Name", "Email Address", "Contact Phone", "Facility Address");

function processContact(){
	showFormIndicator();
	setPhone();
	var valid = verifyInfo(null);
	if(valid){		
		xajax_processForm(xajax.getFormValues('cinfo'));
	}
	else{
		closeIndicator('form');
	}
	return false;
}

function setPhone(){
	var phone = document.getElementById('area_id').value.trim();
	phone += document.getElementById('pre_id').value.trim();
	phone += document.getElementById('num_id').value.trim();
	
	document.getElementById('phone_id').value = phone;
}