var theDate=new Date();
document.getElementById("year").innerHTML=theDate.getFullYear();
