Index: webform.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/webform/js/webform.js,v
retrieving revision 1.1.2.5
diff -u -r1.1.2.5 webform.js
--- webform.js	30 Aug 2010 16:58:02 -0000	1.1.2.5
+++ webform.js	20 Feb 2011 01:51:55 -0000
@@ -51,6 +51,9 @@
         month = month ? month : today.getMonth() + 1;
         day = day ? day : today.getDate();
 
+        // Make sure that the default year fits in the available options.
+        year = (year < startYear || year > endYear) ? startYear : year;
+
         // jQuery UI Datepicker will read the input field and base its date off
         // of that, even though in our case the input field is a button.
         $(input).val(year + '-' + month + '-' + day);
