function contactData() {
	var problem = 'No';
	if (document.contact.realname.value.length <= 0 || document.contact.realname.value == "enter your name") {
		alert ("Please enter your name.");
		document.contact.realname.focus();
		problem = 'Yes';
		return false;
	}
	if (document.contact.email.value.length <= 7 || document.contact.email.value == "enter your contact email") {
		alert ("Please enter your email address.");
		document.contact.email.focus();
		problem = 'Yes';
		return false;
	}
	if (document.contact.telephone.value.length <= 6 || document.contact.telephone.value == "your phone no.") {
		alert ("Please enter your telephone number.");
		document.contact.telephone.focus();
		problem = 'Yes';
		return false;
	}
	if (document.contact.message.value.length <= 6 || document.contact.message.value == "Enter the details of your enquiry") {
		alert ("Please enter the details of your enquiry.");
		document.contact.message.focus();
		problem = 'Yes';
		return false;
	}
	if (problem == 'No') {
		return true;
	} else {
		return false;
	}
}

function bookingData() {
	var problem = 'No';
	if (document.booking.arr_date.value.length <= 5 || document.booking.arr_date.value == "enter arrival date") {
		alert ("Please enter your intended arrival date");
		document.booking.arr_date.focus();
		problem = 'Yes';
		return false;
	}
	if (document.booking.dep_date.value.length <= 5 || document.booking.dep_date.value == "enter departure date") {
		alert ("Please enter your intended departure date");
		document.booking.dep_date.focus();
		problem = 'Yes';
		return false;
	}
	if (document.booking.guest_adult.value.length == "") {
		alert ("Please enter the number of guests that will be staying.");
		document.booking.guest_adult.focus();
		problem = 'Yes';
		return false;
	}
	if (document.booking.realname.value.length <= 0 || document.booking.realname.value == "enter your name") {
		alert ("Please enter your full name.");
		document.booking.realname.focus();
		problem = 'Yes';
		return false;
	}
	if (document.booking.street.value.length <= 0 || document.booking.street.value == "enter your street address") {
		alert ("Please enter your street address.");
		document.booking.street.focus();
		problem = 'Yes';
		return false;
	}
	if (document.booking.suburb.value.length <= 0 || document.booking.suburb.value == "enter your suburb") {
		alert ("Please enter your suburb.");
		document.booking.suburb.focus();
		problem = 'Yes';
		return false;
	}
	if (document.booking.state.value == "state") {
		alert ("Please select your state.");
		document.booking.state.focus();
		problem = 'Yes';
		return false;
	}
	if (document.booking.postcode.value.length <= 3 || document.booking.realname.value == "postcode") {
		alert ("Please enter your postcode.");
		document.booking.postcode.focus();
		problem = 'Yes';
		return false;
	}
	if (document.booking.email.value.length <= 7 || document.booking.email.value == "enter your contact email") {
		alert ("Please enter your email address.");
		document.booking.email.focus();
		problem = 'Yes';
		return false;
	}
	if (document.booking.telephone.value.length <= 6 || document.booking.telephone.value == "your phone no.") {
		alert ("Please enter your telephone number.");
		document.booking.telephone.focus();
		problem = 'Yes';
		return false;
	}
	if (problem == 'No') {
		return true;
	} else {
		return false;
	}
}