title: Magento calendar: Datepicker issue to disable days before today
body: <p>I have a problem to customise the Magento calendar in frontend:
  I want to disable the days before today, that's already works, but I can't select dates in the actual month. </p>
  
  <p>But, If I click any of the date in next month and returns to the present month, then I can select the dates!!!!!!</p>
  
  <p>Here is my code:</p>
  
  <pre><code>function disabledDate(date) {
      var today = new Date();
      if(date &lt;= today){
          return true;
      } else {
          return false;
      }
  };
  Calendar.setup({
      inputField : 'date',
      ifFormat : '%e/%m/%Y',
      button : 'date_from_trig',
      align : 'Bl',
      singleClick : true,
      dateStatusFunc : disabledDate 
  }); 
  </code></pre>
  
  <p>Thanks for help.    </p>