Javascript document load bug
<p>I have the code below in which I've added 1 alert at the start and one at the end.</p>

<p>I get the first alert but the last alert never pops up.</p>

<p>Can anyone see why ?</p>

<p>Here is the code:</p>

<pre><code>&lt;script language="javascript"&gt;
    $(document).ready(function() {
      alert('start');  
        var month = getURLParameter('month') - 1; //-1 cause javascript months start in 0
   var currentYear = getURLParameter('year');
   var defaultDate = new Date(currentYear, month, 1); //Set to first day of the month
   $("#date").datepicker({ defaultDate: defaultDate });
  alert('end');

    });

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

<p>Thanks</p>
