// Get year
var curr_year = d.getFullYear();
document.write(curr_year);
