var xmlHttp
var loadstatustext="<FONT style=BACKGROUND-COLOR: #990033 color=#ff0033><STRONG><FONT color=#123B69>&nbsp;Loading....</FONT></STRONG></FONT>";

function showState(str,sid)
{
if (str.length==0 && id.length==0)
{ 
return
}
xmlHttp=GetXmlHttpObject1()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
} 
var url="php/showState.php"
aid		=str
sid		=sid
document.getElementById("txtState").innerHTML=loadstatustext
url=url+"?aid="+aid+"&sid="+sid
//alert(url);
url=url+"&stid="+Math.random()
xmlHttp.onreadystatechange=stateChanged1 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
function stateChanged1() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{	
	document.getElementById("txtState").innerHTML=xmlHttp.responseText
	initScrollers()
} 
} 

function GetXmlHttpObject1()
{ 
var objXMLHttp=null
if (window.XMLHttpRequest)
{
objXMLHttp=new XMLHttpRequest()
}
else if (window.ActiveXObject)
{
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
}
return objXMLHttp
} 
