var xmlHttpmodelnamexmlHttp;
var xmlHttpmfcts;
var contractReq;
function ShowContractLength(ContractLength1,giftType,giftType1,giftType2)
{ 
	
	xmlHttpmodelnamexmlHttp0=GetXmlHttpObject()
	if (xmlHttpmodelnamexmlHttp0==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	var url="showComboGift.asp";
	url=url + "?cmd=ContractLength&giftType=" + giftType+"&giftType1=" + giftType1+"&giftType2=" + giftType2 +"&ContractLength=" + ContractLength1;		
	xmlHttpmodelnamexmlHttp0.onreadystatechange=stateContractLength 
	xmlHttpmodelnamexmlHttp0.open("GET",url,true)	
	xmlHttpmodelnamexmlHttp0.send(null)
}

function stateContractLength() 
{ 
	if (xmlHttpmodelnamexmlHttp0.readyState==4 || xmlHttpmodelnamexmlHttp0.readyState=="complete")
	{ 
		document.getElementById("tdContractLength").innerHTML=xmlHttpmodelnamexmlHttp0.responseText 			
		
	} 
}
function ShowNetwork(Network,giftType,giftType1,giftType2)
{ 
	xmlHttpmodelnamexmlHttp1=GetXmlHttpObject()
	if (xmlHttpmodelnamexmlHttp1==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	var url="showComboGift.asp";
	url=url + "?cmd=Network&giftType=" + giftType+"&giftType1=" + giftType1+"&giftType2=" + giftType2+"&Network=" + Network;		
	xmlHttpmodelnamexmlHttp1.onreadystatechange=stateNetwork
	xmlHttpmodelnamexmlHttp1.open("GET",url,true)
	xmlHttpmodelnamexmlHttp1.send(null)
}

function stateNetwork() 
{ 
	if (xmlHttpmodelnamexmlHttp1.readyState==4 || xmlHttpmodelnamexmlHttp1.readyState=="complete")
	{ 
		document.getElementById("tdNetwork").innerHTML=xmlHttpmodelnamexmlHttp1.responseText 			
		
	} 
}

function ShowGiftPhone(Advertisor,giftType,giftType1,giftType2)
{ 
	
	xmlHttpmodelnamexmlHttp2=GetXmlHttpObject()
	if (xmlHttpmodelnamexmlHttp2==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	
	var url="showComboGift.asp";	
	url=url + "?cmd=Phone&giftType=" + giftType+"&giftType1=" + giftType1+"&giftType2=" + giftType2+"&phone=" + Advertisor;		
	xmlHttpmodelnamexmlHttp2.onreadystatechange=stateGiftPhone
	xmlHttpmodelnamexmlHttp2.open("GET",url,true)
	xmlHttpmodelnamexmlHttp2.send(null)
}

function stateGiftPhone() 
{ 
	if (xmlHttpmodelnamexmlHttp2.readyState==4 || xmlHttpmodelnamexmlHttp2.readyState=="complete")
	{ 
		document.getElementById("tdGiftPhone").innerHTML=xmlHttpmodelnamexmlHttp2.responseText 			
		
	} 
}
function ShowGiftModel(Model,phone,giftType,giftType1,giftType2)
{ 
	
	xmlHttpmodelnamexmlHttp3=GetXmlHttpObject()
	if (xmlHttpmodelnamexmlHttp3==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	
	var url="showComboGift.asp";	
	url=url + "?cmd=Model&phone=" + phone+"&giftType=" + giftType+"&giftType1=" + giftType1+"&giftType2=" + giftType2+"&Model=" + Model;
	
	xmlHttpmodelnamexmlHttp3.onreadystatechange=stateGiftModel
	xmlHttpmodelnamexmlHttp3.open("GET",url,true)
	xmlHttpmodelnamexmlHttp3.send(null)
}

function stateGiftModel() 
{ 
	if (xmlHttpmodelnamexmlHttp3.readyState==4 || xmlHttpmodelnamexmlHttp3.readyState=="complete")
	{ 
		document.getElementById("tdGiftModel").innerHTML=xmlHttpmodelnamexmlHttp3.responseText 			
		
	} 
}
function ShowSortMinutes(sortMinutes,giftType,giftType1,giftType2)
{ 
	
	xmlHttpmodelnamexmlHttp4=GetXmlHttpObject()
	if (xmlHttpmodelnamexmlHttp4==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	
	var url="showComboGift.asp";	
	url=url + "?cmd=Minutes&giftType=" + giftType+"&giftType1=" + giftType1+"&giftType2=" + giftType2+"&Minutes=" + sortMinutes;		
	xmlHttpmodelnamexmlHttp4.onreadystatechange=stateSortMinutes
	xmlHttpmodelnamexmlHttp4.open("GET",url,true)
	xmlHttpmodelnamexmlHttp4.send(null)
}

function stateSortMinutes() 
{ 
	if (xmlHttpmodelnamexmlHttp4.readyState==4 || xmlHttpmodelnamexmlHttp4.readyState=="complete")
	{ 
		document.getElementById("tdSortMinutes").innerHTML=xmlHttpmodelnamexmlHttp4.responseText 			
		
	} 
}
function ShowSortTexts(sortTexts,giftType,giftType1,giftType2)
{ 
	
	xmlHttpmodelnamexmlHttp5=GetXmlHttpObject()
	if (xmlHttpmodelnamexmlHttp5==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	
	var url="showComboGift.asp";	
	url=url + "?cmd=Texts&giftType=" + giftType+"&giftType1=" + giftType1+"&giftType2=" + giftType2+"&Texts=" + sortTexts;		
	xmlHttpmodelnamexmlHttp5.onreadystatechange=stateSortTexts
	xmlHttpmodelnamexmlHttp5.open("GET",url,true)
	xmlHttpmodelnamexmlHttp5.send(null)
}

function stateSortTexts() 
{ 
	if (xmlHttpmodelnamexmlHttp5.readyState==4 || xmlHttpmodelnamexmlHttp5.readyState=="complete")
	{ 
		document.getElementById("tdsortTexts").innerHTML=xmlHttpmodelnamexmlHttp5.responseText 			
		
	} 
}

function ShowfreeGifts()
{ 
	
	xmlHttpmodelnamexmlHttp6=GetXmlHttpObject()
	if (xmlHttpmodelnamexmlHttp6==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	
	var url="showComboGift.asp";	
	url=url + "?cmd=GiftList";		
	xmlHttpmodelnamexmlHttp6.onreadystatechange=statefreeGifts
	xmlHttpmodelnamexmlHttp6.open("GET",url,true)
	xmlHttpmodelnamexmlHttp6.send(null)
}

function statefreeGifts() 
{ 
	if (xmlHttpmodelnamexmlHttp6.readyState==4 || xmlHttpmodelnamexmlHttp6.readyState=="complete")
	{ 
		document.getElementById("tdGiftList").innerHTML=xmlHttpmodelnamexmlHttp6.responseText 			
		
	} 
}





