//  This JavaScript code dynamically writes a footer on each web page where it is called.
// It should be called in the <body> section of a document, immediately before the
// </body> tag.

// If the page fails to declare an author name and address, create default values
if (authorname == null) var authorname = 'Webmaster';
if (authoraddress == null) var authoraddress = 'webmaster@' + document.domain;

var footer = '';
footer += '<hr></hr><h6>This page is located at <a href="' + location.href + '">';
footer += location.href + '</a>.</h6><h6>It was written and designed by <a href="mailto:';
footer += authoraddress + '">' + authorname + '</a>, and last modified ';

var revised = new Date(document.lastModified);

footer += revised.toLocaleString() + '.</h6>';

document.write(footer);

