<%
var firstPage = 0;
var lastPage = pages.length-1;
var firstPageFormatted = appView.commaSeparateNumber(firstPage+1),
currentPageFormatted = appView.commaSeparateNumber(currentPage+1);
if(currentPage != firstPage){
print('- Prev
');
}
if(currentPage == firstPage){
print('');
}
else if(currentPage-1 == firstPage){
print('');
print('');
}
else if(currentPage-2 == firstPage){
print('');
print('');
print('');
}
else if(currentPage-3 == firstPage){
print('');
print('');
print('');
print('');
}
else{
print('');
print('- ...
');
print('');
print('');
print('');
}
if(currentPage == lastPage){
//Do nothing
}
else if(currentPage+1 == lastPage){
print('');
}
else if(currentPage+2 == lastPage){
print('');
print('');
}
else if(currentPage+3 == lastPage){
print('');
print('');
print('');
}
else{
print('');
print('');
print('- ...
');
print('');
}
if(currentPage != lastPage){
print('- Next
');
}
%>