function reload()
{
  if (xmlHttp)
  {
    try
    {
	  xmlHttp.open("GET", "/anti_bot_system/anti_bot_ajax.php", true);
      xmlHttp.onreadystatechange = handleRequestStateChange4;
      xmlHttp.send(null);
	  
    }
    catch (e)
    {
    }
 }
}

function handleRequestStateChange4() 
{
 if (xmlHttp.readyState != 4)
  {
    document.getElementById("reload_captcha").innerHTML = "<img src='images/loader.gif' width='20' height='20 alt='' />";
  }else
 if (xmlHttp.readyState == 4)
  {
    if (xmlHttp.status == 200) 
    {
      try
      {
        handleServerResponse4();
      }
     catch (e)
  	  {
      }
   } 
  }
}

function handleServerResponse4()
{
  var xmlResponse = xmlHttp.responseXML;
  if (!xmlResponse || !xmlResponse.documentElement)
    throw("Invalid XML structure:\n" + xmlHttp.responseText);
  var rootNodeName = xmlResponse.documentElement.nodeName;
  if (rootNodeName == "parsererror") 
    throw("Invalid XML structure:\n" + xmlHttp.responseText);
  xmlRoot = xmlResponse.documentElement;
  if (rootNodeName != "response" || !xmlRoot.firstChild)
    throw("Invalid XML structure:\n" + xmlHttp.responseText);
  responseText = xmlRoot.firstChild.data;
  document.getElementById("reload_captcha").innerHTML = "" + responseText;
}