today=new Date(); // Initialize Date in raw form
year=today.getYear(); // Get the year
document.write (year);