var time = new Date();
var year = time.getYear();
if (year < 1900) {
year = year + 1900;
}
var date = year - 1; /*change the '101' to the number of years in the past you want to show */
var future = year + 3; /*change the '100' to the number of years in the future you want to show */ 
document.writeln ("<select name=\"endYear\" onChange=\"compileDates()\">");
do {
date++;
document.write ("<option value=\"" +date+"\">" +date+ "");
}
while (date < future)
document.write ("</select>");

