

<%Pagename = replace(replace(replace(replace(Link_SQL_Result("Category")," ","_"), "'", ""),",","_"),"/","_")%>
<%
if TR_Count = 1 then
TR_Count = 0
else
TR_Count = Tr_Count + 1
end if
end if
count = count + 1
Link_SQL_Result.Movenext
Loop
Link_SQL_Result.Close
set Link_SQL_Result = Nothing
Total_Pages = Total_Records \ numResults
if Total_Records mod numResults > 0 then
Total_Pages = Total_Pages + 1
end if
if cint(page_num) > cint(Total_Pages) then
page_num = Total_Pages
end if
%>
<% if Link_SQL_Result("LinkCount") > "0" then %>
<%=Link_SQL_Result("Category")%> (<%=Link_SQL_Result("LinkCount")%> Link<%if Link_SQL_Result("LinkCount") > "1" then%>s<%end if%>)
<% else %>
<%=Link_SQL_Result("Category")%> (<%=Link_SQL_Result("LinkCount")%> Link<%if Link_SQL_Result("LinkCount") > "1" then%>s<%end if%>)
<% end if %>
<%=left(Link_SQL_Result("Category_Description"),210)%>
page
<% For PageNumber = 1 to Total_Pages %>
<% if clng(Page_Num) = clng(PageNumber) then %>
<%Next %>
<%=PageNumber%>
<% else %>
<%=PageNumber%>
<% end if%>
