c = new Date()
year = c.getYear()
if (year < 1000)
cyear = "-" + " " + (1900+year);
else
cyear = "-" + " " + (year);
document.write(cyear)

