// JavaScript Document
	function createXmlHttp()
	{
		
		var objXmlHttp = null;
		
		if(window.XMLHttpRequest)
		{
			objXmlHttp = new XMLHttpRequest();
		}
		else if(window.ActiveXObject)
		{
			objXmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		else
		{
			objXmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		}
				
		if(objXmlHttp == null)
		{
			alert("Your browser doesn't support AJAX");
			return;
		}
		
		//alert('Im OK - createXmlHttp');
		
		return objXmlHttp;
		
	}

	function getImgSuburb(Img)
	{
		//alert(Img);
		//var sState = v[v.selectedIndex].value;
		//alert(sState);
		
		oHttp = createXmlHttp();
		
		var sUrl = "getsuburbs.php";
		var dRand = Math.random();
		sUrl = sUrl + "?st=" + Img + "&r=" + dRand;
		//alert(sUrl);
		oHttp.open("GET",sUrl,true);
		oHttp.onreadystatechange = stateChanged1;
		oHttp.send(null);	//bind the request to xmlHttp
		
		//set the listening function
		
	}
	
	function stateChanged1() 
	{ 
		if (oHttp.readyState==4 || oHttp.readyState=="complete")
		{ 
			document.getElementById("suburb1").innerHTML=oHttp.responseText 
		} 
	} 