function chkreservation()
{
	if(document.getElementById('ddlRooms').value==0)
	{
		alert('please select Rooms')
		return false;
	}
	if(document.getElementById('ddlAdults').value==0)
	{
		alert('please select No of Adults')
		return false;
	}
	if(document.getElementById('ddlChildren').value==-1)
	{
		alert('please select No of Children')
		return false;
	}
	if(document.getElementById('txtArrivalDate').value=='Arrival')
	{
		alert('please select Arrival Date')
		return false;
	}
	if(document.getElementById('txtDepatureDate').value=='Departure')
	{
		alert('please select Departure Date')
		return false;
	}
	var inputDate = document.getElementById('txtArrivalDate').value.split('/'); 
var arrDate = new Date(inputDate[2]+'/'+inputDate[0]+'/'+inputDate[1]); 
//alert(arrDate)
var inputDate2=document.getElementById('txtDepatureDate').value.split('/'); 
var depDate = new Date(inputDate2[2]+'/'+inputDate2[0]+'/'+inputDate2[1]); 
var myDate = new Date(document.getElementById('txtArrivalDate').value); 

arrDate=formatDate(arrDate,'dd/MM/yy')

depDate=formatDate(depDate,'dd/MM/yy')
////var today = new Date(); 
if(arrDate<depDate){
////window.open('https://www.reztrip.com/RezTripWeb/defaultSearch.do?hid=20&property=12345678&checkInDate=01/21/09&checkOutDate=01/22/09&roomCount=1&roomAdult=2&roomChild=0)

window.location.href='https://www.yourreservation.net/ibe/Travtech_Link/main.html?ccpSelectHotel=ET-HETPNQSE&quick=page1'
} 
else 
{ 
alert("Arrival Date should be less than Departure Date"); 
return false; 
} 
}
