//caiyulu 2011-11-21 头部公共搜索form的check

/* 国内酒店查询预订*/
function checkHotel(){
	if($("#hotel_form").val()=='城市名称'||$("#hotel_form").val()==''){
		  alert("请输入城市名称！");
		  $("#hotel_form").focus();
		  return false;
	}
	if($("#start_date").val()=='yy-mm-dd'){
		 alert("请输入有效的入住日期！");
		 return false;
	}
	 if($("#end_date").val()=='yy-mm-dd'){
		 alert("请输入有效的离店日期！");
		 return false;
	 }
	
	 if($("#end_date").val()<=$("#start_date").val()){
		 alert("离店日期必须大于住店日期！");
		 return false;
	 }
	 $('#hotel_submit').hide();
	 $('#hotel_submit_value').text('正在为您查询，请稍后...').show();
} 


//景点搜索框	
function set_act_value(){
	if($('#attKeyword').val() == '输入景点名称关键字' || $('#attKeyword').val() == ''){
		alert('请输入景点名称关键字');
		$('#attKeyword').focus();
		return false;
	}
	$('#keyword_value').val('景点名称-关键字: '+ $('#attKeyword').val());
	$('#act').val('keyword');
	$('#attractions_search').submit();
}
function check_val(){
	if($('#attCityKeyword').val() == '根据城市名称查找景点' || $('#attCityKeyword').val() == ''){
		alert('请输入城市名称');
		$('#attCityKeyword').focus();
		return false;
	}
}
	
//签证搜索框
function check_input(){
	if($('#visa_form').val() == ''){
		alert('请输入国家名称~！');
		$('#visa_form').focus();
		return false;
	}
}
