function checkIt (form) {

	first = new String ("");
	last = new String ("");
	city = new String ("");
	state = new String ("");
	phone = new String ("");
	email = new String ("");
	
	first = document.forms[0].first.value;
	last = document.forms[0].last.value;
	city = document.forms[0].city.value;
	state = document.forms[0].state.value;
	phone = document.forms[0].phone.value;
	email = document.forms[0].email.value
	
	if ( first == "") {
		alert ("Please enter your first name.");
		document.forms[0].first.focus();
		return false;
	}
	
		if ( last == "") {
		alert ("Please enter your last name.");
		document.forms[0].last.focus();
		return false;
	}
	
		if ( city == "") {
		alert ("Please enter your city.");
		document.forms[0].city.focus();
		return false;
	}
	
		if ( state == "") {
		alert ("Please enter your state/province name. If you are not in the United States or Canada, you may enter 0");
		document.forms[0].state.focus();
		return false;
	}
	
		if (phone == "") {
		alert ("Please enter your telephone number.");
		document.forms[0].phone.focus();
		return false;
	}
	
	if (phone.length < 10) {
		alert ("Your telephone number appears to be too short. If you are in the United States or Canada, we require and area code, otherwise, please include your country code.");
	document.forms[0].phone.focus();
	return false
}

	
		if (email == "") {
		alert ("Please enter your email address.");
		document.forms[0].email.focus();
		return false;
	}
	
	
	atSign = document.forms[0].email.value.indexOf("@");
 	dotSign = document.forms[0].email.value.lastIndexOf(".");
 	spaceCase = document.forms[0].email.value.indexOf(" ");
 	atDot = dotSign - atSign;
 	
 	 if (atSign == -1 || atSign == 0 || dotSign == - 1 || dotSign == 0 || atDot == 1 || spaceCase != -1) {
 	alert("Email address is not valid. Email addresses should be formatted as name@provider.com")
 	document.forms[0].email.focus ();
 	return false;
 	}
 	
 }