function holiday_search_chk()
{
	//if(document.holiday_search.overarea.value=="")
	//	{
	//		alert("请输入目的地");
	//		return false;
	//	}
		
	if (document.holiday_search.holiday_start_date1.value!="")
	{
		if (isDateString(document.holiday_search.holiday_start_date1.value)==false)
			{
			alert("您输入的出发日期不符合要求！");
			return false;
			}
	}
	if (document.holiday_search.holiday_start_date2.value!="")
	{
		if (isDateString(document.holiday_search.holiday_start_date2.value)==false)
			{
			alert("您输入的出发日期不符合要求！");
			return false;
			}
	}
	if(CompareDate(document.holiday_search.holiday_start_date1.value,document.holiday_search.holiday_start_date2.value)==true)
		{
			alert("第一出发日期不能大于第二出发日期");
			return false;
		}
	
	
	
	
	if (document.holiday_search.dtnum1.value!="")
	{
		if (isInteger(document.holiday_search.dtnum1.value)==false )
			{
			alert("您输入的行程天数不符合要求！");
			return false;
			}
	}
	if (document.holiday_search.dtnum2.value!="")
	{
		if (isInteger(document.holiday_search.dtnum2.value)==false )
			{
			alert("您输入的行程天数不符合要求！");
			return false;
			}
	}
}


function plane_search_chk()
{
if (document.plane_search.FromCity.value==document.plane_search.ToCity.value)
	{
	alert("起飞城市不能与到达城市相同");
	return false;
	}


if (isDateString(document.plane_search.AirDate.value)==false)
	{
	alert("您输入的去程日期不符合要求！");
	return false;
	}
//alert(document.plane_search.return2.checked);
//alert(document.plane_search.AirDateReturnCn.value);
if(document.plane_search.return2.checked==true)
	{

	if (isDateString(document.plane_search.AirDateReturnCn.value)==false)
		{
		alert("您输入的返程日期不符合要求！");
		return false;
		}
		//alert(test(document.form1.AirDate.value,document.form1.AirDateReturnCn.value));
	if(CompareDate(document.plane_search.AirDate.value,document.plane_search.AirDateReturnCn.value)==true)
		{
		alert("去程日期不能晚于返程日期");
		return false;
		}
	} 
}


function visa_search_chk()
{
if (document.visa_search.visa_class.value=="0")
	{
	alert("目前无该国家签证服务");
	return false;
	}
if (document.visa_search.visa_class.value=="")
	{
	alert("请选择签证类型");
	return false;
	}
}


function hotel_china_search_chk()
{
	if (document.srh.CheckInDate.value!="")
	{
		if (isDateString(document.srh.CheckInDate.value)==false)
			{
			alert("您输入的入住日期不符合要求！");
			return false;
			}
	}
	if (document.srh.CheckOutDate.value!="")
	{
		if (isDateString(document.srh.CheckOutDate.value)==false)
			{
			alert("您输入的退房日期不符合要求！");
			return false;
			}
	}
	if(CompareDate(document.srh.CheckInDate.value,document.srh.CheckOutDate.value)==true)
		{
			alert("入住日期不能大于退房日期");
			return false;
		}
	
}

function mdf_hotel_submitchk()
{
document.mdf.CheckInDate.value=document.mdf.CheckInDate_s.value;
document.mdf.CheckOutDate.value=document.mdf.CheckOutDate_s.value;

	if (document.mdf.CheckInDate.value!="")
	{
		if (isDateString(document.mdf.CheckInDate.value)==false)
			{
			alert("您输入的入住日期不符合要求！");
			return false;
			}
	}
	if (document.mdf.CheckOutDate.value!="")
	{
		if (isDateString(document.mdf.CheckOutDate.value)==false)
			{
			alert("您输入的退房日期不符合要求！");
			return false;
			}
	}
	if(CompareDate(document.mdf.CheckInDate.value,document.mdf.CheckOutDate.value)==true)
		{
			alert("入住日期不能大于退房日期");
			return false;
		}
}

