有关三级联动菜单问题?
<!--#include file="conn.asp"-->
<html xmlns="http://www.w3.org/1999/xhtml">
<%
dim str,rs
str="select * from Sub_Menu order by SMID desc"
set rs=conn.execute(str)
%>
<script language = "JavaScript">
var aaa;
aaa=0;
bb = new Array();
<%
count = 0
do while not rs.eof
%>
bb[<%=count%>] = new Array("<%= trim(rs("SMName"))%>","<%= trim(rs("MID"))%>","<%= trim(rs("SMID"))%>");
<%count = count + 1
rs.movenext
loop
rs.close
set rs=nothing
%>
aaa=<%=count%>;
function chang1(Menu)
{
document.form1.Sub_Menu.length = 0;
document.form1.Sub_Menu.disabled=false;
var Menu=Menu;
var i;
document.form1.Sub_Menu.options[0] = new Option('===请选择===','');
for (i=0;i < aaa; i++)
{
if (bb[i][1] == Menu)
{
document.form1.Sub_Menu.options[document.form1.Sub_Menu.length] = new Option(bb[i][0], bb[i][0]);
}
}
if(document.form1.Sub_Menu.options.length==1)document.form1.Sub_Menu.disabled=true;
}
function chang2(Sub_Menu)
{
document.form1.T_Sub_Menu.length = 0;
document.form1.T_Sub_Menu.disabled=false;
var Sub_Menu=Sub_Menu;
var i;
document.form1.T_Sub_Menu.options[0] = new Option('===请选择===','');
for (i=0;i < aaa; i++)
{
if (bb[i][1] == Sub_Menu)
{
document.form1.T_Sub_Menu.options[document.form1.T_Sub_Menu.length] = new Option(bb[i][0], bb[i][0]);
}
}
if(document.form1.T_Sub_Menu.options.length==1)document.form1.T_Sub_Menu.disabled=true;
}
</script>
<body>
<form name="form1" action="s_add_TSMenu.asp" method="post">
<table width="100%" border="0">
<tr>
<td width="48%" class="STYLE1"><div align="right" class="STYLE1">菜单名称:</div></td>
<td width="52%" class="STYLE1"><span class="STYLE1">
<label>
<input name="s_tsmname" type="text" id="s_tsmname" />
</label>
</span></td>
</tr>
<tr>
<td class="STYLE1"><div align="right" class="STYLE1">所属主菜单:</div></td>
<td class="STYLE1"><span class="STYLE1">
<select name="Menu" id="Menu" onchange="chang1(document.form1.Menu.options[document.form1.Menu.selectedIndex].value)">
<option value="">请选择</option>
<%
str="select * from Menu"
set rs=server.createobject("ADODB.Recordset")
rs.open str,conn,1,1
do while not rs.eof
%>
<option value="<%=rs("MID")%>"><%=rs("MName")%></option>
<%
rs.movenext
loop
rs.Close
set rs=nothing
%>
</select>
</span></td>
</tr>
<tr>
<td class="STYLE1"><div align="right" class="STYLE1">所属一级菜单:</div></td>
<td class="STYLE1"><span class="STYLE1">
<select name="Sub_Menu" onchange="chang2(document.form1.Sub_Menu.options[document.form1.Sub_Menu.selectedIndex].value)">
<option value="">请选择</option>
</select>
</span></td>
</tr>
<tr>
<td class="STYLE1"><div align="right">所属二级菜单:</div></td>
<td class="STYLE1">
<select name="T_Sub_Menu">
<option value="">请选择</option>
</select></td>
</tr>
<tr>
<td> </td>
<td><label>
<input type="submit" name="Submit" value="确定" />
<input type="reset" name="Submit2" value="重置" />
</label></td>
</tr>
</table>
<BR>
</form>
</body>
</html>
各位请问:为什么我的三级菜单总是显示为灰色状态?请高手帮忙改下,谢谢