If you know the current page, and total page count, how to mimick paging like google?
<p>Having a tough time figuring out the start and end for my loop.</p>

<p>I am looping and generating links for pages for a pager.</p>

<p>No matter what page the user is on, I want to show 10 links BEFORE and AFTER the current page.</p>

<p>just like google does.</p>

<p><strong>I need help calculating the start and end for this loop.</strong></p>
