
var currentyear = new Date(); 

document.write(currentyear.getFullYear());