Right click this window and select "view source" in order to copy the source for this script.
100 Year Auto Drop Down Field Selector
This is a JavaScript example of how to display the current year and 100 years before, or whatever limits you set in the script, in a selection box, with the current year listed last. View the source.