Can any one tell what's wrong with the following script in disabling the list of dates
<p>I used <a href="http://keith-wood.name/datepick.html" rel="nofollow">Keith-Wood</a> calendar for that i added some script as follows</p>

<pre><code>    &lt;script type="text/javascript"&gt;
$function(){
var holidays = ['12-2-2010', '12-7-2010', '12-10-2010', '12-18-2010'];

$('#txtDateofBirth').datepick({onDate: function(date) {
   for (var i = 0; i &lt; holidays.length; i++) {
       if (date.toString('MM-dd-yyyy')==holidays[i]) {
           return {selectable: false, dateClass: 'holiday'};
       }
   }
   return $.datepick.noWeekends(date);
}});
    &lt;/script&gt;
</code></pre>

<p>I am also having this too to disable <code>weekends</code></p>

<pre><code>&lt;script type="text/javascript"&gt;

$(function () {
$('#txtDateofBirth').datepick({
onDate: $.datepick.noWeekends, showTrigger: '#Img1'
});
});

    &lt;/script&gt;
</code></pre>

<p>But i am unable to disable the dates as per in the list can any one tell what's wrong i am doing</p>

<p>My design is as follows</p>

<pre><code>&lt;asp:TextBox ID="txtDateofBirth" runat="server" Style="left: 398px; position: absolute;
top: 131px" /&gt;
 &lt;div style="display: none;"&gt;
 &lt;img id="Img1" src="images/calendar.gif" alt="Popup" class="trigger" style="left: 568px;
 position: absolute; top: 136px" /&gt;
  &amp;nbsp;
 &lt;/div&gt;
</code></pre>
