function nextPage() {
//We get the page name from the URL
var sPath = window.location.pathname;
var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);

//We get the numeric part of the page name
var r = sPage.match(/[\d\.]+/g);
var pageNum = parseInt(r);

//We add one
var newPageNum = pageNum + 1;

//New Link
return window.location = sPage.replace(pageNum, newPageNum);
}