function GetYear(then){
    // Netscape <=4.5 has a Y2k bug that makes it believe we are 1900 i.o. 2000
    // this code to intercept the bug...
thisyear = then.getYear();
if(thisyear<70)
    thisyear+=2000;
if(thisyear<999)
    thisyear+=1900;
return thisyear;
}

function PrintYear(then){
    document.write(GetYear(then));
    return;
}

function PrintNiceDate(then, language){
    lastmod=new Date(then);
    thatyear = GetYear(lastmod);
    thatmonth = lastmod.getMonth();
    thatday = lastmod.getDate();
    lastmod = new Date(thatyear, thatmonth, thatday);
    ENWDays = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
    ENMonths = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");

    FRWDays = new Array("Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi");
    FRMonths = new Array("Janvier", "Fevrier", "Mars", "Avril", "Mai", "Juin", "Juillet", "Aout", "Septembre", "Octobre", "Novembre", "D&eacute;cembre");

    NLWDays = new Array("Zondag", "Maandag", "Dinsdag", "Woensdag", "Donderdag", "Vrijdag", "Zaterdag");
    NLMonths = new Array("Januari", "Februari", "Maart", "April", "Mei", "Juni", "Juli", "Augustus", "September", "Oktober", "November", "December");

    switch(language.toUpperCase()){
        case 'FR':
            document.write(FRWDays[lastmod.getDay()] + ", " + thatday + " " + FRMonths[thatmonth] + " " + thatyear);
            break;
        case 'NL':
            document.write(NLWDays[lastmod.getDay()] + ", " + thatday + " " + NLMonths[thatmonth] + " " + thatyear);
            break;
        default:
            document.write(ENWDays[lastmod.getDay()] + ", " + ENMonths[thatmonth] + " " + thatday + ", " + thatyear);
            break;
    }
    return;
};
