var nowTemp=new Date,now=new Date(nowTemp.getFullYear(),nowTemp.getMonth(),nowTemp.getDate(),0,0,0,0),checkin=$("#check_in").datepicker({todayHighlight:!0,beforeShowDay:function(e){return e.valueOf()>=now.valueOf()},autoclose:!0}).on("changeDate",function(e){if(e.date.valueOf()>checkout.datepicker("getDate").valueOf()||!checkout.datepicker("getDate").valueOf()){var t=new Date(e.date);t.setDate(t.getDate()+1),checkout.datepicker("update",t)}$("#check_out")[0].focus()}),checkout=$("#check_out").datepicker({beforeShowDay:function(e){return checkin.datepicker("getDate").valueOf()?e.valueOf()>checkin.datepicker("getDate").valueOf():e.valueOf()>=(new Date).valueOf()},autoclose:!0}).on("changeDate",function(e){});