// 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");

// alert("Running revised_date.js script -- alert 1.");
output = '<div style="float: right; margin: 0 0 0 0; padding: 0 0 0 0; text-align: center; font-family: times;">';
output += '<span style="font-size: 15px; color: #0000ff; font-weight: bold; font-style: italic;">';
output += 'The National Huguenot Society';
output += '</span>';
output += '<br />';
output += '<span style="font-family: Arial, Helvetica, sans-serif; font-size: 14px;">';

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 + " &nbsp;" + day + ", &nbsp;" + year;
output += 'Last Revised: &nbsp;' + displayDate + '</span></div>';
document.write(output);



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