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

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


function castes(id)
{

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

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










