{
var tMenu=document.Adjust.old_list;
var mark=new Array();
var doc_no=new Array();
var doc=new Array();
var j=0;
<%
count=0
set rsfile=server.createobject("adodb.recordset")
selectfile="select * from d_doc where doc_no<>'' and doc_no is not null and file_mark<>'' and file_mark is not null order by doc_no "
rsfile.open selectfile,conn,1,1
while not rsfile.eof
%>
mark[<%=count%>]="<%=rsfile("file_mark")%>";
doc_no[<%=count%>]="<%=rsfile("doc_no")%>";
tMenu.options[n] = new Option(" "+m+" --------- "+doc[n],doc[n]);
}
}
function createSub3Options()
{
var tMenu=document.Adjust.new_list;
var mark=new Array();
var doc_no=new Array();
var doc=new Array();
var j=0;
<%
count=0
set rsfile=server.createobject("adodb.recordset")
selectfile="select * from d_doc where doc_no<>'' and doc_no is not null and file_mark<>'' and file_mark is not null order by doc_no "
rsfile.open selectfile,conn,1,1
while not rsfile.eof
%>
mark[<%=count%>]="<%=rsfile("file_mark")%>";
doc_no[<%=count%>]="<%=rsfile("doc_no")%>";
<!--[33,175,1] published at 2003-12-26 11:23:21 from #010 by 265-->
//汽车品牌及型号数组定义
//格式:carTypes[序号]=new Array('品牌', '型号1','型号1 url', '型号2','型号2 url', ...)
carTypes=new Array()
carTypes[0]=new Array('NISSAN','ZN1031U2G','http://auto.sina.com.cn/salon/hn-nissan/hn-nissan/zhengzhourichan-ZN1031U2G/car.shtml','ZN5031XGCE2G','http://auto.sina.com.cn/salon/hn-nissan/hn-nissan/zhengzhourichan/car.shtml','帕拉丁SE 4X4(4WD)','http://auto.sina.com.cn/salon/hn-nissan/hn-nissan/PALADIN3.3L/car.shtml','帕拉丁XE 4X2(2WD)','http://auto.sina.com.cn/salon/hn-nissan/hn-nissan/ZN6491E2G/car.shtml','帕拉丁XE 4X4(4WD)','http://auto.sina.com.cn/salon/hn-nissan/hn-nissan/PALADIN/car.shtml')
carTypes[1]=new Array('Scion','Scion xA','http://auto.sina.com.cn/salon/TOYOTA/Scion/xA/car.shtml','Scion xB','http://auto.sina.com.cn/salon/TOYOTA/Scion/xB/car.shtml')
carTypes[2]=new Array('阿尔法.罗米欧','阿尔法-罗米欧166','http://auto.sina.com.cn/salon/FIAT/ALFAROMEO/Alfa-romeo_166/car.shtml','阿尔法-罗米欧Gtv','http://auto.sina.com.cn/salon/FIAT/ALFAROMEO/Alfa_Gtv/car.shtml','阿尔法.罗米欧147','http://auto.sina.com.cn/salon/FIAT/ALFAROMEO/Alfa-romeo147/car.shtml','阿尔法.罗米欧156','http://auto.sina.com.cn/salon/FIAT/ALFAROMEO/Alfa-romeo_156/car.shtml')
carTypes[3]=new Array('阿斯顿·马丁','阿斯顿.马丁DB7','http://auto.sina.com.cn/salon/FORD/ASTONMARTIN/martin_DB7/car.shtml','阿斯顿马丁_优势','http://auto.sina.com.cn/salon/FORD/ASTONMARTIN/youshi/car.shtml')
carTypes[4]=new Array('奥迪','新奥迪A8','http://auto.sina.com.cn/salon/VOLKSWAGEN/AUDI/xinaudiA8/car.shtml','奥迪 A4 敞篷版','http://auto.sina.com.cn/salon/VOLKSWAGEN/AUDI/audia4cabrio/car.shtml','奥迪 allroad quattro','http://auto.sina.com.cn/salon/VOLKSWAGEN/AUDI/allroad/car.shtml','奥迪 S4 敞篷版','http://auto.sina.com.cn/salon/VOLKSWAGEN/AUDI/audis4cabio/car.shtml','奥迪A2','http://auto.sina.com.cn/salon/VOLKSWAGEN/AUDI/AudiA2/car.shtml','奥迪A3','http://auto.sina.com.cn/salon/VOLKSWAGEN/AUDI/Audi_A3/car.shtml','奥迪A4','http://auto.sina.com.cn/salon/VOLKSWAGEN/AUDI/A41.8/car.shtml','奥迪A61.8','http://auto.sina.com.cn/salon/VOLKSWAGEN/AUDI/A61.8/car.shtml','奥迪A62.4','http://auto.sina.com.cn/salon/VOLKSWAGEN/AUDI/A62.4/car.shtml','奥迪A62.8','http://auto.sina.com.cn/salon/VOLKSWAGEN/AUDI/A62.8/car.shtml','奥迪A8','http://auto.sina.com.cn/salon/VOLKSWAGEN/AUDI/AUDI_A8/car.shtml','奥迪A8_2.8','http://auto.sina.com.cn/salon/VOLKSWAGEN/AUDI/A8_2.8/car.shtml','奥迪Quattro','http://auto.sina.com.cn/salon/VOLKSWAGEN/AUDI/AUDIQuattro/car.shtml','奥迪S4','http://auto.sina.com.cn/salon/VOLKSWAGEN/AUDI/AUDI_S4/car.shtml','奥迪TT','http://auto.sina.com.cn/salon/VOLKSWAGEN/AUDI/AUDI_TT/car.shtml')
function setType(form,obj){
if ( obj.selectedIndex >0 ){
var brandIndex=obj.selectedIndex-1;
form.carType.options.length=0 //clear carType selector
form.carType.options[0]=new Option('请选择型号 ')
for (i=1;i<carTypes[brandIndex].length/2;i++){
form.carType.options[i]=new Option(carTypes[brandIndex][i*2-1],carTypes[brandIndex][i*2])
}
}
}
function openNewWin(form){
if (form.carType.selectedIndex>0){
var url=form.carType[form.carType.selectedIndex].value
window.open(url)
}else{
alert("请选择!")
}
}