var xmlHttp
function GetXmlHttpObject()
{ 
	var objXMLHttp=null
	if (window.XMLHttpRequest)
	{
		objXMLHttp=new XMLHttpRequest()
	}
	else if (window.ActiveXObject)
	{
		objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
	}
	return objXMLHttp
}
//==================================another function==========================
function display_accdetails(statusid)
{ 
//alert(statusid);
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
var url="display_accdetails.php"
	url=url+"?statusid="+statusid
	
	url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged6top1212 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function stateChanged6top1212() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("show_acdetails_1212").innerHTML=xmlHttp.responseText 
	} 
}

function display_actype(type)
{ 
//alert(type);
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
var url="display_type.php"
	url=url+"?type="+type
	
	url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged6top1212_type 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function stateChanged6top1212_type() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("show_acdetails_type").innerHTML=xmlHttp.responseText 
	} 
}


function display_valueresult(coupid)
{ 
//alert(coupid);
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
var url="display_valueresult.php"
	url=url+"?coupid="+coupid
	
	url=url+"&sid="+Math.random()
	//alert(url);
	xmlHttp.onreadystatechange=stateChanged_displayvalue
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function stateChanged_displayvalue() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("show_value_1212").innerHTML=xmlHttp.responseText
	} 
}
//=========================================================================================
function display_packageresult(coupid)
{ 
//alert(coupid);
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
var url="display_packageresult.php"
	url=url+"?coupid="+coupid
	
	url=url+"&sid="+Math.random()
	//alert(url);
	xmlHttp.onreadystatechange=stateChanged_packagevalue
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function stateChanged_packagevalue() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("show_package").innerHTML=xmlHttp.responseText 
	} 
}
//====================================================================================
function display_addresult(coupid)
{ 
//alert(coupid);
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
var url="display_addresult.php"
	url=url+"?coupid="+coupid
	
	url=url+"&sid="+Math.random()
	//alert(url);
	xmlHttp.onreadystatechange=stateChanged_addvalue
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function stateChanged_addvalue() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("show_add").innerHTML=xmlHttp.responseText
	} 
}

//=========================================================================================
function updatedeliveredstatus(showmystatus)
{ 
alert(showmystatus);
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
var url="updatedeliveredstatus.php"
	url=url+"?showmystatus="+showmystatus
	
	url=url+"&sid="+Math.random()
	//alert(url);
	xmlHttp.onreadystatechange=stateChanged_updatedeliveredstatus
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function stateChanged_updatedeliveredstatus() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("show_deliveredstatus").innerHTML=xmlHttp.responseText 
	} 
}
//====================================================================================
