<?php function drawDateTimePicker() { ?>
	<select name="month">
		<?php for($x=1;$x<=12;$x++) { ?>
			<option value="<?= $x ?>"<?= (date("n") == $x ? ' selected="selected"' : '') ?>><?= date('F', mktime(0,0,0,$x)) ?></option>	
		<?php } ?>
	</select>
	<select name="day">
		<?php for($x=1;$x<=31;$x++) { ?>
			<option value="<?= $x ?>"<?= (date("j") == $x ? ' selected="selected"' : '') ?>><?= $x ?></option>	
		<?php } ?>
	</select>
	<select name="year">
		<?php for($x=2009;$x<=2015;$x++) { ?>
			<option value="<?= $x ?>"<?= (date("Y") == $x ? ' selected="selected"' : '') ?>><?= $x ?></option>	
		<?php } ?>		
	</select> / 
	<select name="hour">
		<?php for($x=1;$x<=12;$x++) { ?>
			<option value="<?= $x ?>"<?= (date("H") == $x ? ' selected="selected"' : '') ?>><?= $x ?></option>	
		<?php } ?>
	</select>	
	<select name="minute">
		<option value="00">00</option>
		<option value="15">15</option>
		<option value="30">30</option>
		<option value="45">45</option>
	</select>
	<select name="period">
		<option value="pm">pm</option>
		<option value="am">am</option>
	</select>
<?php } ?>