//***********************************************************
// Get File Last Modify Date
//
// Developed By:  William A. R.
// Date Developed: April 09, 2002
// Compatibility:  Netscape 4.0+ / Internet Explorer 4.0+
//
// Purpose:
//    Determine the last time that a file was modified and print
// that date out to the screen.
//
//***********************************************************
function LastUpdate() {

   var szDate = new Date(document.lastModified); 
   document.write('<P CLASS="date"><B>Page Last Modified:</B> ' + 
                  (szDate.getMonth() + 1) + "/" + szDate.getDate() + "/" + szDate.getFullYear() );

}

//***********************************************************
// Display Picture
//
// Developed By:  William A. R.
// Date Developed: April 09, 2002
// Compatibility:  Netscape 4.0+ / Internet Explorer 4.0+
//
// Purpose:
//    Opens up a new Browser window to display the picture in.
//
// Inputs:
//    *szLink:    Link to the picture to display.
//    *szCaption: Text to use as a caption.
//
//***********************************************************
function PicWin(szLink, szCaption) {

   if ( parseInt(navigator.appVersion) >= 4 ) {
      var x = Math.round(screen.width/2)  - 168;
      var y = Math.round(screen.height/2) - 200;

      if ( szLink) {
         picWin = window.open("", "picWin", "scrollbars=yes,resizable=yes," +
                              "menubar=yes,width=375,height=400,top=" + y + 
                              ",left=" + x + "");

         picWin.document.open();
         picWin.document.write('<HTML>\n<HEAD>\n   <TITLE>Due South Photo</TITLE>\n</HEAD>\n\n' +
                               '<LINK REL="stylesheet" HREF="style_win.css" TYPE="text/css">\n\n' +
                               '<BODY>\n<CENTER>\n<B>' + szCaption + '</B>\n' +
                               '<P><IMG SRC="' + szLink + '">\n' +
                               '<P><A HREF="javascript:self.close();">Close Window</A>\n' +
                               '</CENTER>\n\n</BODY>\n</HTML>');
         picWin.document.close();
         picWin.focus();

      } else {
         alert('ERROR: No photo link passed in!');
      }
   } else {
      window.location.href = szLink;
   }
   
}

