<!--<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
-->
<script type="text/javascript" src="ui/js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="ui/js/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript" src="include/hotkeys/jquery.hotkeys.js"></script>


<script type="text/javascript" src="js/jquery.imask.js"></script>

<script type="text/javascript">
	$(function(){
	$('#inp1').iMask({
		type : 'number'
		, decDigits : 2
		, decSymbol : ','
		, groupSymbol : '.'
		});

		$('#inp2').iMask({
			  type : 'fixed'
			, mask : '99/99/9999'
		});

		$('#inp3').iMask({
			       type : 'number'
			,      mask : '99/99/99'
			, decDigits : 0
			, decSymbol : ''
			,    sanity : function( val ){
				return Math.min( 1000000, Math.max(0, parseFloat( val.replace(/[^\.\d]/g, ''))));
			}
		});

		$('#inp4').iMask({type : 'fixed', mask : '(99) 9999-9999'});
	});
	</script>



<!--<script type="text/javascript" src="include/hotkeys/jquery.hotkeys-0.7.9.js"></script>
-->

	<label>Number: </label><input id="inp1">
	<br />
	<label>Date: </label><input id="inp2">
	<br />
	<label>0-1000000: </label><input id="inp3">
	<br />
	<label>[99.999.999-x]: </label><input id="inp4">