var xmlHttp20

function securityImage()
{ 
xmlHttp20=GetXmlHttpObject();
if (xmlHttp20==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="security.image.php";
url=url+"?sid="+Math.random();
xmlHttp20.onreadystatechange=stateChanged;
xmlHttp20.open("GET",url,true);
xmlHttp20.send(null);
}
function stateChanged() {
if(xmlHttp20.readyState!='4'){
document.getElementById("security").innerHTML = '<img src="images/common/indicator.gif" width="16" height="16">';
}
if (xmlHttp20.readyState==4)
{ 
//document.getElementById("txtHolder").innerHTML = xmlHttp20.responseText;
document.getElementById('security').innerHTML=xmlHttp20.responseText;
}
}
function GetXmlHttpObject()
{
var xmlHttp20=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp20=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp20=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp20=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp20;
}
