title: Limit the calendar in jQuery by passing a Php variable
body: <p>I want to limit my calendar to fix dates,  want to set a min value (which is store in a php variable) before that the date can't be selected and also want to set the  max  values as today so that a person can't able to select date after today. </p>
  
  <pre><code>              &lt;tr&gt;
                  &lt;td class="label"&gt;&lt;label for="sales_report_from"&gt;From &lt;span class="required"&gt;*&lt;/span&gt;&lt;/label&gt;&lt;/td&gt;
                  &lt;td class="value"&gt;&lt;input type="text" style="width:110px !important;" class=" required-entry input-text" title="From" value="&lt;?php echo $from; ?&gt;" id="sales_report_from" name="from" /&gt;
                    &lt;img style="" title="Select Date" id="sales_report_from_trig" class="v-middle" alt="" src="&lt;?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);?&gt;skin/adminhtml/default/default/images/grid-cal.gif"&gt; 
                   &lt;script type="text/javascript"&gt;
          //&lt;![CDATA[
              Calendar.setup({
                  inputField: "sales_report_from",
                  minDate:"&lt;?php echo $start_date; ?&gt;",
                   maxDate: 'today',
                  ifFormat: "%m/%e/%y",
                  showsTime: false,
                  button: "sales_report_from_trig",
                  align: "Bl",
                  singleClick : true
              });
          //]]&gt;
  
       &lt;/script&gt;&lt;/td&gt;
                &lt;/tr&gt;
                &lt;tr&gt;
                  &lt;td class="label"&gt;&lt;label for="sales_report_to"&gt;To &lt;span class="required"&gt;*&lt;/span&gt;&lt;/label&gt;&lt;/td&gt;
                  &lt;td class="value"&gt;&lt;input type="text" style="width:110px !important;" class=" required-entry input-text" title="To" value="&lt;?php echo $to; ?&gt;" id="sales_report_to" name="to" /&gt;
                    &lt;img style="" title="Select Date" id="sales_report_to_trig" class="v-middle" alt="" src="&lt;?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);?&gt;skin/adminhtml/default/default/images/grid-cal.gif"&gt; 
                    &lt;script type="text/javascript"&gt;
                      //&lt;![CDATA[
                          Calendar.setup({
                              inputField: "sales_report_to",
                              minDate: '&lt;?php echo $start_date; ?&gt;',
                              maxDate: 'today',
                              ifFormat: "%m/%e/%y",
                              showsTime: false,
                              button: "sales_report_to_trig",
                              align: "Bl",
                              singleClick : true
                          });
                      //]]&gt;
                  &lt;/script&gt;&lt;/td&gt;
                &lt;/tr&gt;
  </code></pre>