// JavaScript Document
var myObj;
			if (window.XMLHttpRequest)
			  {
			  // code for IE7+, Firefox, Chrome, Opera, Safari
			  myObj = new XMLHttpRequest();
			  }
			else if (window.ActiveXObject)
			  {
			  // code for IE6, IE5
			  myObj = new ActiveXObject("Microsoft.XMLHTTP");
			  }
			  
		function loadCities(county)
		{
			url="index.php?option=com_lawyerdetail&task=loadCities&format=raw&county="+county;
			//alert(url);
			myObj.open("GET", url , true);
			myObj.onreadystatechange = function()
			{
			if(myObj.readyState == 4 && myObj.status == 200)
				{
				//alert(myObj.responseText);
				document.getElementById("city_name").innerHTML = myObj.responseText;
				}
		}
		myObj.send(null);
		}
		
		function loadCounty(city)
		{
			url="index.php?option=com_lawyerdetail&task=loadCounty&format=raw&city="+city;
			//alert(url);
			myObj.open("GET", url , true);
			myObj.onreadystatechange = function()
			{
			if(myObj.readyState == 4 && myObj.status == 200)
				{
				//alert(myObj.responseText);
				document.getElementById("county_name").innerHTML = myObj.responseText;
				}
			}
	myObj.send(null);
	}



