var xmlHttp

function getTripDate(oid)
{ 
	xmlHttp=GetXmlHttpObject();
	if(xmlHttp!=null && oid != '' && oid != 0 && oid != '0')
	{
		var url="/Ajax/bokaresaajax.asp";
		url=url+"?oid="+oid;
		url=url+"&sid="+Math.random();
		xmlHttp.onreadystatechange=stateChanged;
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
	}
	else
	{
		document.getElementById("divDate").innerHTML='';
		document.getElementById("divDate").style.display="none";
	}
}

function stateChanged() 
{ 
	if (xmlHttp.readyState==4)
	{ 
		document.getElementById("divDate").innerHTML=xmlHttp.responseText;
		document.getElementById("divDate").style.display="block";
	}
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}











