function last_updated() 
{
lmtime=new Date(document.lastModified);
lmyear=lmtime.getYear();

// 2000 fix -
// IE3 & IE4 return 0 - if 0..9 prefix with 200
// IE5 returns 2000 - if 2000 or more leave
// Navigator 4.7 returns 100 - if 100..199 add to 1900
// Years before 2000 not an issue as any files which use this function will be modified after 2000

// if lmyear is 0..9 assume 2000..2009
// if lmyear is 10..99 assume 2010..2099
// if lmyear is 100..999 assume 2000..2899
// 1000+ assume OK

if (lmyear<10) {lmyear="200" + lmyear}
if (lmyear<100) {lmyear="20" + lmyear}
if (lmyear>=100 && lmyear<=999) {lmyear=1900+lmyear}

lmmonth=lmtime.getMonth()+1;
if (lmmonth<10) {lmmonth="0"+lmmonth}

lmdate=lmtime.getDate();
if (lmdate<10) {lmdate="0"+lmdate}

document.writeln(lmyear+"-"+lmmonth+"-"+lmdate);
}