function validate_mail_form(){
	var check_val='true';
	if (document.mail_form.name.value==""){
		alert('Please enter your name');
		return false;
		check_val='false';
	}
	if (document.mail_form.email.value==""){
		alert('Please enter your E-mail');
		return false;
		check_val='false';
	}
	if (document.mail_form.human.value!="12"){
		if (document.mail_form.human.value.toLowerCase()!="twelve"){
			alert('Please answer the addition problem correctly');
			return false;
			check_val='false';
		}
	}
	if (document.mail_form.comments.value==""){
		alert('Please enter your comments');
		return false;
		check_val='false';
	}
	if (check_val=='false'){
		return false;
	}
	else {
		return true;
	}
}

function validate_patient_form(){
	var check_val='true';
	if (document.patient_form.pfname.value==""){
		alert('Please enter the patient\'s legal first name');
		return false;
		check_val='false';
	}
	if (document.patient_form.plname.value==""){
		alert('Please enter the patient\'s legal last name');
		return false;
		check_val='false';
	}
	if (document.patient_form.paddress.value==""){
		alert('Please enter the patient\'s address');
		return false;
		check_val='false';
	}
	if (document.patient_form.pcity.value==""){
		alert('Please enter the patient\'s city');
		return false;
		check_val='false';
	}
	if (document.patient_form.pstate.value==""){
		alert('Please enter the patient\'s state');
		return false;
		check_val='false';
	}
	if (document.patient_form.pzip.value==""){
		alert('Please enter the patient\'s zip code');
		return false;
		check_val='false';
	}
	if (document.patient_form.pphone.value==""){
		alert('Please enter the patient\'s phone');
		return false;
		check_val='false';
	}
	if (document.patient_form.pdob.value==""){
		alert('Please enter the patient\'s date of birth');
		return false;
		check_val='false';
	}
	if (document.patient_form.page.value==""){
		alert('Please enter the patient\'s age');
		return false;
		check_val='false';
	}
	if (document.patient_form.psex.value==""){
		alert('Please enter the patient\'s sex');
		return false;
		check_val='false';
	}
	if (document.patient_form.rspecialist.value==""){
		alert('Please enter the referring specialist name');
		return false;
		check_val='false';
	}
	if (document.patient_form.rspecialistphone.value==""){
		alert('Please enter the referring specialist office phone');
		return false;
		check_val='false';
	}
	if (document.patient_form.rreason.value==""){
		alert('Please enter the reason for the visit');
		return false;
		check_val='false';
	}
	if (document.patient_form.iprimaryname1.value==""){
		alert('Please enter the primary insurance company name');
		return false;
		check_val='false';
	}
	if (document.patient_form.iprimarygroup1.value==""){
		alert('Please enter primary insurance Group Number');
		return false;
		check_val='false';
	}
	if (document.patient_form.iprimaryid1.value==""){
		alert('Please enter primary insurance ID/Certificate Number');
		return false;
		check_val='false';
	}
	if (document.patient_form.iprimarysub1.value==""){
		alert('Please enter primary insurance subscriber name');
		return false;
		check_val='false';
	}
	if (document.patient_form.iprimarycsno1.value==""){
		alert('Please enter primary insurance customer service number');
		return false;
		check_val='false';
	}
	if (document.patient_form.human.value==""){
		alert('Please answer 6 + 6 at the bottom of the form to verify you are human');
		return false;
		check_val='false';
	}
	/*
	if (document.patient_form.human.value!="12"){
		if (document.patient_form.human.value.toLowerCase()!="twelve"){
			alert('Please answer the addition problem correctly');
			return false;
			check_val='false';
		}
	}
	*/
	if (check_val=='false'){
		return false;
	}
	else {
		return true;
	}
}
