function checkForm(TheForm) {
	var errors = '';
	if(TheForm.name.value.length == 0) {
		errors += "- Name\n";
    }
	if(TheForm.address.value.length == 0) {
		errors += "- Address\n";
    }
	if(TheForm.state.value.length == 0) {
		errors += "- State\n";
    }
	if(TheForm.postcode.value.length == 0) {
		errors += "- Post Code\n";
    }
	if(TheForm.country.value.length == 0) {
		errors += "- Country\n";
    }
	if(TheForm.email.value.length == 0) {
		errors += "- Email\n";
    }
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(TheForm.email.value)) {
		
	} else {
		errors += "- A properly formatted email address\n";
	}
	if(TheForm.phone.value.length == 0) {
		errors += "- Phone\n";
    }
	if(errors != '') {
		alert('The form needs some corrections before it can be submitted.\n' + errors);
		return false;
	} 
return true;
}