<!--//
/*
File Name:
   last_modified.js
Last Updated:
   4:26 PM 10/13/2004 JOE
*/



/*
Function Name:
   getLastModified
Function Arguments:
   dateFormat
Function Returns:
   modDate
Function Description:
   - returns a date string of the input format
   - 1. "%F %j, %Y" ("September 29, 2003")
   - 2. "%m/%d/%Y" ("09/29/2003")
Last Updated:
   1:22 PM 9/29/2003 JOE
*/
function getLastModified(dateFormat) {
   var modDate = 0;
   if (document.lastModified != 0) {

      var LastModDate = new Date(document.lastModified);
      var year = LastModDate.getYear();
      if (year < 1000)
         year += 1900;

      switch (dateFormat) {
         case 1:
            var months = new Array("January","February","March","April",
                                "May","June","July","August","September",
                                "October","November","December");
            modDate = months[(LastModDate.getMonth())] + " " + LastModDate.getDate() + ", " + year;
            break;
         case 2:
         default:
            modDate = (LastModDate.getMonth()+1) + "/" + LastModDate.getDate() + "/" + year;
            break;
      }
   }

   return modDate;
}


//-->
