function checkFormAvail(thisForm, holiday_type_id)
{
	if (thisForm.noadults.value == "" || thisForm.noadults.value == "0")
	{
		alert ("Please select the number of adults");
		
		return false;
	}
	
	if (thisForm.room_availability_date.value == "" || checkDate(thisForm.room_availability_date.value) == false)
	{
		alert ("Please enter a commencement date");
		
		return false;
	}
	
	if (thisForm.nonights.value == "" || thisForm.nonights.value == "0")
	{
		alert ("Please select the duration");
		
		return false;
	}
	
	if (thisForm.airport_code.value == "0")
	{
		alert ("Please select a departure airport");
		
		return false;
	}
	
	return true;
}

function checkDateSelected(thisForm)
{
	if (thisForm.selected_date.value == "")
	{
		alert ("Please select a date from the list");
		
		return false;
	}
	
	return true;
}

function checkFormDeal(thisForm)
{
	if (thisForm.noadults.value == "" || thisForm.noadults.value == "0")
	{
		alert ("Please select the number of adults");
		
		return false;
	}
	
	if (thisForm.airport_code.value == "0")
	{
		alert ("Please select a departure airport");
		
		return false;
	}
	
	return true;
}

function checkMsgProperty(msgType)
{
	if (msgType == '1')
	{
		alert ("This property is not available on the specified date.\nPlease select a different date.");
	}
	else if (msgType == '2')
	{
		alert ("No available flights were found on the specified date.\nPlease select a different airport or departure date.");
	}
}