function currentYear() {
   d = new Date()
   dateText = ""
   // Get the current year; if it's before 2000, add 1900
   if (d.getYear() < 2000) 
      dateText = (1900 + d.getYear())
   else 
      dateText = (d.getYear())
   // Write the greeting, the date, and the time to the page
   document.write(dateText)
}
currentYear()

