database=new Array("milg_alg.html","milg_alg02.html","milg_alg03.html","milh_ww1.html","milh_ww2.html","milh_ww2_02.html","mill_F.html","milv_alg.html","milv_D.html","milv_D2.html","milv_D3.html","milv_D4.html","milv_D5.html","milv_DB.html","milv_DB02.html","milv_EDR.html","milv_F.html","milv_GB.html","milv_USA.html","milv_USA2.html","milv_USA3.html","milvest.html");

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];}}


