var xmlHttp
var loadstatustext='<select name="delBandName" id="delBandName" class="textBoxStyle"><option value="0">Loading....</option></select>';

function showBandName(str,Aid)
{
if (str.length==0 && id.length==0)
{ 
return
}
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
} 
var url="php/showBandName.php"
sid		=str
setAid		=Aid
document.getElementById("txtBandName").innerHTML=loadstatustext
url=url+"?sid="+sid+"&setAid="+setAid
//alert(url);
url=url+"&stid="+Math.random()
xmlHttp.onreadystatechange=stateChanged 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{	
	document.getElementById("txtBandName").innerHTML=xmlHttp.responseText
} 
} 

function GetXmlHttpObject()
{ 
var objXMLHttp=null
if (window.XMLHttpRequest)
{
objXMLHttp=new XMLHttpRequest()
}
else if (window.ActiveXObject)
{
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
}
return objXMLHttp
} 
