for(int i = 0; i < pages; i++) {
if(i == currentPage)
pager.addElement(new B(String.valueOf(i + 1)));
else if(Math.abs(i - currentPage) <= PAGER_DIRECT_LINKS)
pager.addElement(new A("TransferLog?" + PAGE + "=" + i, String.valueOf(i + 1)));
if(currentPage - i <= PAGER_DIRECT_LINKS && currentPage - i > -(PAGER_DIRECT_LINKS) && i != pages - 1)
pager.addElement(" | ");
}
if(currentPage < pages - 1){