function init_form() {
    // set the focus
//	$('#housenum').focus(function(){
//		var that = this;
//		window.setTimeout(function() { that.selectionStart = that.selectionEnd = 10000; }, 0);
//	});
    $('#housenum').focus();

	// handle input field input
    $('#housenum').on('change keypress keyup keydown paste input', function() {
    	if (/^[\d]{2,5}$/.test(this.value)) { // 1-5 numbers regex
			$('#submitBtn').prop('disabled', false);
			$('#formHELP').hide();
		}
		else {
			$('#submitBtn').prop('disabled', true); // doesn't match the regex, submit button disabled
			$('#formHELP').show();
		}
	});
    $('#housenum').trigger('input');
}
