var newdate=new Date()
var year=newdate.getYear()
  if (year < 1000) { year+=1900 }
