var xmlHttp;
function showContinents(str) { 
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request");
		return;
	}
	var url="ajax_calls/global_partners_call_1.php";
	url=url+"?continent_id="+str;
	xmlHttp.onreadystatechange=stateChanged;
	xmlHttp.open("GET",url,true); // 4-22-09 This was "GET"
	xmlHttp.send(null);
}

function showCountries(str, update2) { 
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request");
		return;
	}
	var url="ajax_calls/global_partners_call_2.php";
	url=url+"?country="+str+"&update="+update2;
	xmlHttp.onreadystatechange=stateChanged2;
	xmlHttp.open("GET",url,true);// 4-22-09 This was "GET"
	xmlHttp.send(null);
}

function stateChanged() { 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
		document.getElementById("country_dropdown").innerHTML=xmlHttp.responseText;
	} 
}

function stateChanged2() { 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
		document.getElementById("partner_info").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;
}