var time=new Date();
var year=time.getYear();
if (year<1900) year=(year+1900);