var date=new Date();
year = date.getFullYear();
document.write(year);