function submitform(form){
	if(validatefields(form))
		form.submit();
}
function validatefields(form){
	var alertmsg = "Please enter the following information:\n\n";
	var count = 0;
	var alertmsg2 = "";
	
	if (form.positions.value == "" || form.name.value == "" ||
		form.address.value == "" || form.city.value == "" || form.state[0].selected == true ||
		form.zipcode.value == "" || form.home_phone.value == "" || 
		form.dob.value == "" || 
		(form.us_legal[0].checked == false && (form.us_legal[1].checked == false || (form.have_visa[0].checked == false && form.have_visa[1].checked == false))) ||
		form.church_affiliation.value == "" ||
		(form.church_member[0].checked == false && form.church_member[1].checked == false) ||
		(form.church_member[0].checked == true && form.church_address.value == "")
		){
		count = 0;
		alertmsg += "Personal Information -";
		if (form.positions.value == ""){alertmsg += " Position Applied For";count++;}
		if (form.name.value == ""){if(count>0)alertmsg+=",";alertmsg += " Name";count++;}
		if (form.address.value == ""){if(count>0)alertmsg+=",";alertmsg += " Address";count++;}
		if (form.city.value == ""){if(count>0)alertmsg+=",";alertmsg += " City";count++;}
		if (form.state[0].selected == true){if(count>0)alertmsg+=",";alertmsg+=" State";count++;}	
		if (form.zipcode.value == ""){if(count>0)alertmsg+=",";alertmsg+=" Zip Code";count++;}	
		if (form.home_phone.value == ""){if(count>0)alertmsg+=",";alertmsg+=" Home Phone";count++;}	
		if (form.dob.value == ""){if(count>0)alertmsg+=",";alertmsg+=" Date of Birth";count++;}	
		if (form.us_legal[0].checked == true){
			if(form.have_visa[0].checked == true || form.visa.value != ""){if(count>0)alertmsg+=",";alertmsg+=" Do not enter work visa info.";count++;}
		}
		else if (form.us_legal[1].checked == true){
			if(form.have_visa[0].checked == true){
				if(form.visa.value == ""){if(count>0)alertmsg+=",";alertmsg+=" Work Visa No.";count++;}
			}
			else if(form.have_visa[1].checked == true){
				if(form.visa.value != ""){if(count>0)alertmsg+=",";alertmsg+=" Do not enter a Work Visa No.";count++;}
			}
			else {if(count>0)alertmsg+=",";alertmsg+=" Do you have a work visa?";count++;}
		}
		else {if(count>0)alertmsg+=",";alertmsg+=" Are you a U.S. citizen?";count++;}	
		if (form.church_affiliation.value == ""){if(count>0)alertmsg+=",";alertmsg+=" Church Affiliation";count++;}	
		if (form.church_member[0].checked == false && form.church_member[1].checked == false){if(count>0)alertmsg+=",";alertmsg+=" Church Member?";count++;}		
		else if (form.church_member[0].checked == true && form.church_address.value == ""){if(count>0)alertmsg+=",";alertmsg+=" Church Address";count++;}
		alertmsg += "\n";
	}
	if (form.education1.value == "" || form.education1_address.value == "" ||
		form.education1_attended_from.value == "" || form.education1_attended_to.value == "" || form.education1_degree.value == "" ||
		(form.education1_graduate[0].checked == false && form.education1_graduate[1].checked == false) ||
		form.education1_area.value == "" ||
		((form.education2.value != "" || form.education2_address.value != "" || form.education2_attended_from.value != "" || form.education2_attended_to.value != "" || form.education2_degree.value != "" || form.education2_area.value != "") && (form.education2.value == "" || form.education2_address.value == "" || form.education2_attended_from.value == "" || form.education2_attended_to.value == "" || form.education2_degree.value == "" || form.education2_area.value == "" || (form.education2_graduate[0].checked == false && form.education2_graduate[1].checked == false))) ||
		((form.education3.value != "" || form.education3_address.value != "" || form.education3_attended_from.value != "" || form.education3_attended_to.value != "" || form.education3_degree.value != "" || form.education3_area.value != "") && (form.education3.value == "" || form.education3_address.value == "" || form.education3_attended_from.value == "" || form.education3_attended_to.value == "" || form.education3_degree.value == "" || form.education3_area.value == "" || (form.education3_graduate[0].checked == false && form.education3_graduate[1].checked == false))) ||
		((form.education4.value != "" || form.education4_address.value != "" || form.education4_attended_from.value != "" || form.education4_attended_to.value != "" || form.education4_degree.value != "" || form.education4_area.value != "") && (form.education4.value == "" || form.education4_address.value == "" || form.education4_attended_from.value == "" || form.education4_attended_to.value == "" || form.education4_degree.value == "" || form.education4_area.value == "" || (form.education4_graduate[0].checked == false && form.education4_graduate[1].checked == false)))
		){
		count = 0;
		alertmsg += "Education -";
		if (form.education1.value == ""){alertmsg += " High School";count++;}
		if (form.education1_address.value == ""){if(count>0)alertmsg+=",";alertmsg += " High School Address";count++;}
		if (form.education1_attended_from.value == ""){if(count>0)alertmsg+=",";alertmsg += " High School Dates Attended From";count++;}
		if (form.education1_attended_to.value == ""){if(count>0)alertmsg+=",";alertmsg += " High School Dates Attended To";count++;}
		if (form.education1_graduate[0].checked == false && form.education1_graduate[1].checked == false){if(count>0)alertmsg+=",";alertmsg += " Did you graduate High School?";count++;}
		if (form.education1_degree.value == ""){if(count>0)alertmsg+=",";alertmsg += " High School Degree";count++;}
		if (form.education1_area.value == ""){if(count>0)alertmsg+=",";alertmsg += " High School Area of Specialization";count++;}
		if (form.education2.value != "" || form.education2_address.value != "" || form.education2_attended_from.value != "" || form.education2_attended_to.value != "" || form.education2_degree.value != "" || form.education2_area.value != ""){
			if (form.education2.value == ""){if(count>0)alertmsg+=",";alertmsg+=" College or University 1";count++;}	
			if (form.education2_address.value == ""){if(count>0)alertmsg+=",";alertmsg += " College or University 1 Address";count++;}
			if (form.education2_attended_from.value == ""){if(count>0)alertmsg+=",";alertmsg += " College or University 1 Dates Attended From";count++;}
			if (form.education2_attended_to.value == ""){if(count>0)alertmsg+=",";alertmsg += " College or University 1 Dates Attended To";count++;}
			if (form.education2_graduate[0].checked == false && form.education2_graduate[1].checked == false){if(count>0)alertmsg+=",";alertmsg += " Did you graduate College or University 1?";count++;}
			if (form.education2_degree.value == ""){if(count>0)alertmsg+=",";alertmsg+=" College or University 1 Degree";count++;}	
			if (form.education2_area.value == ""){if(count>0)alertmsg+=",";alertmsg += " College or University 1 Area of Specialization";count++;}
		}	
		if (form.education3.value != "" || form.education3_address.value != "" || form.education3_attended_from.value != "" || form.education3_attended_to.value != "" || form.education3_degree.value != "" || form.education3_area.value != ""){
			if (form.education3.value == ""){if(count>0)alertmsg+=",";alertmsg+=" College or University 2";count++;}	
			if (form.education3_address.value == ""){if(count>0)alertmsg+=",";alertmsg += " College or University 2 Address";count++;}
			if (form.education3_attended_from.value == ""){if(count>0)alertmsg+=",";alertmsg += " College or University 2 Dates Attended From";count++;}
			if (form.education3_attended_to.value == ""){if(count>0)alertmsg+=",";alertmsg += " College or University 2 Dates Attended To";count++;}
			if (form.education3_graduate[0].checked == false && form.education3_graduate[1].checked == false){if(count>0)alertmsg+=",";alertmsg += " Did you graduate College or University 2?";count++;}
			if (form.education3_degree.value == ""){if(count>0)alertmsg+=",";alertmsg+=" College or University 2 Degree";count++;}	
			if (form.education3_area.value == ""){if(count>0)alertmsg+=",";alertmsg += " College or University 2 Area of Specialization";count++;}
		}	
		if (form.education4.value != "" || form.education4_address.value != "" || form.education4_attended_from.value != "" || form.education4_attended_to.value != "" || form.education4_degree.value != "" || form.education4_area.value != ""){
			if (form.education4.value == ""){if(count>0)alertmsg+=",";alertmsg+=" Other School";count++;}	
			if (form.education4_address.value == ""){if(count>0)alertmsg+=",";alertmsg += " Other School Address";count++;}
			if (form.education4_attended_from.value == ""){if(count>0)alertmsg+=",";alertmsg += " Other School Dates Attended From";count++;}
			if (form.education4_attended_to.value == ""){if(count>0)alertmsg+=",";alertmsg += " Other School Dates Attended To";count++;}
			if (form.education4_graduate[0].checked == false && form.education4_graduate[1].checked == false){if(count>0)alertmsg+=",";alertmsg += " Did you graduate Other School?";count++;}
			if (form.education4_degree.value == ""){if(count>0)alertmsg+=",";alertmsg+=" Other School Degree";count++;}	
			if (form.education4_area.value == ""){if(count>0)alertmsg+=",";alertmsg += " Other School Area of Specialization";count++;}
		}	
		alertmsg += "\n";
	}
	if (form.personal_philosophy.value == "" || form.experience_minority.value == "" ||
		form.southwest.value == "" || form.statement_of_faith.value == "" ||
		form.comments.value == ""
		){
		count = 0;
		alertmsg += "Questions -";
		if (form.personal_philosophy.value == ""){alertmsg += " Number 1";count++;}
		if (form.experience_minority.value == ""){if(count>0)alertmsg+=",";alertmsg += " Number 2";count++;}
		if (form.southwest.value == ""){if(count>0)alertmsg+=",";alertmsg += " Number 3";count++;}
		if (form.statement_of_faith.value == ""){if(count>0)alertmsg+=",";alertmsg += " Number 4";count++;}
		if (form.comments.value == ""){if(count>0)alertmsg+=",";alertmsg += " Number 5";count++;}
		alertmsg += "\n";
	}
	if (form.employer1.value == "" || form.employer_dates1.value == "" ||
		form.employer_supervisor1.value == "" || form.employer_reason1.value == "" || 
		form.jobtitle1.value == "" ||
		(form.donotcontact1.checked == true && form.donotcontact_explain1.value == "")
		){
		count = 0;
		alertmsg += "Present or Last Employer -";
		if (form.employer1.value == ""){if(count>0)alertmsg+=",";alertmsg += " Employer's Name, Address, Phone #";count++;}
		if (form.employer_dates1.value == ""){if(count>0)alertmsg+=",";alertmsg += " Dates Employed";count++;}
		if (form.employer_supervisor1.value == ""){if(count>0)alertmsg+=",";alertmsg += " Supervisor's Name";count++;}
		if (form.employer_reason1.value == ""){if(count>0)alertmsg+=",";alertmsg += " Reason for Leaving";count++;}
		if (form.jobtitle1.value == ""){if(count>0)alertmsg+=",";alertmsg += " Job Title & Responsibilities";count++;}
		if (form.donotcontact1.checked == true && form.donotcontact_explain1.value == ""){if(count>0)alertmsg+=",";alertmsg += " Explanation of Do Not Contact";count++;}
		alertmsg += "\n";
	}
	if ((form.employer2.value != "" || form.employer_dates2.value != "" ||
		form.employer_supervisor2.value != "" || form.employer_reason2.value != "" || 
		form.jobtitle2.value != "" ||
		form.donotcontact2.checked == true)
		&&
		(form.employer2.value == "" || form.employer_dates2.value == "" ||
		form.employer_supervisor2.value == "" || form.employer_reason2.value == "" || 
		form.jobtitle2.value == "" ||
		(form.donotcontact2.checked == true && form.donotcontact_explain2.value == "")
		)
		){
		count = 0;
		alertmsg += "Employer 2 -";
		if (form.employer2.value == ""){if(count>0)alertmsg+=",";alertmsg += " Employer's Name, Address, Phone #";count++;}
		if (form.employer_dates2.value == ""){if(count>0)alertmsg+=",";alertmsg += " Dates Employed";count++;}
		if (form.employer_supervisor2.value == ""){if(count>0)alertmsg+=",";alertmsg += " Supervisor's Name";count++;}
		if (form.employer_reason2.value == ""){if(count>0)alertmsg+=",";alertmsg += " Reason for Leaving";count++;}
		if (form.jobtitle2.value == ""){if(count>0)alertmsg+=",";alertmsg += " Job Title & Responsibilities";count++;}
		if (form.donotcontact2.checked == true && form.donotcontact_explain1.value == ""){if(count>0)alertmsg+=",";alertmsg += " Explanation of Do Not Contact";count++;}
		alertmsg += "\n";
	}
	if ((form.employer3.value != "" || form.employer_dates3.value != "" ||
		form.employer_supervisor3.value != "" || form.employer_reason3.value != "" || 
		form.jobtitle3.value != "" ||
		form.donotcontact3.checked == true)
		&&
		(form.employer3.value == "" || form.employer_dates3.value == "" ||
		form.employer_supervisor3.value == "" || form.employer_reason3.value == "" || 
		form.jobtitle3.value == "" ||
		(form.donotcontact3.checked == true && form.donotcontact_explain3.value == "")
		)
		){
		count = 0;
		alertmsg += "Employer 3 -";
		if (form.employer3.value == ""){if(count>0)alertmsg+=",";alertmsg += " Employer's Name, Address, Phone #";count++;}
		if (form.employer_dates3.value == ""){if(count>0)alertmsg+=",";alertmsg += " Dates Employed";count++;}
		if (form.employer_supervisor3.value == ""){if(count>0)alertmsg+=",";alertmsg += " Supervisor's Name";count++;}
		if (form.employer_reason3.value == ""){if(count>0)alertmsg+=",";alertmsg += " Reason for Leaving";count++;}
		if (form.jobtitle3.value == ""){if(count>0)alertmsg+=",";alertmsg += " Job Title & Responsibilities";count++;}
		if (form.donotcontact3.checked == true && form.donotcontact_explain1.value == ""){if(count>0)alertmsg+=",";alertmsg += " Explanation of Do Not Contact";count++;}
		alertmsg += "\n";
	}
	if ((form.employer4.value != "" || form.employer_dates4.value != "" ||
		form.employer_supervisor4.value != "" || form.employer_reason4.value != "" || 
		form.jobtitle4.value != "" ||
		form.donotcontact4.checked == true)
		&&
		(form.employer4.value == "" || form.employer_dates4.value == "" ||
		form.employer_supervisor4.value == "" || form.employer_reason4.value == "" || 
		form.jobtitle4.value == "" ||
		(form.donotcontact4.checked == true && form.donotcontact_explain4.value == "")
		)
		){
		count = 0;
		alertmsg += "Employer 4 -";
		if (form.employer4.value == ""){if(count>0)alertmsg+=",";alertmsg += " Employer's Name, Address, Phone #";count++;}
		if (form.employer_dates4.value == ""){if(count>0)alertmsg+=",";alertmsg += " Dates Employed";count++;}
		if (form.employer_supervisor4.value == ""){if(count>0)alertmsg+=",";alertmsg += " Supervisor's Name";count++;}
		if (form.employer_reason4.value == ""){if(count>0)alertmsg+=",";alertmsg += " Reason for Leaving";count++;}
		if (form.jobtitle4.value == ""){if(count>0)alertmsg+=",";alertmsg += " Job Title & Responsibilities";count++;}
		if (form.donotcontact4.checked == true && form.donotcontact_explain1.value == ""){if(count>0)alertmsg+=",";alertmsg += " Explanation of Do Not Contact";count++;}
		alertmsg += "\n";
	}

	if (form.ref_name1.value == "" || form.ref_relationship1.value == "" ||
		form.ref_address1.value == "" || form.ref_phone1.value == "" ||
		form.ref_name2.value == "" || form.ref_relationship2.value == "" ||
		form.ref_address2.value == "" || form.ref_phone2.value == "" ||
		form.ref_name3.value == "" || form.ref_relationship3.value == "" ||
		form.ref_address3.value == "" || form.ref_phone3.value == ""
		){
		count = 0;
		alertmsg += "Personal References -";
		if (form.ref_name1.value == ""){if(count>0)alertmsg+=",";alertmsg += " Employment Reference 1";count++;}
		if (form.ref_relationship1.value == ""){if(count>0)alertmsg+=",";alertmsg += " Employment Reference 1's Relationship/Yrs.";count++;}
		if (form.ref_address1.value == ""){if(count>0)alertmsg+=",";alertmsg += " Employment Reference 1's Address";count++;}
		if (form.ref_phone1.value == ""){if(count>0)alertmsg+=",";alertmsg += " Employment Reference 1's Phone";count++;}
		if (form.ref_name2.value == ""){if(count>0)alertmsg+=",";alertmsg += " Employment Reference 2";count++;}
		if (form.ref_relationship2.value == ""){if(count>0)alertmsg+=",";alertmsg += " Employment Reference 2's Relationship/Yrs.";count++;}
		if (form.ref_address2.value == ""){if(count>0)alertmsg+=",";alertmsg += " Employment Reference 2's Address";count++;}
		if (form.ref_phone2.value == ""){if(count>0)alertmsg+=",";alertmsg += " Employment Reference 2's Phone";count++;}
		if (form.ref_name3.value == ""){if(count>0)alertmsg+=",";alertmsg += " Employment Reference 3";count++;}
		if (form.ref_relationship3.value == ""){if(count>0)alertmsg+=",";alertmsg += " Employment Reference 3's Relationship/Yrs.";count++;}
		if (form.ref_address3.value == ""){if(count>0)alertmsg+=",";alertmsg += " Employment Reference 3's Address";count++;}
		if (form.ref_phone3.value == ""){if(count>0)alertmsg+=",";alertmsg += " Employment Reference 3's Phone";count++;}
		alertmsg += "\n";
	}

	if (form.signature.value == "")alertmsg += "Signature\n";
	if (form.signature_dt.value == "")alertmsg += "Signature Date\n";

	if (alertmsg == "Please enter the following information:\n\n"){
		return true;
	}
	else {
		alert(alertmsg);
		return false;
	}
}