function validateAll() {
	if (!isFirstName())
		return false;
	if (!isLastName())
		return false;
	if (!isCompany())
		return false;
	if (!isAddress())
		return false;
	if (!isPostal())
		return false;
	if (!isCity())
		return false;
	if (!isProvince())
		return false;
	if (!isCounty())
		return false;
	if (!isPhone())
		return false;
	return true;
}
// check if they have chosen a country or not
function isCounty() {
	if(document.forms[0].country.selectedIndex == "0") {
		alert("\nPlease select a country.");
		return false;
	}
	return true;
}
// check phone number (field81)
function isPhone() {
	var str = document.forms[0].elements['phone'].value;
	if (str == "") {
		alert("\nThe phone field is blank.\n\nPlease enter your phone number.")
		document.forms[0].elements['phone'].focus();
		return false;
	}
	for (var i = 0; i < str.length; i++) 
	{
		var ch = str.substring(i, i + 1);
		if ((ch < "0" || "9" < ch) && ch != " " && ch != "-") 
		{
			alert("\nThe phone field only accepts numbers.\n\nPlease re-enter your phone number.");
			document.forms[0].elements['cell_phone'].select();
			document.forms[0].elements['cell_phone'].focus();
			return false;
	   }
	}
	return true;
}
function isFirstName() {
	var str = document.forms[0].elements['first_name'].value;
	if (str == "") {
		alert("\nThe first name field is blank.\n\nPlease enter your first name.")
		document.forms[0].elements['first_name'].focus();
		return false;
	}
	for (var i = 0; i < str.length; i++) 
	{
		var ch = str.substring(i, i + 1);
		if ((ch < "A" || "z" < ch) && ch != " ") 
		{
			alert("\nThe first name field only accepts letters.\n\nPlease re-enter your first name.");
			document.forms[0].elements['first_name'].select();
			document.forms[0].elements['first_name'].focus();
			return false;
	   }
	}
	return true;
}
function isLastName() {
	var str = document.forms[0].elements['last_name'].value;
	if (str == "") {
		alert("\nThe last name field is blank.\n\nPlease enter your last name.")
		document.forms[0].elements['last_name'].focus();
		return false;
	}
	for (var i = 0; i < str.length; i++) 
	{
		var ch = str.substring(i, i + 1);
		if ((ch < "A" || "z" < ch) && ch != " ") 
		{
			alert("\nThe last name field only accepts letters.\n\nPlease re-enter your last name.");
			document.forms[0].elements['last_name'].select();
			document.forms[0].elements['last_name'].focus();
			return false;
	   }
	}
	return true;
}
function isCompany() {
	var str = document.forms[0].elements['company'].value;
	if (str == "") {
		alert("\nThe company field is blank.\n\nPlease enter your company name.")
		document.forms[0].elements['company'].focus();
		return false;
	}
	return true;
}
function isAddress() {
	var str = document.forms[0].elements['address1'].value;
	if (str == "") {
		alert("\nThe address field is blank.\n\nPlease enter your address.")
		document.forms[0].elements['address1'].focus();
		return false;
	}
	return true;
}
function isPostal() {
	var str = document.forms[0].elements['postal_code'].value;
	if (str == "") {
		alert("\nThe postal code field is blank.\n\nPlease enter your postal code.")
		document.forms[0].elements['postal_code'].focus();
		return false;
	}
	return true;
}
function isCity() {
	var str = document.forms[0].elements['city'].value;
	if (str == "") {
		alert("\nThe city field is blank.\n\nPlease enter your city.")
		document.forms[0].elements['city'].focus();
		return false;
	}
	return true;
}
function isProvince() {
	var str = document.forms[0].elements['province'].value;
	if (str == "") {
		alert("\nThe state field is blank.\n\nPlease enter your state.")
		document.forms[0].elements['province'].focus();
		return false;
	}
	return true;
}
