var now = new Date;
var theYear=now.getYear();
if (theYear < 1900) {
	theYear+=+1900;
}
document.write(theYear);
