$("#paging li").click(function(){
//show the loading bar
showLoader();
$("#paging li").css({'background-color' : ''});
$(this).css({'background-color' : '#A5CDFA'});
$("#content").load("d.asp?page=" + this.id, hideLoader);
});
// by default first time this will execute
$("#1").css({'background-color' : '#A5CDFA'});
showLoader();
$("#content").load("d.asp?page=1", hideLoader);
});</script>
<%
'Show page links
for i=1 to pages
response.Write "<li id="""&i&""">"&i&"</li>"
next
%>
<%
if cint(pageno) > 1 then %>
<input type="button" class="form-site2" value="Previous" onClick="window.location='pm.asp?mailbox=<%=mailbox%>&page=<%=pageNo-1%>'">
<% end if
if cint(pageno) < totalPage then %>
<input type="button" class="form-site2" value="Next" onClick="window.location='pm.asp?mailbox=<%=mailbox%>&page=<%=pageNo+1%>'">
<%
end if
%>
<%
end if
%>