now = new Date;
thecopyrightYear = now.getYear();
if (thecopyrightYear < 1900) {
    thecopyrightYear = thecopyrightYear + 1900;
}
document.write(thecopyrightYear);
