function validate_form() {
	
	valid = true;
	
	if (document.wine_form.firstName.value == "") {
		alert ("Please fill in your first name");
		valid = false;
		document.wine_form.firstName.focus();
		document.wine_form.firstName.style.backgroundColor = 'red';
	}	
	else {
		document.wine_form.firstName.style.backgroundColor = '';
	}
	if (document.wine_form.lastName.value == "") {
		alert ("Please fill in your last name");
		valid = false;
		document.wine_form.lastName.focus();
		document.wine_form.lastName.style.backgroundColor = 'red';
	}
	else {
		document.wine_form.lastName.style.backgroundColor = '';
	}
	if (document.wine_form.postal.value == "") {
		alert ("Please fill in your postal address");
		valid = false;
		document.wine_form.postal.focus();
		document.wine_form.postal.style.backgroundColor = 'red';	
	}
	else {
		document.wine_form.postal.style.backgroundColor = '' ;
	}
	if (document.wine_form.postCode.value == "") {
		alert ("Please fill in your post code");
		valid = false;
		document.wine_form.postCode.focus();
		document.wine_form.postCode.style.backgroundColor = 'red';	
	}
	else {
		document.wine_form.postCode.style.backgroundColor = '' ;
	}
	if (document.wine_form.state.value == "") {
		alert ("Please enter your state");
		valid = false;
		document.wine_form.state.focus();
		document.wine_form.state.style.backgroundColor = 'red';
	}
	else {
		document.wine_form.state.style.backgroundColor = '';
	}
	if (document.wine_form.phone.value == "") {
		alert ("Please fill in your phone number");
		valid = false;
		document.wine_form.phone.focus();
		document.wine_form.phone.style.backgroundColor = 'red';
	}
	else {
		document.wine_form.phone.style.backgroundColor = '';
	}
	if (document.wine_form.email. value == "") {
		alert ("Please enter an email address");
		valid = false;
		document.wine_form.email.focus();
		document.wine_form.email.style.backgroundColor = 'red';
	}
	else {
		document.wine_form.style.backgroundColor = '';
	}
	return valid;
}