var curdate = new Date();
var year = curdate.getYear();
if (year<2000) year+=1900;
document.write(year);