function isBlank(s)
{
	for (var i =0; i< s.length; i++)
	{
		var c=s.charAt(i);
		if ((c !=' ') && (c !='\n') && (c != '\t')) return false;
	}
	return true;
}


function checkFields(form) {
	
	var firstName;
	var lastName;
	var homePhone;
	var address;
	var city;
	var state;
	var zip;
	var highestEducation;
	var degreesCertificates;
	var desiredPosition;
	var desiredSalary;
	var willingTravel;

	
	firstName=form.firstName.value;
	lastName=form.lastName.value;
	homePhone=form.homePhone.value;
	address=form.address.value;
	city=form.city.value;
	state=form.state.value;
	zip=form.zip.value;
	highestEducation=form.highestEducation.value;
	degreesCertificates=form.degreesCertificates.value;
	desiredPosition=form.desiredPosition.value;
	desiredSalary=form.desiredSalary.value;
	willingTravel=form.willingTravel.value;
	
	
	if (isBlank(firstName))
	{
		alert('Please enter your first name.');
		return false;
	}
	
	if (isBlank(lastName))
	{
		alert('Please enter your last name.');
		return false;
	}
	
	if (isBlank(homePhone)) 
	{
		alert('Please enter your home phone.');
		return false;
	}
	
	if (isBlank(address)) 
	{
		alert('Please enter your address.');
		return false;
	}

	if (isBlank(city)) 
	{
		alert('Please enter your city.');
		return false;
	}
	
	if (isBlank(state)) 
	{
		alert('Please enter your state.');
		return false;
	}
	
	if (isBlank(zip)) 
	{
		alert('Please enter your zip.');
		return false;
	}
	
	if (isBlank(highestEducation)) 
	{
		alert('Please enter your highest level of education.');
		return false;
	}		
	
	if (isBlank(degreesCertificates)) 
	{
		alert('Please enter any degrees, certificates or licenses.');
		return false;
	}		
	
	if (isBlank(desiredPosition)) 
	{
		alert('Please enter your desired position.');
		return false;
	}		
	
	if (isBlank(desiredSalary)) 
	{
		alert('Please enter your desired salary.');
		return false;
	}		
	
	if (isBlank(willingTravel)) 
	{
		alert('Please enter whether or not your willing to travel.');
		return false;
	}		
	
	
	else return true;
}