// ###################################################################
// William and Elyse's Due South Site JavaScript Code
//
// Developer: William A. R.
// Date:      09-January-2007
//
//   This library contains JavaScript to be used to support the 
// website.
//
// Main Functions:
//   PrintFooter('');
//
// Tested Browsers:
//   Mozilla 1.6 / Firefox 1.5 / Internet Explorer 6 / Safari 1.3
//
// History
//   09-Jan-2007: Initial Version (war)
//
// ###################################################################

// ///////////////////////////////////////////////////////////////////
//
// PageFooter()
//
//   This function prints out a generic footer to the end of each page
// it is called from.
//
// Inputs:
//    szExtra:    Any extra text we want to add to the footer. (Optional)
//    bzSkipDate: true - don't print file date. (Optional)
//
// ///////////////////////////////////////////////////////////////////
function PageFooter(szExtra, bzSkipDate) {

   try {
      bzSkipDate = bzSkipDate ? true : false;

      document.write('<p><hr width="90%"></p>\n\n');

      var szDate = new Date(document.lastModified); 
      document.write('<div class="Footer">\n');

      if ( !(bzSkipDate) ) {
         document.write('   <b>Page Last Modified:</b> ' + (szDate.getMonth() + 1) + "/" + szDate.getDate() + "/" + szDate.getFullYear() + "<br>\n");
      }

      document.write(
         '   <a href="../copyright.htm">Copyright</a> by <a href="../../cgi-bin/mailmessage2.cgi">William and Elyse</a>.<br>\n' +
         '   Any other uses or reproduction of this page are <u>strictly prohibited</u><br>\n' +
         '   without the specific written consent of the authors.<br>\n' +
         szExtra + "\n" +
         '</div>\n\n'
      );
   }

   catch (svError) {
      alert('ERROR: Cannot print footer!\n\n' + svError.message);
   }

} // End PageFooter()
