function validarEmail(valor) {
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(valor)){
		return true
	} else {
		return false;
	}
}

function Validate(){
	var errors = "";
	if($('txtFirstName').getValue() == ""){
		errors += "You must complete the First Name \n\r";	
	}
	if($('txtLastName').getValue() == ""){
		errors += "You must complete the Last Name \n\r";	
	}
	if($('txtAddress').getValue() == ""){
		errors += "You must complete the Address \n\r";	
	}
	if($('txtCity').getValue() == ""){
		errors += "You must complete the City \n\r";	
	}
	if($('txtState').getValue() == ""){
		errors += "You must complete the State \n\r";	
	}
	if($('txtZip').getValue() == ""){
		errors += "You must complete the Zip Code \n\r";	
	}
	if($('txtCellPhone').getValue() == "" && $('txtHomePhone').getValue() == "" && $('txtWorkPhone').getValue() == ""){
		errors += "You need to add at least one phone number \n\r";	
	}
	
	if($('txtEmail').getValue() != ""){
		if(!validarEmail($('txtEmail').getValue())){
			errors +="The Email is invalid\n\r";
		}
	}
        /*if(!$('chkAcceptTerms').checked){
		errors += "You must agree with our Terms and conditions to continue. \n\r";		
		}*/
	if(errors != ""){
		alert(errors);
		return false;
	}else{
		return true;	
	}
}