	<div class="reportWrap">
		<form name="formaasdf2" method="post" action="print.php?a=<?=$_GET['a']?>&b=<?=$_GET['b']?>&addition=<?=$_GET['addition']?>" target="_blank" onsubmit="return checkMonth();">
		<p><span style="margin:0 20px 0 0">Od: </span><input type="text" name="keub_od" id="keub_od" value="<?=u_datum(0, 1).'-'.u_mjesec(0, 1).'-'.u_godina()
			?>" style="width:70px"><img src="<?=$g_path_sl_res
			?>js/datetimepicker_css/cal.gif" class="datetimepicker" onclick="NewCssCal('keub_od', 'ddMMyyyy', 'arrow'); return false;" style="float:none"></p>
		<p><span style="margin:0 20px 0 0">Do: </span><input type="text" name="keub_do" id="keub_do" value="<?=u_datum(0, 1).'-'.u_mjesec(0, 1).'-'.u_godina()
			?>" style="width:70px"><img src="<?=$g_path_sl_res
			?>js/datetimepicker_css/cal.gif" class="datetimepicker" onclick="NewCssCal('keub_do', 'ddMMyyyy', 'arrow'); return false;" style="float:none"></p>
		<p><input type="submit" value="Izradi izvjesce" class="sbm"></p>
		</form>
	</div>
	<script type="text/javascript">
		function checkMonth(){
			var a_keub_od = document.getElementById('keub_od').value.split('-');
			var a_keub_do = document.getElementById('keub_do').value.split('-');
			
			if(a_keub_od[1] != a_keub_do[1] || a_keub_od[2] != a_keub_do[2]){
				alert('Izvješće je moguće izraditi samo za jedan mjesec, za datume unutar istog mjeseca.');
				return false;
			}
			
			return true;
		}
	</script>