 	<script>
 		jQuery(document).ready(function(){
 			$("##issued_date").datepicker();
+			$("##exp_date").datepicker();
+			$("##renewed_date").datepicker();
+
             $("##mediaUpClickThis").click(function(){
 			    addMedia('permit_id','#permit_id#');
 			});

	<tr>
		<td width="50%"  valign="top">
			<form name="newPermit" action="Permit.cfm" method="post">
				<input type="hidden" name="Action">
				<input type="hidden" name="permit_id" value="#permit_id#">

				<label for="IssuedByAgentId">Issued By</label>
				<input type="hidden" name="IssuedByAgentId">
				<input type="hidden" name="IssuedByOldAgentId" value="#IssuedByAgentID#">

			  	<label for="issued_Date">Issued Date</label>
				<input type="datetime" id="issued_date" name="issued_date" value="#dateformat(issued_Date,"yyyy-mm-dd")#">

			  	<label for="renewed_date">Renewed Date</label>
			  	<input type="datetime" id="renewed_date" name="renewed_date" value="#dateformat(renewed_Date,"yyyy-mm-dd")#">


			  	<label for="exp_date">Expiration Date</label>
			  	<input type="datetime" id="exp_date" name="exp_date" value="#dateformat(exp_Date,"yyyy-mm-dd")#">

			  	<label for="permit_remarks">Remarks</label>
			  	<textarea name="permit_remarks" class="largetextarea">#permit_remarks#</textarea>

				<br><input type="button" value="Save changes" class="savBtn"
   						onCLick="newPermit.action.value='saveChanges';newPermit.submit();">

				<br><input type="button" value="Delete" class="delBtn"
				   onCLick="newPermit.Action.value='deletePermit';confirmDelete('newPermit');">

</form>

</td>
