title: JQuery Datepicker calender control popup not opening second time only in Firefox
body: <p>This issue is replicated only in Firefox (IE and Chrome are working a expected). Initially when page loads, if we click on the datepicker textbox, calendar control opens. Now if user tries to click outside of calendar control, calendar control pop-up closes. Now try to click on datepicker textbox again. Calendar pop-up does not show up. Calendar control (ui-datepicker-div) "display" attribute is getting set to none only in Firefox. </p>
  
  <p><a href="http://jsfiddle.net/03saafry/" rel="nofollow">Fiddler Sample Url</a></p>
  
  <p>Can anyone please help me to solve this issue?</p>
  
  <p><strong>HTML:</strong></p>
  
  <pre><code>&lt;input type="text" id="maturitydatepicker"/&gt;
  </code></pre>
  
  <p><strong>JS:</strong></p>
  
  <pre><code>$(document).ready(function () {
      $("#maturitydatepicker").datepicker({
          showOn: 'both',
          dateFormat: 'dd-MM-yy',       
          buttonImageOnly: true,
          showButtonPanel: true,
          changeMonth: true,
          changeYear: true,
          closeText: 'clear',
          buttonText: 'Select Date',
          onClose: function (dateText, inst) {
  
              if ($(window.event.srcElement).hasClass('ui-datepicker-close')) {              
                  document.getElementById(this.id).value = '';
              }
          },
          onChangeMonthYear: function (y, m, i) {
              var d = i.selectedDay;
              $(this).datepicker('setDate', new Date(y, m - 1, OnMonthYearChangeDateCheck(d, m - 1, y)));           
          }       
      });
  });
  </code></pre>