var xmlHttp2

function showBrokerage(ID)
{
//alert(ID);
xmlHttp2=GetXmlHttpObject2()
if (xmlHttp2==null)
  {
  alert ("Browser does not support HTTP Request")
  return false;
  }
//var cc = document.frm.country_id.value;
var url2 = "javascripts/ajax_brokerage.php"

url2 = url2+"?city="+ID
url2 = url2+"&sid="+Math.random()
xmlHttp2.onreadystatechange=stateChanged2
xmlHttp2.open("GET",url2,true)
xmlHttp2.send(null)
return false;
} 

function stateChanged2() 
{ 
	if (xmlHttp2.readyState==4 || xmlHttp2.readyState=="complete")
	 { 
	  //alert("TxtState");
	 document.getElementById("TxtBrokerage").innerHTML=xmlHttp2.responseText
	  document.getElementById("TxtBrokerage1").innerHTML=xmlHttp2.responseText
	// window.location.href("home.html")
	 } 
}

function GetXmlHttpObject2()
{
	var xmlHttp2=null;
	try
	 {
		 // Firefox, Opera 8.0+, Safari
		xmlHttp2=new XMLHttpRequest();
	 }
	catch (e)
	 {
		 // Internet Explorer
	 try
	  {
		xmlHttp2=new ActiveXObject("Msxml2.XMLHTTP");
	  }
	 catch (e)
	  {
	  	xmlHttp2=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	 }
	return xmlHttp2;
}