Here's the endz.js file used to display the END OPTIONS on my web pages
It's called in each web page as in ...

<TITLE>pigsoft(c)2001</TITLE>
<script language="JavaScript" src="endz.js"></script>
</HEAD>

Here is the contents of endz.js text file ...

--[ start of file ] 

function do_header()
{
    document.write("<br><hr>");
    document.write("Contact <a href='mailto:terry@b92.co.uk'>terry</a> for more info: I don't have all the answers, but may be able to help!");
}

function do_back()
{
    document.write(" [ <a href='javascript:history.back()' target='_self' >Back to Last Page</a> ]");
}

function write_end3( string, number )
{
document.write("<center>");
if ( string != "no" ) do_header();
document.write("<hr>"); 
document.write(" [ <a href='pigsoft.htm' target='_self' >Pigsoft page</a> ]");
document.write(" [ <a href='../main.htm' target='_self' >Home page</a> ]");
document.write(" [ <a href='../myisp.htm' target='_self' >MyIsp page</a> ]");
if( number ) do_back();
document.write("<br><hr></center>");
}

function write_end2( string, number )
{
document.write("<center>");
if ( string != "no" ) do_header();
document.write("<hr>"); 
document.write(" [ <a href='../main.htm' target='_self' >Home page</a> ]");
document.write(" [ <a href='../myisp.htm' target='_self' >MyIsp page</a> ]");
if( number ) do_back();
document.write("<br><hr></center>");
}

--[ end of file (endz.js) ]
It's called when needed like so ...
<script language="JavaScript;>
write_end3();
</script>
this is the output
with the "no" option and the number '1' activate ... IT'S
<script language="JavaScript;>
write_end3("no",1);
</script>

with the "" blank option and the number '1' activate ... IT'S
<script language="JavaScript;>
write_end3("",1);
</script>

COOL OR WHAT ... lots of options to play with here
b.t.w. the bottom is the actual end (GRIN)