<style type="text/css">@import url(calendar-win2k-1.css);</style>
<script type="text/javascript" src="calendar.js"></script>
<script type="text/javascript" src="calendar-en.js"></script>
<script type="text/javascript" src="calendar-setup.js"></script>

<table width="100%">
<form action="main.php" method="get">
<input type="hidden" name="pg" value="<?= $_GET["pg"] ?>" />
<input type="hidden" name="ac" value="<?= $_GET["ac"] ?>" />
<input type="hidden" name="op" value="<?= $op ?>" />
<tr style="background-color:#999999">
  <th>DATE</th>
  <td bgcolor="#CCCCCC">
  <input type="text" name="pdte" id="pdte" value="<?= $pdate ?>" onchange="this.form.submit()" />
  <button id="btnPdate" >...</button>
  <script type='text/javascript'>
	Calendar.setup({
	inputField : "pdte",  //ID of the input field
	ifFormat   : "%Y-%m-%d",   //the date format
	button     : "btnPdate"   //ID of the button
	});
  </script>
  </td>
</tr>
</form>
</table>
