function checkvalues(theform) {
	var emailpattern = /^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	var phonepattern = /[0-9]{3}.*[0-9]{3}.*[0-9]{4}/;
	if (theform.Telephone.value && !theform.Telephone.value.match(phonepattern)) {
		alert ("Please enter your phone number including area code.");
		return false;
	}
	if (!theform.Email.value.match(emailpattern) || theform.Email.value != theform.Confirm_Email.value) {
		alert ("You must enter the same valid email address in both email fields to continue.");
		return false;
	}
	return true;
}
