function checkform()
	{
		if (document.book.name.value=='')
		{
			alert('Please enter your name');
			document.book.name.focus();
			return false;
		}
			else if (document.book.visitoremail.value=='')
		{
			alert('Please enter your email address');
			document.book.visitoremail.focus();
			return false;
		}
		else if (!checkMail())
		{
			alert('I can\'t reply unless you enter a valid email address...');
			return false;
		}
		else if (document.book.arrivaldate.value == '')
		{
			alert('Please tell us when you want to arrive');
			document.book.departuredate.focus();
			return false;
		} 
		else if (document.book.departuredate.value == '')
		{
			alert('Please tell us when you want to depart');
			document.book.departuredate.focus();
			return false;
		}  
		else if (document.book.departuredate.value < document.book.arrivaldate.value)
		{
			alert('You can not leave before you get to us');
			document.book.departuredate.focus();
			return false;
		}  
		else if (document.book.arrivinghow.selectedIndex == "0")
		{
			alert('Please tell me how you are arriving');
			document.book.persons.focus();
			return false;
		}
		else if (document.book.persons.selectedIndex == "0")
		{
			alert('Please tell me how many people are staying');
			document.book.persons.focus();
			return false;
		}
		else if (document.book.SexMale.selectedIndex + document.book.SexFemale.selectedIndex !== document.book.persons.selectedIndex)
		{
			alert('How many People are staying');
			document.book.persons.focus();
			return false;
		}    
		else if (document.book.accomtype.selectedIndex == "0")
		{
			alert('Please tell me what type of room you would like');
			document.book.accomtype.focus();
			return false;
		}
		else if (document.book.arrivaldate.value >"01/01" && document.book.arrivaldate.value <"01/03")
				{
			alert ('Sorry but there is no Online Booking between Dec/23 and Jan/03.\n\nWe apologise for the inconvenience but please call us on \n\n(02) 65660009 \n\nto make a reservation ');
			return false;
			}
		else if (document.book.arrivaldate.value >"12/23" && document.book.arrivaldate.value <"12/32")
				{
			alert ('Sorry but there is no Online Booking between Dec/23 and Jan/03.\n\nWe apologise for the inconvenience but please call us on \n\n(02) 65660009 \n\nto make a reservation ');
			return false;
			}
		else if (document.book.accomtype.selectedIndex == "3" & document.book.arrivinghow.selectedIndex == "2" & (document.book.arrivaldate.value >"01/03" && document.book.arrivaldate.value <"02/01"))
				{
			return confirm('You are Traveling in the High season and the cost for the motel will be $100. \n\nPlease be aware that Bush n Beach is located 3kms from most amenities other than the beach. \nFor this reason we are more suited to people with their own transport');
			return true;
			} 
		else if (document.book.accomtype.selectedIndex == "3" & document.book.arrivinghow.selectedIndex == "2" &(document.book.arrivaldate.value >"11/01" && document.book.arrivaldate.value <="12/23"))
				{
			return confirm('You are Traveling in the High season and the cost for the motel will be $100. \n\nPlease be aware that Bush n Beach is located 3kms from most amenities other than the beach. \nFor this reason we are more suited to people with their own transport');
			return true;
			} 
		else if (document.book.accomtype.selectedIndex == "3" &  (document.book.arrivaldate.value >"01/03" && document.book.arrivaldate.value <"02/01"))
				{
			return confirm('You are Traveling in the High season and the cost for the motel will be $100');
			return true;
			} 
		else if (document.book.accomtype.selectedIndex == "3" & (document.book.arrivaldate.value >"11/01" && document.book.arrivaldate.value <="12/23"))
				{
			return confirm('You are Traveling in the High season and the cost for the motel will be $100');
			return true;
			} 
			else if (document.book.arrivinghow.selectedIndex == "2")
		{
			return confirm('Please be aware that Bush n Beach is located 3kms from most amenities other than the beach. \nFor this reason we are more suited to people with their own transport');
			return true;
		}
			
		
		// Everything's Okay
		return true;
	}
	
	function checkMail()
	{
		var x = document.book.visitoremail.value;
		var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9])+$/;
		if (filter.test(x)) {
			return true;
		} else {
			return false;
		}
		
	
	}