var d = new Date();
var years = d.getFullYear();
document.write(years);