87,922
社区成员
发帖
与我相关
我的任务
分享
<SCRIPT language=javascript>
function GoTo(wheres,formname)
{
if(ListItemForSale.smallclassid.value=='0'){
alert("请输入你所要查询的城市!");
ListItemForSale.bigclassid.focus();
return false;
}
if(ListItemForSale.starttime.value==''){
alert("请选择入住日期!");
formnListItemForSaleame.starttime.focus();
return false;
}
if(ListItemForSale.deptime.value==''){
alert("请选择退房日期!");
ListItemForSale.deptime.focus();
return false;
}
switch(wheres)
{
case 'query':
ListItemForSale.action="SearchResult.asp";
ListItemForSale.submit();
break;
case 'insterdb':
//alert('a');
ListItemForSale.action="chkhotel.asp";
ListItemForSale.submit();
break;
}
}
</SCRIPT>
<SCRIPT language=javascript>
function GoTo(wheresx)
{
switch(wheresx)
{
case 'query':
htform.action= "SearchResult.asp";
htform.submit();
break;
case 'insterdb':
alert('a');
htform.action= "chkhotel.asp";
htform.submit();
break;
}
}
</SCRIPT>
<form method="post" name="htform" action="flight/searching.asp" target="_blank">
<table>
<tr>
<td colspan="8"><font color="#666699">补充:</font><input type="text" name="cabinfo" class="inputclass2" id="cabinfo" value="如导游、度假、机票、租车方面需要"
onfocus="checkss(this,1,'如导游、度假、机票、租车方面需要')"
onblur="checkss(this,2,'如导游、度假、机票、租车方面需要')"
onclick="checkss(this,0,'如导游、度假、机票、租车方面需要');" /></td>
</tr>
<tr>
<td colspan="8" align="center" style="padding-top:10px;">
<input type="button" name="Submit" value="查询预定" class="submitcolor" onClick="GoTo('query')"/>
<input type="button" name="Submit2" value="直接提交" onClick="GoTo('insterdb')">
<input type="hidden" name="action" value="chkhot" />
<input type="reset" name="reset" value=" 重 置 " class="submitcolor" />
</td>
</tr>
</table>
</form>