// JavaScript Document
var xmlHttp;
function memList(str1)
{
	xmlHttp=GetXmlHttpObject();
	if(xmlHttp==null)
	{
		alert("Sorry! Your borwser does not support AJAX");
		return;
	}
	var url="controller/category.php";
		url=url+'?d1='+str1;
		
		
		
		xmlHttp.onreadystatechange=stateChangdded;
		xmlHttp.open("GET", url, true);
		xmlHttp.send(null);
}
function stateChangdded()
{
	if(xmlHttp.readyState==4)
	{
		document.getElementById('listgrid').innerHTML=xmlHttp.responseText;	
		//if(document.getElementById("txtHint").innerHTML==null)
		//{
			//document.getElementById("txtHint").innerHTML="No Such Record Found";	
		//}
	}
	else
	{
		document.getElementById('listgrid').innerHTML='Be Patient....';	
	}
}
function GetXmlHttpObject()
{
	var xmlHttp=null;
	try
	{
		xmlHttp = new XMLHttpRequest();	
	}
	catch(e)
	{
		try
		{
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");	
		}
		catch(e)
		{
			xmlHttp = new ActiveXObject("Microsoft.XMLHTT");
		}
	}
	return xmlHttp;
}
