function checkFields(f)
{	

	outString = "Please add/change the data in the following fields\n\n";
	
	focusSet = 0;
	
	if((isBlank(document.apply.firstname.value)) || (isBlank(document.apply.lastname.value)) || (!isBlank(document.apply.email.value) && !isEmail(document.apply.email.value)) || (isBlank(document.apply.streetaddress1.value)) || (isBlank(document.apply.city.value)) || (isBlank(document.apply.state.value)) || (isBlank(document.apply.zipcode.value)) || ((!document.getElementById("automotive").checked) && (!document.getElementById("business").checked) && (!document.getElementById("diesel").checked) && (!document.getElementById("computer").checked) && (!document.getElementById("dietary").checked) && (!document.getElementById("electricity").checked) && (!document.getElementById("nursing").checked) && (!document.getElementById("hvac").checked) && (!document.getElementById("cna").checked) && (!document.getElementById("welding").checked) && (!document.getElementById("millwright").checked)) || (!(document.apply.sex[0].checked) && !(document.apply.sex[1].checked)) || (!(document.apply.veteran[0].checked) && !(document.apply.veteran[1].checked)) || (!(document.apply.singleparent[0].checked) && !(document.apply.singleparent[1].checked) && !(document.apply.singleparent[2].checked)) || (!(document.apply.limtd_eng_prof[0].checked) && !(document.apply.limtd_eng_prof[1].checked)) || (!(document.apply.displaced_homemaker[0].checked) && !(document.apply.displaced_homemaker[1].checked) && !(document.apply.displaced_homemaker[2].checked))||(document.apply.race.value == 0)) 
	{
		if(isBlank(document.apply.firstname.value))
		{
			outString += "-- Your First Name\n";
			document.apply.firstname.focus();
			focusSet = 1;
		}
		if(isBlank(document.apply.lastname.value))
		{
			outString += "-- Your Last Name\n";
			document.apply.lastname.focus();
			focusSet = 1;
		}
		if(!isBlank(document.apply.email.value) && !isEmail(document.apply.email.value))
		{
			outString += "-- Your Email Address is formed incorrectly\n";
			outString += "-- Please use the form:\n\n";
			outString += "               username@domain.com\n\n";
			if(focusSet == 0)
			{
				document.apply.email.focus();
				focusSet = 1;
			}
		}
		if(isBlank(document.apply.streetaddress1.value))
		{
			
			outString += "-- Street Address\n";
			if(focusSet == 0)
			{
				document.apply.streetaddress1.focus();
				focusSet = 1;
			}
		}
		if(isBlank(document.apply.city.value))
		{
			
			outString += "-- City\n";
			if(focusSet == 0)
			{
				document.apply.city.focus();
				focusSet = 1;
			}
		}
		if(isBlank(document.apply.state.value))
		{
			
			outString += "-- State\n";
			if(focusSet == 0)
			{
				document.apply.state.focus();
				focusSet = 1;
			}
		}
		if(isBlank(document.apply.zipcode.value))
		{
			
			outString += "-- Zip Code\n";
			if(focusSet == 0)
			{
				document.apply.zipcode.focus();
				focusSet = 1;
			}
		}
		if((!document.getElementById("automotive").checked) && (!document.getElementById("business").checked) && (!document.getElementById("diesel").checked) && (!document.getElementById("computer").checked) && (!document.getElementById("dietary").checked) && (!document.getElementById("electricity").checked) && (!document.getElementById("nursing").checked) && (!document.getElementById("hvac").checked) && (!document.getElementById("cna").checked) && (!document.getElementById("nursing").checked) && (!document.getElementById("welding").checked) && (!document.getElementById("millwright").checked))
		{
			outString += "-- Select at least one program.\n";
			if(focusSet == 0)
			{
				document.getElementById("automotive").focus();
				focusSet = 1;
			}
		}
		if(!(document.apply.sex[0].checked) && !(document.apply.sex[1].checked))
		{
		outString += "-- Gender\n";
		}
		
		if(!(document.apply.veteran[0].checked) && !(document.apply.veteran[1].checked))
		{
			outString += "-- Veteran\n";
		}
		
		if(!(document.apply.singleparent[0].checked) && !(document.apply.singleparent[1].checked) && !(document.apply.singleparent[2].checked))
		{
			outString += "-- Single Parent\n";
		}
		
		if(!(document.apply.limtd_eng_prof[0].checked) && !(document.apply.limtd_eng_prof[1].checked))
		{
			outString += "-- Limited English Proficiency\n";
		}
		
		if(!(document.apply.displaced_homemaker[0].checked) && !(document.apply.displaced_homemaker[1].checked) && !(document.apply.displaced_homemaker[2].checked))
		{
			outString += "-- Displaced Homemaker\n";
		}
		if(document.apply.race.value == 0)
		{
			outString += "-- Race\n";
		}
		alert(outString);
		return false;
	}
	return true;
} 