today = new Date()
year = today.getYear()
if (year < 2000) { year += 1900; }
document.write(year)

