//This code is optimized by the w3compiler from Port80 Software:  BUY w3compiler to remove this comment from your optimized files at www.w3compiler.com!
function changeCoutDate(){try{if(checkHotelDate()){var newDate;var day=document.getElementById('checkInDate').value.substring(0,2);var month=document.getElementById('checkInDate').value.substring(3,5);var year=parseInt(document.getElementById('checkInDate').value.substring(6,document.getElementById('checkInDate').value.length));if(day=="08")day="8";else if(day=="09")day="9";if(month=="08")month="8";else if(month=="09")month="9";month=parseInt(month)-1;var today=new Date(year,month,day);var one_day=1000*60*60*24*3;var tmp=Math.ceil((today.getTime())+(one_day));var date=new Date(tmp);var d=date.getDate();d=parseInt(d);if(d<10){d="0"+d;}var m=date.getMonth();m=m+1;if(m<10){m="0"+m;}var y=date.getFullYear();document.getElementById("checkOutDate").value=d+"/"+m+"/"+y;cal4.select(m+"/"+d+"/"+y);cal4.setMonth(m-1);cal4.setYear(y);cal4.render();}}catch(e){}}function checkHotelDate(){var dd=document.getElementById('checkInDate').value.split('/')[0];var mm=document.getElementById('checkInDate').value.split('/')[1];mm=parseInt(mm)-1;var yy=document.getElementById('checkInDate').value.split('/')[2];var millennium=new Date(yy,mm,dd);var today=new Date();var one_day=1000*60*60*24;if(Math.ceil((millennium.getTime()-today.getTime())/(one_day))>362){alert("Check in date should be less than 362 days from current date");document.getElementById('checkInDate').select();document.getElementById('checkInDate').focus();return false;}else{return true}}function HideHotelObjects(){return;}