<script type="text/javascript">
	// Required two fields with id's of:
	// from and until
    $(function() {
 
        var dates = $('#from, #until').datepicker({
 
             defaultDate: "+1d",
            dateFormat: "DD, d MM, yy",
                        minDate: "+1d",
                        changeMonth: false,
            numberOfMonths: 3,
            onSelect: function(selectedDate) {
                var option = this.id == "from" ? "minDate" : "maxDate";
                var instance = $(this).data("datepicker");
                var date = $.datepicker.parseDate(instance.settings.dateFormat || $.datepicker._defaults.dateFormat, selectedDate, instance.settings);
                dates.not(this).datepicker("option", option, date);
                                
            },
 			// must validate field
			onClose: function() {
                validators[this.id].check();
      		}
 
        });
    });
</script>