Creating a forward button using an array

Hi,

I was just wondering if it was possible to make a forward button that would get the next page in a list, or sequence.

I am using the javascript on the back button to go to previous pages, and was wondering if there was some way to define a sequence for the forward button so that I don’t have to code it on every page.

Both the Forward and back buttons are within an editable region in a template, the back button is fine because its the same on every page, but the forward button is very tedious when you have about 60+ pages.

Any help would be much appreciated.