anchor.diff:  					%>
   					
   					<%
  -					int endindex = ((crtpage-1)/page_pagecnt)*page_pagecnt+page_pagecnt;
  -					for(int i=((crtpage-1)/page_pagecnt)*page_pagecnt; i<endindex; i++)
  +					int pendindex = ((crtpage-1)/page_pagecnt)*page_pagecnt+page_pagecnt;
  +					for(int i=((crtpage-1)/page_pagecnt)*page_pagecnt; i<pendindex; i++)
   					{
   						if((totalpagecnt-1)/page_pagecnt == (crtpage-1)/page_pagecnt)
   						{
  -							endindex = totalpagecnt - (totalpagecnt-1)/page_pagecnt*page_pagecnt;
  +							pendindex = totalpagecnt;
   						}
   						else
   						{
  -							endindex = ((crtpage-1)/page_pagecnt)*page_pagecnt+page_pagecnt;
  +							pendindex = ((crtpage-1)/page_pagecnt)*page_pagecnt+page_pagecnt;
   						}
   					%>
   						<li><a href="?page=<%=i+1%>
  
positive.code: 					{
  					%>
  						<li>
  						  <a href="?page=<%=crtpage/page_pagecnt*page_pagecnt%>" aria-label="Previous">
  						    <span aria-hidden="true">&laquo;</span>
  						  </a>
  						</li>
  
negative.code: 					{
  					%>
  						<li>
  							<a href="?page=<%=(crtpage-1)/page_pagecnt*page_pagecnt+6%>
  								&sdate=<%=sdate%>
  								&edate=<%=edate%>
  								<%
  