function drpStateChange()
	{
		var cty = document.getElementById("drState").value;		
		if (cty!="0")
		{				
			populateDistrict();	
		}
		return true;
	}
function drpDistrictChange()
	{
		var dst = document.getElementById("drDistrict").value;		
		//alert(dst);			
		document.getElementById("hiddt").value=dst;		
		if (dst!="0")
		{				
			populateBranch();	
		}
		return true;
	}
	function drpBranchChange()
	{
		var brn = document.getElementById("drBranch").value;		
		//alert(brn);
		document.getElementById("hidbrn").value=brn;
				
		if (brn!="0")
		{				
			//populateBranch();	
		}
		return true;
	}
function populateDistrict()
	{
		var drp = document.getElementById("drState").value;
		var grp = new AJAXMaster();
		grp.spName = "SMEDisplayDistrict";
		grp.add("SectionName",drp);
		var xmldoc = new ActiveXObject("Microsoft.XMLDOM");
		xmldoc.loadXML(grp.getDataOnly());
		var nodes = xmldoc.selectNodes("//Table")
		document.getElementById("drDistrict").options.length=0;
		document.getElementById("drDistrict").options[0]=new Option("Select District", "0");
		for(var i=0;i<nodes.length;i++)
		{
			document.getElementById("drDistrict").options.add(new Option(nodes[i].childNodes[1].text,nodes[i].childNodes[0].text))
		}	
	}
	
function populateBranch()
	{
		var drp = document.getElementById("drDistrict").value;
		var grp = new AJAXMaster();
		grp.spName = "SMEDisplayBranch";
		grp.add("SectionName",drp);
		var xmldoc = new ActiveXObject("Microsoft.XMLDOM");
		xmldoc.loadXML(grp.getDataOnly());
		var nodes = xmldoc.selectNodes("//Table")
		document.getElementById("drBranch").options.length=0;
		document.getElementById("drBranch").options[0]=new Option("Select Branch", "0");
		for(var i=0;i<nodes.length;i++)
		{
			document.getElementById("drBranch").options.add(new Option(nodes[i].childNodes[1].text,nodes[i].childNodes[0].text))
		}		
	}




	
	






