function ot()
{
  document.all("bada").style.display="none";
  document.all("one").style.display="none";
  document.all("two").style.display="none";
  document.all("three").style.display="none";
  document.all("four").style.display="none";
  document.all("five").style.display="none";
  document.all("six").style.display="";
}
function gj_ot()
{
  document.all("gj_bada").style.display="none";
  document.all("gj_one").style.display="none";
  document.all("gj_two").style.display="none";
  document.all("gj_three").style.display="none";
  document.all("gj_four").style.display="none";
  document.all("gj_five").style.display="none";
  document.all("gj_six").style.display="";
}
function rt()
{
  document.all("bada").style.display="block";
  document.all("one").style.display="none";
  document.all("two").style.display="none";
  document.all("three").style.display="none";
  document.all("four").style.display="none";
  document.all("five").style.display="none";
  document.all("six").style.display="";
}
function gj_rt()
{
  document.all("gj_bada").style.display="block";
  document.all("gj_one").style.display="none";
  document.all("gj_two").style.display="none";
  document.all("gj_three").style.display="none";
  document.all("gj_four").style.display="none";
  document.all("gj_five").style.display="none";
  document.all("gj_six").style.display="";
}
function wt()
{
  document.all("bada").style.display="block";
  document.all("one").style.display="";
  document.all("two").style.display="";
  document.all("three").style.display="";
  document.all("four").style.display="";
  document.all("five").style.display="";
  document.all("six").style.display="none";
}
function gj_wt()
{
  document.all("gj_bada").style.display="block";
  document.all("gj_one").style.display="";
  document.all("gj_two").style.display="";
  document.all("gj_three").style.display="";
  document.all("gj_four").style.display="";
  document.all("gj_five").style.display="";
  document.all("gj_six").style.display="none";
}
function chk_fill()
{
	if(FormGn.hdlx[0].checked && FormGn.txtDepDate.value.trim()=="")
	{
		alert("请选择出发日期");
		return false;
	}
	if(FormGn.hdlx[1].checked && FormGn.txtDepDate.value.trim()=="")
	{
		alert("请选择出发日期");
		return false;
	}
	if(FormGn.hdlx[1].checked && FormGn.txtBckDate.value.trim()=="")
	{
		alert("请选择返回日期");
		return false;
	}
	if(FormGn.hdlx[1].checked && FormGn.txtBckDate.value.trim()<=FormGn.txtDepDate.value.trim())
	{
		alert("请选择返回日期必须大于出发日期");
		return false;
	}
	if(FormGn.hdlx[2].checked && FormGn.txtDepDate.value.trim()=="")
	{
		alert("请选择出发日期");
		return false;
	}
	if(FormGn.hdlx[2].checked && FormGn.txtBckDate.value.trim()=="")
	{
		alert("请选择第二出发日期");
		return false;
	}
	if(FormGn.hdlx[2].checked && FormGn.txtBckDate.value.trim()<=FormGn.txtDepDate.value.trim())
	{
		alert("请选择第二出发日期必须大于出发日期");
		return false;
	}
	return true;
}
function chk_Gj()
{
	if(FormGj.hdlx[0].checked && FormGj.txtDepDate.value.trim()=="")
	{
		alert("请选择出发日期");
		return false;
	}
	if(FormGj.hdlx[1].checked && FormGj.txtDepDate.value.trim()=="")
	{
		alert("请选择出发日期");
		return false;
	}
	if(FormGj.hdlx[1].checked && FormGj.txtBckDate.value.trim()=="")
	{
		alert("请选择返回日期");
		return false;
	}
	if(FormGj.hdlx[1].checked && FormGj.txtBckDate.value.trim()<=FormGj.txtDepDate.value.trim())
	{
		alert("请选择返回日期必须大于出发日期");
		return false;
	}
	if(FormGj.hdlx[2].checked && FormGj.txtDepDate.value.trim()=="")
	{
		alert("请选择出发日期");
		return false;
	}
	if(FormGj.hdlx[2].checked && FormGj.txtBckDate.value.trim()=="")
	{
		alert("请选择第二出发日期");
		return false;
	}
	if(FormGj.hdlx[2].checked && FormGj.txtBckDate.value.trim()<=FormGj.txtDepDate.value.trim())
	{
		alert("请选择第二出发日期必须大于出发日期");
		return false;
	}
	return true;
}
function chk_hotel()
{
	if(Hotel.txtDepDate.value.trim()=="")
	{
		alert("请选择入住日期");
		return false;
	}
	if(Hotel.txtBckDate.value.trim()=="")
	{
		alert("请选择离开日期");
		return false;
	}
	if(Hotel.txtBckDate.value.trim()<=Hotel.txtDepDate.value.trim())
	{
		alert("请选择离开日期必须大于入住日期");
		return false;
	}
	return true;
}
function search(strtype)
{
document.getElementById(strtype).style.display="block";
document.getElementById("td_"+strtype).style.backgroundImage="url(/images/homepage/blank_01.gif)";
}
function hideCity(strtype)
{
document.getElementById(strtype).style.display="none";
document.getElementById("td_"+strtype).style.backgroundImage="url(/images/homepage/blank_02.gif)";
}
