title: Why disabling dates in IE8 not working properly with Jquery date picker
body: <p>I currently have a datepicker from jquery where i am disabling  national holidays. It works fine in FF not not in IE 8. In IE i get  the following error message:</p>
  
  <p>SCRIPT5007: Unable to get property 'call' of undefined or null reference 
  mainsearch_functions.js, line 230 character 7.</p>
  
  <p>the code i am using to block  the holidays is below. Can someone tell me why this does not work on IE 8</p>
  
  <pre><code>function nationalDays(date) {
  
  // federal holidays
  natDays = [
             [1, 1, 'new years'], 
             [1, 21, 'Birthday of Martin Luther King, Jr.'], 
             [2, 18, 'Washington\'s Birthday'],
             [4, 27, 'Memorial Day'], 
             [7, 4, 'Independence Day'], 
             [9, 2, 'Labor Day'],
             [10, 14, 'Columbus Day'], 
             [11, 11, 'Veterans Day'], 
             [11, 28, 'Thanksgiving Day'],
             [12, 25, 'Christmas Day'], 
  
           ];
  for (var i = 0; i &lt; natDays.length; i++) {
    if (date.getMonth() == natDays[i][0] - 1 // ERROR HAPPENS HERE
        &amp;&amp; date.getDate() == natDays[i][1]) {
  
      return [false, natDays[i][2],natDays[i][2]];
    }
  
  }
  return [true, '','Must be 5 business days out.'];
  }
  </code></pre>
  
  <p>thank you in advance.</p>