function editcategorylist(id)
{
	
 xmlHttp=GetXmlHttpObject1()
		if (xmlHttp==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		} 
		var url="ajax_category1.php"
		url=url+"?id="+id
		url=url+"&sid="+Math.random()
		xmlHttp.onreadystatechange=stateChangededit 
		xmlHttp.open("GET",url,true)
		xmlHttp.send(null)
}

function stateChangededit() 
{ 
 if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
  document.getElementById("editstatenew").innerHTML=xmlHttp.responseText 
 } 
} 

function editcitylist(id)
{
 xmlHttp=GetXmlHttpObject1()
		if (xmlHttp==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		} 
		var url="ajax_category1.php"
		url=url+"?q="+id
		url=url+"&sid="+Math.random()
		xmlHttp.onreadystatechange=stateChangededitzip 
		xmlHttp.open("GET",url,true)
		xmlHttp.send(null)
}

function stateChangededitzip() 
{ 
 if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
  document.getElementById("editcity").innerHTML=xmlHttp.responseText 
 } 
} 


function editcityzip(id)
{
 xmlHttp=GetXmlHttpObject1()
		if (xmlHttp==null)
		{
		alert ("Browser does not support HTTP Request")
		return
		} 
		var url="ajax_category1.php"
		url=url+"?zip="+id
		url=url+"&sid="+Math.random()
		xmlHttp.onreadystatechange=stateChanged4
		xmlHttp.open("GET",url,true)
		xmlHttp.send(null)
}

function stateChanged4() 
{ 
 if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
  document.getElementById("neighbour").innerHTML=xmlHttp.responseText 
 } 
}
function GetXmlHttpObject1()
{ 
 var objXMLHttp=null
 if (window.XMLHttpRequest)
 {
 objXMLHttp=new XMLHttpRequest()
 }
 else if (window.ActiveXObject)
 {
  objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
 }
 return objXMLHttp
}



