<script language=JavaScript>
<%
	set rs_s=server.createobject("adodb.recordset")
	sql="select * from anclass order by anclassidorder"
	rs_s.open sql,conn,1,1
%>
	var selects1=[];
	selects1['0']=new Array(new Option('--不限系列--','0'));
<%
	for i=1 to rs_s.recordcount
%>
	selects1['<%=rs_s("anclassid")%>']=new Array(

new Option('--不限系列--','0'),
<%
	set rs_s1=server.createobject("adodb.recordset")
	sql="select * from nclass where anclassid="&rs_s("anclassid")&" order by nclassidorder"
	rs_s1.open sql,conn,1,1
	if rs_s1.recordcount>0 then 
	%>


	<%		for j1=1 to rs_s1.recordcount
		if j1=rs_s1.recordcount then 
%>
		new Option('<%=trim(rs_s1("nclass"))%>','<%=trim(rs_s1("nclassid"))%>'));
<%		else
%>
		new Option('<%=trim(rs_s1("nclass"))%>','<%=trim(rs_s1("nclassid"))%>'),
<%
		end if
		rs_s1.movenext
		next
	else 
%>
		new Option('','0'));
<%
	end if
	rs_s1.close
	set rs_s1=nothing
	rs_s.movenext
	next
rs_s.close
set rs_s=nothing
%>
	function chsel1(){
		with (document.formpub){
			if(anclass.value) {
				nclass.options.length=0;
				for(var i=0;i<selects1[anclass.value].length;i++){
					nclass.add(selects1[anclass.value][i]);
				}
			}
		}
	}
</script>
<script language=JavaScript>
<%dim i_1,j_1
	set rs_s=server.createobject("adodb.recordset")
	sql="select * from province order by shengorder"
	rs_s.open sql,conn,1,1
%>
	var selects=[];
	selects['0']=new Array(new Option('--不限县--','0'));
<%
	for i=1 to rs_s.recordcount
%>
	selects['<%=rs_s("ShengNo")%>']=new Array(

new Option('--不限县--','0'),
<%
	set rs_s1=server.createobject("adodb.recordset")
	sql="select * from city where shengid="&rs_s("id")&" order by shiorder"
	rs_s1.open sql,conn,1,1
	if rs_s1.recordcount>0 then 
	%>


	<%		for j=1 to rs_s1.recordcount
		if j=rs_s1.recordcount then 
%>
		new Option('<%=trim(rs_s1("shiname"))%>','<%=trim(rs_s1("shiNo"))%>'));
<%		else
%>
		new Option('<%=trim(rs_s1("shiname"))%>','<%=trim(rs_s1("shiNo"))%>'),
<%
		end if
		rs_s1.movenext
		next
	else 
%>
		new Option('','0'));
<%
	end if
	rs_s1.close
	set rs_s1=nothing
	rs_s.movenext
	next
rs_s.close
set rs_s=nothing
%>
	function chsel(){
		with (document.formpub){
			if(province.value) {
				city.options.length=0;
				for(var i=0;i<selects[province.value].length;i++){
					city.add(selects[province.value][i]);
				}
			}
		}
	}
</script>

<body topmargin="0">
<div align="center">
	<table border="0" width="780" cellspacing="0" cellpadding="0">
		<tr>
			<td background="images/webhead_bg3.gif">
			<table border="0" width="100%" cellspacing="0" cellpadding="0">
			<tr><td height=3></td></tr>
				<tr>
					<td height=13 valign="baseline">
					<p align="right">
					<a href="user/reg.asp" style="text-decoration: none"><font color="#FFFFFF">会员注册</font></a><font color="#FFFFFF"> | 
					<a href="user/login.asp" style="text-decoration: none"><font color="#FFFFFF">会员登录</font></a><span lang="en-us">
					</span>|<span lang="en-us">
					</span>
					<a href="user/getpassword.asp" style="text-decoration: none"><font color="#FFFFFF">密码找回</font></a><span lang="en-us"> </span>|<span lang="en-us"> </span>
					<a href="user/" style="text-decoration: none"><font color="#FFFFFF">会员中心</font></a><span lang="en-us">
					</span>|<span lang="en-us">
					</span><a href="help.asp" style="text-decoration: none"><font color="#FFFFFF">帮助中心</font></a>&nbsp;&nbsp; </td>
				</tr>
				<tr>
					<td>　</td>
				</tr>
			</table>
			</td>
		</tr>
	</table>
