4,008
社区成员
发帖
与我相关
我的任务
分享
<script type="vbscript">
sub scour_onclick()
if searchx.province.value="" then
window.alert("请选择省份!")
exit sub
end if
if searchx.cityID.value="" then
window.alert("请选择城市!")
exit sub
end if
if searchx.inTime.value<now() then
window.alert("入住日期不能早于当前日期!")
exit sub
end if
if searchx.outTime.value<=searchx.inTime.value then
window.alert("离开日期至少应比入住日期晚1天!")
exit sub
end if
searchx.submit
end sub
</script>
<script type="text/javascript">
<!--
function MM_jumpMenu(targ,selObj,restore){
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<form action="search.asp" method="post" name="searchx" id="searchx">
<select name="province" id="province" onChange="javascript:MM_jumpMenu('parent',this,0)">
<option value="<%=url%>">请选择省份</option>
</select>
<select name="city" id="city" onChange="javascript:MM_jumpMenu('parent',this,0)">
<option value="<%=url%>">城市</option>
</select>
<input type="hidden" name="cityID" id="cityID" value="<%=cityID%>">
<input type="text" name="inTime" id="inTime" value="0000-00-00" onFocus="javascript:this.value=''">
<input type="text" name="outTime" id="outTime" value="0000-00-00" onfocus="javascript:this.value=''">
<input type="button" name="scour" id="scour" value="查询">
<input type="reset" name="res" id="res" value="重置">