I am working on a calendar that I need to populate two text boxes. The function only populates one text box and not the second box, below is the function and the two text fields. The code was copied from gnu site.
HTML Code:
<script type="text/javascript">
	window.onload = function(){
		new JsDatePick({
			useMode:2,
			target:"inputField",
			dateFormat:"%d-%M-%Y"
			/*selectedDate:{				This is an example of what the full configuration offers.
				day:5,						For full documentation about these settings please see the full version of the code.
				month:9,
				year:2006
			},
			yearsRange:[1978,2020],
			limitToToday:false,
			cellColorScheme:"beige",
			dateFormat:"%m-%d-%Y",
			imgPath:"img/",
			weekStartDay:1*/
		});
	};
</script>

HTML Code:
<input name="txtArrival" type="text" size="12" id="inputField" /></label>
       *  *  *  * 
     <label> Departure Date
   <input name="txtDeparture" type="text" size="12" id="inputField" /><a href="" onclick="displayCalander()">Select date</a></label>