<%
sql = "Select * from subcategory where catid="&c("catid")
set s = getrecordset(Sql)
if s.eof <> true and s.bof <> true then
while s.eof <> true
%>
&subid=<%=s("subcatid")%>" style="text-decoration:none" class="smalltextgreen"><%=es(s("subcategory"))%>
<%
s.movenext
wend
end if
%>