function Reload() {
	var f = document.getElementById("iframe1");
	f.src = f.src;
	refreshCaptcha();
}





function refreshCaptcha()
{
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request");
 return;
 } 
var url="ajax_captcha.php";
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("POST",url,true);
xmlHttp.send(null);
} 

function stateChanged() 
{ 
 if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 //document.getElementById("cap_code").value=xmlHttp.responseText;
 } 
} 






// Call GetXmlHttpObject()
function GetXmlHttpObject()
{ 
var objXMLHttp=null;
if (window.XMLHttpRequest)
 {
 objXMLHttp=new XMLHttpRequest();
 }
else if (window.ActiveXObject)
 {
 objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP");
 }
else if (window.ActiveXObject)
 {
   objXMLHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
return objXMLHttp;
}