<table border="0" width="780" cellspacing="0" cellpadding="0">
	<tr>
		<td>
		<table border="0" width="100%" cellspacing="0">
			<tr>
				<td>
				<a href="<%=weburl%>">
		<img src="<%=weblogo%>" title="<%=webname%>" border="0"></a> </td>
				<td width="523">
				<%if ad1801class=0 then%>
			<table cellSpacing="1" cellPadding="0" width="95" bgColor="#cccccc" border="0">
			<tr>
				<td style="FONT-SIZE: 12px; COLOR: #293d05" bgColor="#ffffff" height="30">
				<table cellSpacing="1" cellPadding="0" width="523" bgColor="#ffffff" border="0">
					<tr>
						<td style="FONT-SIZE: 12px; COLOR: #293d05" bgColor="#ffffff" height="69">
						<a target="_blank" href="<%=ad1801url%>">
			<img  alt="<%=ad1801name%>" src="<%=ad1801%>"  border="0" width=523 height=69></a></td>
					</tr>
				</table>
				</td>
			</tr>
		</table><%else%>
		<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="523" height="69">
	<param name="movie" value="<%=ad1801%>">
	<param name="quality" value="High">
	<embed src="<%=ad1801%>" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="523" height="69"></object>
	<%end if
	%>
				</td>
			</tr>
		</table>
		</td>
	</tr>
</table>
</div>

<div align="center">
<table width="790" cellspacing="0"  style="border: medium none; margin: 0px; padding: 0px" >
<tr><td width="790" height="4" ></td></tr>
<tr  height="30">
	<td width="790" >
	<table border="0" width="100%" cellspacing="0" cellpadding="0">
		<tr>
			<td ><a href="index.asp">
			<img border="0" src="images/home.gif" align="left"></a></td>
			<td width="5">　</td>
			<td ><a href="price.asp"><img border="0" src="images/price.gif" ></a></td>
			<td width="5">　</td>
			<td >
			<a href="second_hand.asp">
			<img border="0" src="images/second_hand.gif" ></a></td>
			<td width="5">
			　</td>
			<td ><a href="lease.asp"><img border="0" src="images/lease.gif" ></a></td>
			<td width="5">　</td>
			<td >
		<a href="dealer.asp"><img border="0" src="images/dealer.gif" ></a></td>
						<td width="5">　</td>
			 	<td >
				<p align="center"><a href="news.asp"><img border="0" src="images/news.gif" ></a></td>
							<td width="5">　</td>
			<td ><a href="pic.asp">
			<img border="0" src="images/pic.gif" align="right" ></a></td>
		
		</tr>
	</table>
	</td></tr>
</table><div align="center">
	<table cellSpacing="0" cellPadding="0" width="780"  border="0">
		<tr>
			<td  height="3" ></td>
		</tr>
	</table>
<table border="0" width="780" cellspacing="0">
<form name="formpub" method="post"  action="research.asp">
	<tr>
		<td bgcolor="#eaeaea" height=30>
						<table cellSpacing="0" cellPadding="0"  align="center" border="0">
							<tr>
								<td>
								<img height="18" alt="" src="images/search_icon.gif" width="18">&nbsp; </td>
								<td >
						<select   name="pysjzx_type"  onchange="pysjzx_change();"  style="background-color:#FFF4E5">
						<option value="price" selected>报价</option>
						<option value="second_hand">二手车</option>
						<option value="lease">租赁车</option>
						</select><select size="1" name="anclass" onChange=chsel1()  class="wenbenkuang"  style="background-color:#FFF4E5">
          <option value="0" selected>--品牌不限--</option>
          <%dim tmppingpaiid
tmppingpaiid=0
set rs_s=server.createobject("adodb.recordset")
sql="select * from anclass  order by anclassidorder"
rs_s.open sql,conn,1,1
while not rs_s.eof%>
    
          <option value="<%=rs_s("anclassid")%>" ><%=rs_s("letter")%>-<%=trim(rs_s("anclass"))%></option>
          <%
 
    rs_s.movenext
wend
rs_s.close
set rs_s=nothing
%>
        </select><select size="1" size="18" name="nclass"  class="wenbenkuang"  style="background-color:#FFF4E5" >
						 <option value="0" >--系列不限--</option>

 <%
