<script>
<!--
function redirect1(x)
{
var i=1;
var temp=document.myform.class2;
temp.options[i]=new Option("请选择类别");
for (var m=temp.options.length-1;m>0;m--)
temp.options[m]=null;
<%
Set RS2=fSelect("View_Class","DISTINCT class2_id,class2,class2_parentid","1=1")
while not rs2.eof
%>
if(<%response.write(rs2(2))%>==(x))
{
temp.options[i]=new Option("<%=trim(rs2(1))%>","<%=rs2(0)%>");
i=i+1;
}
else
{
temp.options[i]=null;
}
<%
rs2.movenext
wend
%>
}
function redirect2(x)
{
var i=1;
var temp=document.myform.class3;
temp.options[i]=new Option("请选择类别");
for (var m=temp.options.length-1;m>0;m--)
temp.options[m]=null;
<%
Set RS3=fSelect("View_Class","DISTINCT class3_id,class3,class3_parentid","1=1")
while not rs3.eof
%>
if(<%response.write(rs3(2))%>==(x))
{
temp.options[i]=new Option("<%=trim(rs3(1))%>","<%=rs3(0)%>");
i=i+1;}
else
{
temp.options[i]=null;
}
<%
rs3.movenext
wend
%>
}
function redirect3(x)
{
var i=0;
var temp=document.myform.class4;
temp.options[i]=new Option("请选择类别");
for (var m=temp.options.length-1;m>0;m--)
temp.options[m]=null;
<%
Set RS4=fSelect("View_Class","DISTINCT class4_id,class4,class4_parentid","1=1")
while not RS4.eof
%>
if(<%response.write(rs4(2))%>==(x))
{
temp.options[i]=new Option("<%=trim(rs4(1))%>","<%=rs4(0)%>");
i=i+1;}
else
{
temp.options[i]=null;
}
<%
rs4.movenext
wend
%>
}
//-->
</script>