/*==============================================================================

Routine to get the current year and use it as the basis for the calculations
here.  What is returned is the elapsed time since a given year in baseYear.

andy J.S. Decepida

*/

function numYears(baseYear) {

  var today = new Date();
  yr = today.getYear(); // Get the year
  if (yr < 2000) yr = yr + 1900;
  var elapsed = yr - (+baseYear);
  document.write(elapsed); 
}