set rs_s=server.createobject("adodb.recordset")
sql="select * from nclass where nclassid="&tmppingpaiid&" order by nclassidorder"
rs_s.open sql,conn,1,1
while not rs_s.eof
%>
          <option value="<%=rs_s("nclassid")%>" selected><%=trim(rs_s("nclass"))%></option>
          <%
    rs_s.movenext
wend
rs_s.close
set rs_s=nothing
%></select><select size="1" name="province" onChange=chsel()  class="wenbenkuang"  style="background-color:#FFF4E5" >
          <option value="0" selected>--不限市--</option>
          <%dim tmpShengid
tmpShengid=0
set rs_s=server.createobject("adodb.recordset")
sql="select * from province  order by shengorder"
rs_s.open sql,conn,1,1
while not rs_s.eof%>
    
          <option value="<%=rs_s("ShengNo")%>" ><%=trim(rs_s("ShengName"))%></option>
          <%
 
    rs_s.movenext
wend
rs_s.close
set rs_s=nothing
%></select><select size="1" size="18" name="city"  class="wenbenkuang"  style="background-color:#FFF4E5"  >
                        <option value="0" >--不限县--</option>

            

 <%
set rs_s=server.createobject("adodb.recordset")
sql="select * from city where shengid="&tmpShengid&" order by shiorder"
rs_s.open sql,conn,1,1
while not rs_s.eof
%>
          <option value="<%=rs_s("ShiNo")%>" selected><%=trim(rs_s("ShiName"))%></option>
          <%
    rs_s.movenext
wend
rs_s.close
set rs_s=nothing
%>
					 </select>
						
								<td id=id_price><select  style="background-color:#FFF4E5" name="price_price">
								<option value="0" selected>售价不限</option>
						<option value="1" >1万以下</option>
						<option value="2">1-5万</option>
						<option value="3">5-10万</option>
						<option value="4">10-20万</option>
						<option value="5">20-50万</option>
			            <option value="6">50-100万</option>
			            <option value="7">100万以上</option>
						</select>
						　</td>
						<td  style="display:none;"  id=id_second_hand><select name="sell_price" style="background-color:#FFF4E5" nowrap>
				<option value="0" selected>售价不限</option>
							<option value="1">2000以下</option>
							<option value="2">2000-5000</option>
							<option value="3">5000-10000</option>
							<option value="4">10000-20000</option>
							<option value="5">20000-50000</option>
							<option value="6">50000-100000</option>
							<option value="7">100000-200000</option>
							<option value="8">200000以上</option>
							</select></td>
							<td  style="display:none;"  id=id_lease><select name="day_lease_price" style="background-color:#FFF4E5" nowrap>
				<option value="0" selected>日租价不限</option>
							<option value="1">100以下</option>
							<option value="2">100-200</option>
							<option value="3">200-500</option>
							<option value="4">500-1000</option>
							<option value="5">1000-2000</option>
							<option value="6">2000以上</option>
							</select><select name="month_lease_price" style="background-color:#FFF4E5" nowrap>
				<option value="0" selected>月租价不限</option>
							<option value="1">1000以下</option>
							<option value="2">1000-2000</option>
							<option value="3">2000-5000</option>
							<option value="4">5000-10000</option>
							<option value="5">10000-20000</option>
							<option value="6">20000-50000</option>
							<option value="7">50000以上</option>
							</select>
							</td>
								<td >&nbsp;<input type="image" height="18" width="18" src="images/search_button.gif" name="I1"> </td>
							
							</tr>
						</table>
						</td>
	</tr>
	</form>
</table>
</div></div>
<div align="center">
	<table border="0" width="780" cellspacing="0" cellpadding="0">
		<tr>
			<td height=8></td>
		</tr>
	</table>
</div>
<script language="javascript">
function pysjzx_change(){
	var priceObj = document.all.id_price;
	var second_handObj = document.all.id_second_hand;
	var leaseObj = document.all.id_lease;
	var pysjzx_type = document.formpub.pysjzx_type.value;
	if (pysjzx_type=="price"){priceObj.style.display = "block";second_handObj.style.display = "none";leaseObj.style.display = "none";}
	if (pysjzx_type=="second_hand"){priceObj.style.display = "none";second_handObj.style.display = "block";leaseObj.style.display = "none";}
    if (pysjzx_type=="lease"){priceObj.style.display = "none";second_handObj.style.display = "none";leaseObj.style.display = "block";}
}
</script>