//Operating Status Definition
var xmlHttp_StatusDef

function showStatusDef(str)
{ 
xmlHttp_StatusDef=GetXmlHttpObject_StatusDef()
if (xmlHttp_StatusDef==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="status_definition.php"
url=url+"?skey="+str
url=url+"&sid="+Math.random()
xmlHttp_StatusDef.onreadystatechange=stateStatusDefChanged 
xmlHttp_StatusDef.open("GET",url,true)
xmlHttp_StatusDef.send(null)
}

function stateStatusDefChanged() 
{ 
if (xmlHttp_StatusDef.readyState==4 || xmlHttp_StatusDef.readyState=="complete")
 { 
 document.getElementById("operatingStatus").innerHTML=xmlHttp_StatusDef.responseText 
 } 
}

function GetXmlHttpObject_StatusDef()
{
var xmlHttp_StatusDef=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp_StatusDef=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp_StatusDef=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp_StatusDef=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp_StatusDef;
}
