var xmlHttp;
function showModel(str){
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null) { alert ("Browser does not support HTTP Request"); 
	return; 
	}
	var url="fetch_programs_pub.php";
	url=url+"?q="+str;
	xmlHttp.onreadystatechange=stateChanged1;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	}
	function stateChanged1() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("programs").innerHTML=xmlHttp.responseText;
}
}
function showproductType(str){
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null) { alert ("Browser does not support HTTP Request"); 
	return; 
	}
	var url="program_tog_or_fly.php";
	url=url+"?s="+str;
	xmlHttp.onreadystatechange=stateChanged2;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	}
	function stateChanged2() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("type").innerHTML=xmlHttp.responseText;
}
}
	
function getAdultNumber(str){
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null) { alert ("Browser does not support HTTP Request"); 
	return; 
	}
	var url="adult_number.php";
	url=url+"?a="+str;
	xmlHttp.onreadystatechange=stateChanged3;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	}
	function stateChanged3() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("adult_number_data").innerHTML=xmlHttp.responseText;
}
}

function getkids2_11_Number(str){
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null) { alert ("Browser does not support HTTP Request"); 
	return; 
	}
	var url="getkids2_11_Number.php";
	url=url+"?k="+str;
	xmlHttp.onreadystatechange=stateChanged4;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	}
	function stateChanged4() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("child_2_11_data").innerHTML=xmlHttp.responseText;
}
}
function getkids_under_2_Number(str){
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null) { alert ("Browser does not support HTTP Request"); 
	return; 
	}
	var url="getkids_under_2_Number.php";
	url=url+"?u="+str;
	xmlHttp.onreadystatechange=stateChanged5;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	}
	function stateChanged5() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("child_under_2").innerHTML=xmlHttp.responseText;
}
}	

		//////////////////////////////////////////////////////////////////////////////////////////////////
		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;
		}