var xmlHttp

//show_amountdetail
function show_amountdetail(str,icid,srch,ctgry,brnd,usr)
{ //alert(usr);
	var url="getpage.php?sid=" + Math.random() + "&q=" + str + "&iCID=" + icid + "&srch=" + srch + "&ctgry=" + ctgry + "&brnd=" + brnd + "&usr=" + usr	
	xmlHttp=GetXmlHttpObject(stateChangedshow_amountdetail)
	xmlHttp.open("GET", url , true)
	xmlHttp.send(null)
	
} 

function stateChangedshow_amountdetail() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("txt_paymentsumery").innerHTML=xmlHttp.responseText 
	} 
}


//show_sessionf
function show_sessionf(str,icid,srch)
{ 
	var url="getpage.php?sid=" + Math.random() + "&q=" + str + "&iCID=" + icid + "&srch=" + srch	
	xmlHttp=GetXmlHttpObject(stateshow_sessionf)
	xmlHttp.open("GET", url , true)
	xmlHttp.send(null)
	
} 

function stateshow_sessionf() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("txtroomid").innerHTML=xmlHttp.responseText 
	} 
} 
//--------------------------------------------------------



//chk_ref
function chk_ref(str,icid,srch)
{ 
	var url="getpage.php?sid=" + Math.random() + "&q=" + str + "&iCID=" + icid + "&srch=" + srch	
	xmlHttp=GetXmlHttpObject(stateChangedchk_ref)
	xmlHttp.open("GET", url , true)
	xmlHttp.send(null)
	
} 

function stateChangedchk_ref() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("txtbankRef").innerHTML=xmlHttp.responseText 
	} 
} 
//--------------------------------------------------------
//chk_emp_name
function chk_emp_name(str,icid,srch)
{ 
	var url="getpage.php?sid=" + Math.random() + "&q=" + str + "&iCID=" + icid + "&srch=" + srch	
	xmlHttp=GetXmlHttpObject(stateChangedchk_emp_name)
	xmlHttp.open("GET", url , true)
	xmlHttp.send(null)
	
} 

function stateChangedchk_emp_name() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("txtemp_name").innerHTML=xmlHttp.responseText 
	} 
} 
//--------------------------------------------------------
//show customers
function show_model(str,icid,srch)
{ 
	var url="getpage.php?sid=" + Math.random() + "&q=" + str + "&iCID=" + icid + "&srch=" + srch	
	xmlHttp=GetXmlHttpObject(stateChangedshow_room)
	xmlHttp.open("GET", url , true)
	xmlHttp.send(null)
	
} 

function stateChangedshow_room() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("roomtxt").innerHTML=xmlHttp.responseText 
	} 
} 
//--------------------------------------------------------
//end
function show_time(str,icid,srch)
{ 
	var url="getpage.php?sid=" + Math.random() + "&q=" + str + "&iCID=" + icid + "&srch=" + srch	
	xmlHttp=GetXmlHttpObject(stateChangedshow_time)
	xmlHttp.open("GET", url , true)
	xmlHttp.send(null)
	
} 

function stateChangedshow_time() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("timetxt").innerHTML=xmlHttp.responseText 
	} 
} 

//show customers
function show_user(str,icid,srch)
{ 
	var url="getpage.php?sid=" + Math.random() + "&q=" + str + "&iCID=" + icid + "&srch=" + srch	
	xmlHttp=GetXmlHttpObject(stateChangedshow_user)
	xmlHttp.open("GET", url , true)
	xmlHttp.send(null)
	
} 

function stateChangedshow_user() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("txtuser").innerHTML=xmlHttp.responseText 
	} 
} 
//--------------------------------------------------------
//end
//--------------------------------------------------------
//show towns
function show_email(str,icid,srch)
{ 
	var url="getpage.php?sid=" + Math.random() + "&q=" + str + "&iCID=" + icid + "&srch=" + srch	
	xmlHttp=GetXmlHttpObject(stateChangedshow_email)
	xmlHttp.open("GET", url , true)
	xmlHttp.send(null)
	
} 

function stateChangedshow_email() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("txtemail").innerHTML=xmlHttp.responseText 
	} 
} 
//--------------------------------------------------------
//end

//show model
function show_brand(str,icid,srch)
{ 
	var url="getpage.php?sid=" + Math.random() + "&q=" + str + "&iCID=" + icid + "&srch=" + srch	
	xmlHttp=GetXmlHttpObject(stateChangedshow_brand)
	xmlHttp.open("GET", url , true)
	xmlHttp.send(null)
	
} 

function stateChangedshow_brand() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("txtbrand").innerHTML=xmlHttp.responseText 
	} 
} 
//--------------------------------------------------------
//end

function GetXmlHttpObject(handler)
{ 
var objXmlHttp=null

if (navigator.userAgent.indexOf("Opera")>=0)
{
alert("This example doesn't work in Opera") 
return 
}
if (navigator.userAgent.indexOf("MSIE")>=0)
{ 
var strName="Msxml2.XMLHTTP"
if (navigator.appVersion.indexOf("MSIE 5.5")>=0)
{
strName="Microsoft.XMLHTTP"
} 
try
{ 
objXmlHttp=new ActiveXObject(strName)
objXmlHttp.onreadystatechange=handler 
return objXmlHttp
} 
catch(e)
{ 
alert("Error. Scripting for ActiveX might be disabled") 
return 
} 
} 
if (navigator.userAgent.indexOf("Mozilla")>=0)
{
objXmlHttp=new XMLHttpRequest()
objXmlHttp.onload=handler
objXmlHttp.onerror=handler 
return objXmlHttp
}
}


