// JavaScript Document


function validateForm() {
	var the_form = document.getElementById('form-at');
	var re_email = /\w+@\w+.\w+/
	
	if(the_form.full_name.value == "") {
		alert('Please fill in a name.');
		return false;
	} else if (!the_form.email.value.match(re_email)) {
		alert('Please fill in a valid e-mail address.');
		return false;
	} else if (the_form.phone.value == "") {
		alert('Please fill in a phone number.');
		return false;
	} 
	
	if (the_form.postal_code.value == '') {
		the_form.postal_code.value = '*';
	}
	
	//if (the_form.phone.value == '') {
	//	the_form.phone.value = '*';
//	}
	
	if (the_form.city_name.value == '') {
		the_form.city_name.value = '*';
	}
	return true;
}
