// delete error message from fields that need to be filled in so subscriber doesn't have to
function delMess(fieldName) {
	if (document.bookingform[fieldName].value == "Please fill in this field") {
		document.bookingform[fieldName].value = "";
	}
}

// check fields in reverse order so that first incorrect field has focus 
function checkFields() {
	var verrmsg = "Please fill in this field";
	var vsubmit = true;
	if (document.bookingform.people.value == 00) {
		vsubmit = false;
		document.bookingform.people.focus();
	}
	if (document.bookingform.depday.value == 00) {
		vsubmit = false;
		document.bookingform.depday.focus();
	}
	if (document.bookingform.arrday.value == 00) {
		vsubmit = false;
		document.bookingform.arrday.focus();
	}
	if (document.bookingform.intcode.value == "" ||
		document.bookingform.areacode.value == "" ||
		document.bookingform.telno.value == "") {
		vsubmit = false;
		document.bookingform.intcode.focus();
	}
	if (document.bookingform.emailaddr.value == "" ||
		document.bookingform.emailaddr.value == verrmsg) {
		vsubmit = false;
		document.bookingform.emailaddr.focus();
		document.bookingform.emailaddr.value = verrmsg;
	}
	if (document.bookingform.name.value == "" ||
		document.bookingform.name.value == verrmsg) {
		vsubmit = false;
		document.bookingform.name.focus();
		document.bookingform.name.value = verrmsg;
	}
	if (vsubmit == true) {
		return (true);
	} else {
		return (false);
	}
}

function emailNow() {
	goAhead = checkFields();
	if (goAhead == true) {
		document.bookingform.submit();
	}
}
