function checkfields2() {
	var strlname;
	var strfname;
	var straddress;
	var strcity;
	var strzip;
	var strhphone;
	var strwphone;
	var stremail;
	var strbmonth;
	var strbday;
	var strbyear;
	var strecontact;
	var strephone;
	var strerelation;
	var strbackground;
	var stremp1;
	var strjob1;
	var strphone1;
	var strmbegan1;
	var stryearbegan1;
	var strmend1;
	var stryearend1;
	var strleave1;
	var strdesc1;
	var stremp2;
	var strjob2;
	var strphone2;
	var strmbegan2;
	var stryearbegan2;
	var strmend2;
	var stryearend2;
	var strleave2;
	var strdesc2;
	var error=false;
	var msg="";
	
	strlname=window.document.contact.last_name.value;
	strfname=window.document.contact.first_name.value;
	straddress=window.document.contact.address.value;
	strcity=window.document.contact.city.value;
	strzip=window.document.contact.zipcode.value
	strhphone=window.document.contact.home_phone.value;
	strwphone=window.document.contact.work_phone.value;
	stremail=window.document.contact.email.value;
	strbmonth=window.document.contact.birth_month.value;
	strbday=window.document.contact.birth_day.value;
	strecontact=window.document.contact.emergency_contact.value;
	strephone=window.document.contact.emergency_contact_phone.value;
	strerelation=window.document.contact.emergency_contact_relationship.value;
	strbackground=window.document.contact.educational_background.value;
	stremp1=window.document.contact.employer1.value;
	strjob1=window.document.contact.job_title1.value;
	strphone1=window.document.contact.phone_number1.value;
	strmbegan1=window.document.contact.month_began1.value;
	stryearbegan1=window.document.contact.year_began1.value;
	strmend1=window.document.contact.month_end1.value;
	stryearend1=window.document.contact.year_end1.value;
	strleave1=window.document.contact.reason_for_leaving1.value;
	strdesc1=window.document.contact.job_description1.value;
	stremp2=window.document.contact.employer2.value;
	strjob2=window.document.contact.job_title2.value;
	strphone2=window.document.contact.phone_number2.value;
	strmbegan2=window.document.contact.month_began2.value;
	stryearbegan2=window.document.contact.year_began2.value;
	strmend2=window.document.contact.month_end2.value;
	stryearend2=window.document.contact.year_end2.value;
	strleave2=window.document.contact.reason_for_leaving2.value;
	strdesc2=window.document.contact.job_description2.value;
	
	
	if (strlname=="") {
		msg="Please provide your last name.\n"
		error=true;
	}
	
	if (strfname=="") {
		msg = msg +"Please provide your first name.\n";
		error=true;
	}
	
	if (straddress=="") {
		msg = msg +"Please provide your address.\n";
		error=true;
	}
	
	if (strcity=="") {
		msg = msg +"Please provide your city.\n";
		error=true;
	}
	
	if (document.contact.state.selectedIndex == 0){
        msg = msg +"Please select a state.\n";
			error=true;
    }
	
	if (strzip=="") {
		msg = msg +"Please provide your zipcode.\n";
		error=true;
	}
	
	if (strhphone=="") {
		msg = msg +"Please provide your home phone.\n";
		error=true;
	}
	
	if (strwphone=="") {
		msg = msg +"Please provide your work phone.\n";
		error=true;
	}
	
	if (stremail=="") {
		msg = msg +"Please provide your email address.\n";
		error=true;
	}
	
	else if(!EmailIsValid(stremail)){
		msg = msg + "Please enter in a valid email address.\n";
		error = true;
	}
	
	if (strbmonth=="") {
		msg = msg +"Please provide your birth month.\n";
		error=true;
	}
	
	if (strbday=="") {
		msg = msg +"Please provide your birth day.\n";
		error=true;
	}
	
	if (strbyear=="") {
		msg = msg +"Please provide your birth year.\n";
		error=true;
	}
	
	if ((document.contact.sex[0].checked==false)
		&& (document.contact.sex[1].checked==false)) {
			msg = msg +"Please provide whether you are male or female.\n";
			error=true;
	}
	
	if ((document.contact.course[0].checked==false)
		&& (document.contact.course[1].checked==false)) {
			msg = msg +"Please choose a course.\n";
			error=true;
	}
	
	if (strecontact=="") {
		msg = msg +"Please provide emergency contact name.\n";
		error=true;
	}
	
	if (strephone=="") {
		msg = msg +"Please provide emergency contact phone.\n";
		error=true;
	}
	
	if (strerelation=="") {
		msg = msg +"Please provide relationship to emergency contact.\n";
		error=true;
	}
	
	if (strbackground=="") {
		msg = msg +"Please provide your educational background.\n";
		error=true;
	}
	
	if (stremp1=="") {
		msg = msg +"Please provide your most recent employer.\n";
		error=true;
	}
	
	if (strjob1=="") {
		msg = msg +"Please provide your most recent job title.\n";
		error=true;
	}
	
	if (strphone1=="") {
		msg = msg +"Please provide your most recent employer phone number.\n";
		error=true;
	}
	
	if (strmbegan1=="") {
		msg = msg +"Please provide the month you started with your most recent employer.\n";
		error=true;
	}
	
	if (stryearbegan1=="") {
		msg = msg +"Please provide the year you started with your most recent employer.\n";
		error=true;
	}
	
	if (strmend1=="") {
		msg = msg +"Please provide the month you ended with your most recent employer.\n";
		error=true;
	}
	
	if (stryearend1=="") {
		msg = msg +"Please provide the year you ended with your most recent employer.\n";
		error=true;
	}
	
	if (strleave1=="") {
		msg = msg +"Please provide the reason for leaving your most recent employer.\n";
		error=true;
	}
	
	if (strdesc1=="") {
		msg = msg +"Please provide your job description with your most recent employer.\n";
		error=true;
	}
	
	if (stremp2=="") {
		msg = msg +"Please provide employer.\n";
		error=true;
	}
	
	if (strjob2=="") {
		msg = msg +"Please provide job title.\n";
		error=true;
	}
	
	if (strphone2=="") {
		msg = msg +"Please provide employer phone number.\n";
		error=true;
	}
	
	if (strmbegan2=="") {
		msg = msg +"Please provide the month you started with employer.\n";
		error=true;
	}
	
	if (stryearbegan2=="") {
		msg = msg +"Please provide the year you started with employer.\n";
		error=true;
	}
	
	if (strmend2=="") {
		msg = msg +"Please provide the month you ended with employer.\n";
		error=true;
	}
	
	if (stryearend2=="") {
		msg = msg +"Please provide the year you ended with employer.\n";
		error=true;
	}
	
	if (strleave2=="") {
		msg = msg +"Please provide the reason for leaving employer.\n";
		error=true;
	}
	
	if (strdesc2=="") {
		msg = msg +"Please provide your job description with employer.\n";
		error=true;
	}
	
	if (error==true) {
			alert(msg);
			return false;
	}
	return true;
}