VAR OneCount;
OneCount = 0;
Subcat = new array ();
<%
INT count = 0;
RS = conn.executeQuery ("Select * from ego_smallsort order by sid"; // read data
While (rs.next ())
{
String sname = new string (rs.getstring ("sname"). GetBytes ("GBK"), "ISO8859_1"); // Convert Character Type
%>
Subcat [<% = count%>] = new array ("<% = sname%>", "<% = rs.get (" BID ")%>", "<% = rs.Getint (" sID ") %> "); // Generate an array
<%
Count = count 1;
}
%>
OneCount = <% = count%>;
Function ChangeLocation (ID)
{
Document.form1.smallsortselect.Length = 0;
VAR ID = ID;
Var i;
Document.form1.smallsortselect.Options [0] = new option ('Select Secondary Classification', '');
For (i = 0; i { IF (Subcat [i] [1] == ID) { Document.form1.smallsortselect.Options [Document.form1.smallsortselect.Length] = new option (Subcat [i] [0], Subcat [i] [2]); } } } script> hEAD>