my jquery calendar pop up no longer works now that I added javascript
<p>my jquery calendar pop up no longer works now that I added javascript to add multiple pictures.  I'm new to javascript and jquery.  Any help would be appreciated.</p>

<p>I'm trying to make a webform that I can select the dates then attach multiple pictures below that.  I just had the picture link input field as a placeholder until I get a process working to take the pictures and upload them.</p>

<pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;
&lt;html&gt;
&lt;head&gt;
    &lt;title&gt;newRecord&lt;/title&gt;

    &lt;style type="text/css"&gt;
        div.ui-datepicker{
            font-size:10px;
        }
    &lt;/style&gt;

    &lt;link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" /&gt;    
    &lt;script src="http://code.jquery.com/jquery-1.8.3.js"&gt;&lt;/script&gt;    
    &lt;script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"&gt;&lt;/script&gt;    
    &lt;link rel="stylesheet" href="/resources/demos/style.css" /&gt;    
    &lt;script&gt;    $(function() {        $( "#datepicker" ).datepicker({changeMonth: true, changeYear: true}) });&lt;/script&gt;
    &lt;script&gt;    $(function() {        $( "#datepicker2" ).datepicker({changeMonth: true, changeYear: true}) });&lt;/script&gt;

    &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"&gt;&lt;/script&gt;       
    &lt;script type="text/javascript"&gt;         
        $(document).ready(function() {
            $('#btnAdd').click(function() {       
                var num     = $('.clonedInput').length;                 
                var newNum  = new Number(num + 1);              
                var newElem = $('#input' + num).clone().attr('id', 'input' + newNum);                       
                newElem.children(':first').attr('id', 'name' + newNum).attr('name', 'name' + newNum);                 
                $('#input' + num).after(newElem);                 
                $('#btnDel').attr('disabled','');                   
                if (newNum == 50)                  
                    $('#btnAdd').attr('disabled','disabled');
            });               
            $('#btnDel').click(function() {        
                var num = $('.clonedInput').length;                   
                $('#input' + num).remove();                
                $('#btnAdd').attr('disabled','');
                if (num-1 == 1)                     
                    $('#btnDel').attr('disabled','disabled');             
            });               
            $('#btnDel').attr('disabled','disabled');
        });    
    &lt;/script&gt; 
&lt;/head&gt;
&lt;body&gt;
    &lt;form action="insert.php" method="post"&gt;
        ID: &lt;input name="ID" type="text"&gt;&lt;br&gt;
        serial_number: &lt;input name="serial_number" type="text"&gt;&lt;br&gt;
        desc: &lt;input name="desc" type="text"&gt;&lt;br&gt;
        dmg: &lt;input name="dmg" type="text"&gt;&lt;br&gt;
        dmg_desc: &lt;input name="dmg_desc" type="text"&gt;&lt;br&gt;
        pic_link: &lt;input name="pic_link" type="text"&gt;&lt;br&gt;
        creation_date:&lt;input type="text" name="creation_date" id="datepicker" value="" /&gt;&lt;br&gt;
        created_by: &lt;input name="created_by" type="text"&gt;&lt;br&gt;
        last_update_date:&lt;input type="text" name="last_update_date" id="datepicker2" value="" /&gt;&lt;br&gt;
        last_update_by: &lt;input name="last_update_by" type="text"&gt;&lt;br&gt;

        &lt;div id="input1" style="margin-bottom:4px;"class="clonedInput"&gt;
            Picture Upload: &lt;input type="file" name="name1" id="name1" /&gt;     
        &lt;/div&gt;       
        &lt;div&gt;        
        &lt;input type="button" id="btnAdd" value="add another picture" /&gt;         
        &lt;input type="button" id="btnDel" value="remove picture" /&gt;     
        &lt;/div&gt; 

        &lt;input type="submit"&gt;
        &lt;br&gt;&lt;br&gt;&lt;br&gt;
        &lt;a href="http://www.sweatmansc.com/displayResults.php"&gt;Go to All results of table!&lt;/a&gt;
    &lt;/form&gt;
&lt;/body&gt;
</code></pre>

<p></p>
