/* PRE VARS START */
var loadAnim='<img src="http://'+host+'/images/ajax.gif" alt="">';
/* PRE VARS END */

/* AJAX FUNC START */
function ajax(){
  var xmlhttp;
  try {xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");} 
	catch (e){ try {xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");} 
		catch (E) {xmlhttp = false;}
	}
  if (!xmlhttp && typeof XMLHttpRequest!='undefined'){
    xmlhttp = new XMLHttpRequest();
  }
  return xmlhttp;
}

function postReq(url, data, statusElem, contentElem){
	var req = ajax();
	req.open('POST', url, true);
	req.onreadystatechange = function() {
		if(req.readyState == 4){
			if(req.status == 200){
				document.getElementById(statusElem).innerHTML='';
				document.getElementById(contentElem).innerHTML=req.responseText;
				}else{document.getElementById(statusElem).innerHTML = loadErr;}
			}
		};
	req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	req.send(data);
	document.getElementById(statusElem).innerHTML=loadAnim;
	}
	
function acpRecovery(){
	var uemail=d.getElementById('email').value;
	postReq('http://'+host+'/engine/ajax/recovery.php', 'act=recover&email='+uemail, 'recoveryStatus', 'recoveryCont');
	}	
/* AJAX FUNC END */
