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