//This is a little automated LAST MODIFIED script that you can stick at the //bottom of your pages and forget about updating it. //Hacked together by Stephen King and James Wright: 03/22/96 //It even works for the year 2000 and up!! function initArray() { // Thanks JavaScript Mailing List for this function this.length = initArray.arguments.length for (var i = 0; i < this.length; i++) this[i+1] = initArray.arguments[i] } function ShowLastupdate() { var DOWArray = new initArray("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"); var MOYArray = new initArray("January","February","March","April","May","June","July","August","September","October","November","December"); var LastModDate = new Date(document.lastModified); /*document.write("This page was last updated on "); document.write(DOWArray[(LastModDate.getDay()+1)],", "); document.write(MOYArray[(LastModDate.getMonth()+1)]," "); document.write(LastModDate.getDate(),", ",(LastModDate.getYear()+1900)); */ /*document.write(LastModDate.getDate(),", ",(LastModDate.getYear())," ", (LastModDate.getHours()),":", (LastModDate.getMinutes()),":", (LastModDate.getSeconds())); */ document.write("This page last updated on ", DOWArray[(LastModDate.getDay()+1)],", " + document.lastModified); document.write("."); } function lastMod() { var x = new Date (document.lastModified); Modif = new Date(x.toGMTString()); Year = takeYear(Modif); Month = Modif.getMonth(); Day = Modif.getDate(); Mod = (Date.UTC(Year,Month,Day,0,0,0))/86400000; x = new Date(); today = new Date(x.toGMTString()); Year2 = takeYear(today); Month2 = today.getMonth(); Day2 = today.getDate(); now = (Date.UTC(Year2,Month2,Day2,0,0,0))/86400000; daysago = now - Mod; if (daysago < 0) return ''; unit = 'days'; if (daysago > 730) { daysago = Math.round(daysago/365); unit = 'years'; } else if (daysago > 60) { daysago = Math.round(daysago/30); unit = 'months'; } else if (daysago > 14) { daysago = Math.round(daysago/7); unit = 'weeks' } towrite = '
'; return towrite; } function takeYear(theDate) { x = theDate.getYear(); var y = x % 100; y += (y < 38) ? 2000 : 1900; return y; } function WriteGMTDateAndTime() { var curDateTime = new Date() document.write(curDateTime.toGMTString()) }