if fnum = 1 then Response.Write(" <b>"&fLang("L_Search054")&"</b> [") else Response.Write(" <b>"& fLangN("L_Search055",maxPages) &"</b>[") end if
if maxpages>1 then if mypage-PagesToShow<1 then MinPageToShow=1 else MinPageToShow=mypage-PagesToShow if mypage+PagesToShow>maxpages then MaxPageToShow=maxpages else MaxPageToShow=mypage+PagesToShow if MinPageToShow>1 then response.write " <a href=""#"" onClick=""changeValue("&fnum &",1)""><<</a>" for counter=MinPageToShow to MaxPageToShow if counter<>mypage then response.write " <a href=""#"" onClick=""changeValue("&fnum &","&counter&")"">"&counter&"</a> " else response.write " <strong>"&counter&"</strong> "
next if MaxPageToShow<maxpages then response.write " <a href=""#"" onClick=""changeValue("&fnum &","&maxpages&")"">>></a> " response.write " ]" else response.write " <strong>1</strong> (of 1)" end if response.write "</font></td>"
Response.Write(" </form>" & vbNewLine)
top="0" end sub ===============================================================<
if fnum = 1 then Response.Write(" <b>"& fLang("L_Search054") &"</b> [") else Response.Write(" <b>"& fLangN("L_Search055",maxPages) &"</b>[") end if
if maxpages>1 then if mypage-PagesToShow<1 then MinPageToShow=1 else MinPageToShow=mypage-PagesToShow end if if mypage+PagesToShow>maxpages then MaxPageToShow=maxpages else MaxPageToShow=mypage+PagesToShow end if
if MinPageToShow>1 then response.write " <a href=""#"" onClick=""changeValue("&fnum &",1)""><<</a>" end if
for counter=MinPageToShow to MaxPageToShow if counter<>mypage then response.write " <a href=""#"" onClick=""changeValue("&fnum &","&counter&")"">"&counter&"</a> " else response.write " <strong>"&counter&"</strong> " end if next if MaxPageToShow<maxpages then response.write " <a href=""#"" onClick=""changeValue("&fnum &","&maxpages&")"">>></a> ]" else response.write " ]" end if
top="0" response.write "</font></td>" Response.Write(" </form>" & vbNewLine) end if end sub<