var xmlHttp

function dispe()
{
	var date1=document.getElementById("date1").value;
	
	if(date1)
	{
	//alert("hello");
	var no=document.getElementById("no").value;
	//alert(no);
	//document.loginform11.night.value=no;
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="calender/noofnights.php";
url=url+"?q="+no;
url=url+"&date1="+date1;
xmlHttp.onreadystatechange=stateChanged1;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
	}
	else
	{
		alert("Please Select A check in Date");
	}
} 

function stateChanged1() 
{ 
if (xmlHttp.readyState==4)
{
//alert(xmlHttp.responseText);
document.getElementById("date2").value=xmlHttp.responseText;
}
}


