<!--#include file="include/config.asp"-->
<%
Dim pId, tId, theNum, sTitle, eTitle, theTitle
	pId    = CLng(getQueryString("pId","int"))
	tId    = CLng(getQueryString("tId","int"))
	theNum = getQueryString("theNum","train")
	eTitle = getQueryString("eTitle","chinese")
	sTitle = getQueryString("sTitle","chinese")
	Select Case CStr(tId)
	Case "2"
	Case "3"
		theTitle = sTitle & "所有停靠车次列车时刻信息 - "
	Case Else
		tId = 1
	End Select
%>
<html>
<head>
<title><%= theTitle %><%= SiteTitle %></title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<link href="images/style.css" rel="stylesheet" type="text/css" />
<link href="/Skins/Style_1.css" rel="stylesheet" type="text/css">
<script language=javascript>
function TrainsTitle(){
  if (document.TrainZZ.sTitle.value == "")
  {alert("对不起，您没有输入始发站！请输入！");
    document.TrainZZ.sTitle.focus();
    return (false);} 		  
  if (document.TrainZZ.eTitle.value == "")
  {alert("对不起，您没有输入到达站！请输入！");
    document.TrainZZ.eTitle.focus();
    return (false);} 		  
}
function TrainNum(){
  if (document.TrainNumf.theNum.value == "")
  {alert("对不起，您没有输入列车车次！请输入！");
    document.TrainNumf.theNum.focus();
    return (false);} 		  
}
function TrainZhan(){
  if (document.TrainZhanF.sTitle.value == "")
  {alert("请输入您要查找的车站名称！");
    document.TrainZhanF.sTitle.focus();
    return (false);} 		  
}
//-->
</script>
</head>
<body>
<table width="770" border="1" align="center" bordercolor="#FFFFFF" style="border:1px solid #C2C2C2">
  <tr>
    <td width="422"><a href="/"><span class="font14"><strong>www.99Fad.cn 便民查询网</strong></span></a></td>
    <td width="329"><div align="right"><a href="/Cha/Mobile/">手机号码归属地查询</a>-<a href="/Cha/Sfz/">身份证查询</a>-<a href="/Cha/Yzbm/">邮编区号</a>-<a href="/Train/">列车查询等</a></div></td>
  </tr>
  <tr>
    <td colspan="2"><hr width="100%" size="1"></td>
  </tr>
  <tr>
    <td colspan="2"><!--#include virtual="/Inc/Menu.asp" --></td>
  </tr>
</table>
<br>
<div id="WebTitle">
	<h1><a href="/Train/" class="font14"><%= WebTitle %></a></h1>
</div>
<div id="maintable" class="p50">
	<div id="TabTitle">
		<div class="left" style="width: 90px;text-align: right;padding-top: 10px;">请选择：</div>
		<div class="SelectTabFont" style="width: 90px;" id="tab1" onClick="SelTab(1)">站站查询</div>
		<div class="NoSelectTabFont" style="width: 90px;" id="tab2" onClick="SelTab(2)">车次查询</div>
		<div class="NoSelectTabFont" style="width: 90px;" id="tab3" onClick="SelTab(3)">车站查询</div>
		<div class="NoSelectTabFont" style="width: 90px;"><a href="/">查询首页</a></div>
		<div class="right" style="color: #ffff00;padding: 10px 10px 0px 0px;"></div>
	</div>
	<div id="TabContent">
		<form action="Stos.asp" name="TrainZZ" onSubmit="return TrainsTitle();"><input type="hidden" name="tId" value="1">
		<div id="t1">出发站:&nbsp;&nbsp;<input type="text" size="15" name="sTitle" value="<%= sTitle %>">&nbsp;&nbsp;到达站:&nbsp;&nbsp;<input type="text" size="15" name="eTitle" value="<%= eTitle %>">&nbsp;&nbsp;<input type="submit" value="查 询" class="userbutton"></div>
		</form>
		<form action="TrainInfo.asp" name="TrainNumf" onSubmit="return TrainNum();"><input type="hidden" name="tId" value="2">
		<div id="t2" style="display: none;">车次:&nbsp;&nbsp;<input type="text" size="15" name="theNum" value="<%= theNum %>">&nbsp;&nbsp;<input type="submit" value="查 询" class="userbutton"></div>
		</form>
		<form action="TrainList.asp" name="TrainZhanF" onSubmit="return TrainZhan();"><input type="hidden" name="tId" value="3">
		<div id="t3" style="display: none;">车站名称:&nbsp;&nbsp;<input type="text" size="15" name="sTitle" value="<%= sTitle %>">&nbsp;&nbsp;<input type="submit" value="查 询" class="userbutton"></div>
		</form>
		<div id="t4" style="display: none;"></div>
		<div id="t5" style="display: none;"></div>
	</div>
</div>
<script language="javascript">
	function SelTab(n) {
		for (i = 1;i<=3;i++){
			document.getElementById("t"+i).style.display = "none";
			document.getElementById("tab" + i).className = "NoSelectTabFont";
		}
		document.getElementById("t"+n).style.display = "";
		document.getElementById("tab" + n).className = "SelectTabFont";
	}
	window.load = SelTab(<%= tId %>);
</script>
