database=new Array();

NumberOfFiles=database.length;
StringA=window.location.href;
LengthA=StringA.length;
A=StringA.lastIndexOf("/")+1;
ThisFilename=StringA.substring(A,LengthA);
n=NumberOfFiles-1;

for (var z=0;z<=n;z++)
{
if (database[z]==ThisFilename)
{
ThisPageNumber=z;
}
}
function goBack(){
if (ThisPageNumber-1<0)
{
alert("You are at the beginning of the series");
}
else
{window.location=database[ThisPageNumber-1];
}
}
function goForward(){
if (ThisPageNumber+1>n)
{
alert("You are at the end of the series");
}
else
{window.location=database[ThisPageNumber+1];}}


