<table width="86%" border="0" align="center" cellpadding="3" cellspacing="2">
				<form action="" method="post" name="thisform" id="thisform">
                  <tr>
                    <td>产品搜索：</td>
                  </tr>
                  <tr>
                    <td align="center">
					
					
					<table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                          <td width="23%" align="center">大类:</td>
                          <td><select name="cateid" id="select" onChange="changelocation(document.thisform.cateid.options[document.thisform.cateid.selectedIndex].value)" style="width:100px" border="0">
                              <option value="0">请选择大类</option>
                              <%
	set rs=server.createobject("adodb.recordset")
	sql="select cateid,catename from CATE"
	rs.open sql,conn,1,1
	do while not rs.EOF
	response.Write("<option value='"&rs("cateid")&"'>"&rs("catename")&"</option>")
	rs.movenext
	loop
	rs.close
	%>
                          </select></td>
                        </tr>
                        <tr>
                          <td align="center">小类:</td>
                          <td><select name="subcateid" id="subcateid" style="width:100px" border="0">
                              <option value="0">请选择小类</option>
                              <%
	sql="select subcateid,subcatename,cateid from SUBCATE"
	rs.open sql,conn,1,1
	%>
      <script language = "JavaScript" type="text/javascript">
        var onecount;
        onecount=1;
        subcat = new Array();
        <%count = 0
        do while not rs.eof %>
            subcat[<%=count%>] = new Array("<%=trim(rs("SubCateName"))%>","<%=cstr(rs("cateid"))%>","<%=cstr(rs("subcateid"))%>");
		<%
		count = count + 1
        rs.movenext
        loop
        rs.close
        %>
        onecount=<%=count%>;
	function changelocation(locationid)
    {
    document.thisform.subcateid.length = 0; 

    var locationid=locationid;
    var i;
    for (i=0;i < onecount; i++)
     	{
            if (subcat[i][1] == locationid)
            { 
                document.thisform.subcateid.options[document.thisform.subcateid.length] = new Option(subcat[i][0], subcat[i][2]);
            }        
        }
        
    }    
                              </script>
                            </select>
                              </span></td>
                        </tr>
                        <tr>
                          <td colspan="2" valign="bottom">关键词
                            <input name="keys" type="text" id="keys" size="10" border="0" />
                              <label>
                              <input type="submit" name="Submit" value="搜 索" />
                            </label></td>
                        </tr>
                    </table></td>
                  </tr>
				  </form>
                </table>