// Display the current year

var thedate = new Date();
theYear = thedate.getYear();
if (theYear < 1900) theYear += 1900;
document.write(theYear);