<!-- Begin
//Check for null and empty strings
function isFilled(elm){
	if(elm.value == "" || elm.value == null){
		return false;
	}else{
		return true;
	}
}
//checks all fields for validation
function isReady(form){

var now = new Date();
var today = new Date(now.getYear(),now.getMonth(),now.getDate());

var startDate;
var endDate;
startDate = form.ArriveSelectMonth.options[form.ArriveSelectMonth.selectedIndex].value+"/"+form.ArriveSelectDay.options[form.ArriveSelectDay.selectedIndex].value+"/"+form.ArriveSelectYear.options[form.ArriveSelectYear.selectedIndex].value;
endDate = form.DepartSelectMonth.options[form.DepartSelectMonth.selectedIndex].value+"/"+form.DepartSelectDay.options[form.DepartSelectDay.selectedIndex].value+"/"+form.DepartSelectYear.options[form.DepartSelectYear.selectedIndex].value;

if( (isFilled(form.No_of_Adults.options[form.No_of_Adults.selectedIndex])==false) &&
	(isFilled(form.No_of_Children.options[form.No_of_Children.selectedIndex])==false) &&
	(isFilled(form.No_of_Infants.options[form.No_of_Infants.selectedIndex])==false)
	) {
alert("The Number in Party is required.");
form.No_of_Adults.focus();
return false;
}
if(Date.parse(startDate) < today){
alert("Arrival Date must be in the future.");
form.ArriveSelectDay.focus();
return false;
}
if(Date.parse(endDate) < today){
alert("Departure Date must be in the future.");
form.DepartSelectDay.focus();
return false;
}
if(Date.parse(startDate) >= Date.parse(endDate)){
alert("Departure Date must be later than Arrival Date.");
form.DepartSelectDay.focus();
return false;
}
if( (isFilled(form.DoubleRoom.options[form.DoubleRoom.selectedIndex])==false) &&
	(isFilled(form.TwinRoom.options[form.TwinRoom.selectedIndex])==false) &&
	(isFilled(form.TripleRoom.options[form.TripleRoom.selectedIndex])==false) &&
	(isFilled(form.SingleRoom.options[form.SingleRoom.selectedIndex])==false) &&
	(isFilled(form.FamilyRoom.options[form.FamilyRoom.selectedIndex])==false)
	) {
alert("The Number of Rooms is required.");
form.DoubleRoom.focus();
return false;
}
if(isFilled(form.realname)==false) {
alert("The Name field is required.");
form.realname.focus();
return false;
}
if(isFilled(form.email)==false) {
alert("The Email field is required.");
form.email.focus();
return false;
}
if(isFilled(form.telephone)==false) {
alert("The Telephone field is required.");
form.telephone.focus();
return false;
}
return true;
}
//  End -->
