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)) || (isBlank(document.apply.email.value)) ||
		(!isNumeric(document.apply.zipcode.value)) ||
		((!document.apply.cs.checked) && (!document.apply.is.checked) && (!document.apply.it.checked) &&
		(!document.apply.grad_cs.checked) && (!document.apply.grad_it.checked)))
	{
		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) || (!isNumeric(document.apply.zipcode.value)))
		{
			
			outString += "-- Zip Code\n";
			if(focusSet == 0)
			{
				document.apply.zipcode.focus();
				focusSet = 1;
			}
		}
		if(isBlank(document.apply.email.value))
		{
			
			outString += "-- E-mail\n";
			if(focusSet == 0)
			{
				document.apply.email.focus();
				focusSet = 1;
			}
		}
		if((!document.apply.mgmt.checked) && (!document.apply.mkt.checked) &&
		(!document.apply.mba.checked) && (!document.apply.cert.checked))
		{

			outString += "-- Select at least one program.\n";
			if(focusSet == 0)
			{
				document.apply.mgmt.focus();
				focusSet = 1;
			}
		}
		alert(outString);
		return false;
	}
	alert("Thank you!  Your request has been processed.");
	return true;
} 
