var year = new Date();
var year2 = year.getFullYear();
document.write(year2);