// This Javascript routine generates the "LAST REVISED" date in the footer of each HTML
// page from the file "last modified" date.  It should be called from every page on the
//                    site as indicated at the end of this file.


months = new Array("January","February","March","April","May","June","July","August","September","October","November","December");

footer = "<table width=250 align=right cellpadding=0 cellspacing=0 border=0>";
footer += "<tr><td width=250 align=right><FONT SIZE=-1 COLOR=#0000FF>";
footer += "<B><I>The National Huguenot Society</I></B></FONT></td></tr>";
footer += "<tr><td width=250 align=right><FONT SIZE=2>";


if(Date.parse(document.lastModified) == 0)  {               // unknown date (or January 1, 1970 GMT)
        formattedDate = new Date();
}
else {
        formattedDate = new Date(document.lastModified);   // page last modified date
}

month = formattedDate.getMonth();
month = months[month];
day = formattedDate.getDate();
year = formattedDate.getYear();
if (year < 1000)  {
        year = 1900 + year;
}
if (year < 1960) {
        year = 100 + year;
}
displayDate = month + "  " + day + ",  " + year;
footer += "Last Revised:  " + displayDate + "</FONT></td></tr></table>";
document.write(footer);



//   include the following code in any HTML document to include this code when the page is loaded:
//          <SCRIPT SRC="/javascript/revised.js">
//          <!--
//          alert("Javascript error encountered.  Please notify Webmaster and provide URL of this page.");
//          //-->
//          </SCRIPT>