// HTTP Request

HTTPRequest = function () {
var xmlhttp=null;
 try {
  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
  } catch (_e) {
    try {
     xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
   } catch (_E) { }
 }
 if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
   try {
    xmlhttp = new XMLHttpRequest();
    } catch (e) {
    xmlhttp = false;
   }
  }
 return xmlhttp;
}
function askPost(url,questStr,div) {
var http = new HTTPRequest();
 http.open("POST", url, true);
 http.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");  
 http.send(questStr);
 http.onreadystatechange = function (){ handleHttpResponsePost(http,div)};
 return true;
}

function handleHttpResponsePost(http,div) {
 if (http.readyState == 4) {
  result = http.responseText;
  alert(result);
  document.getElementById(div).innerHTML = result;
  }
}
var procbar;
txt="Processing ..."; 
procbar = "<table width=100% border=0><tr><td align=center valign=middle height=100><img src=/images/loading.gif width=16 height=16 align=absmiddle /> "+ txt +" </td></tr></table>";
function _PostEmail(e) {
	var password;
	var msg_status="<font style='cursor:pointer; color:#FF0000' onclick='_HiddlenInfo()'>Email is empty or New ,Failure or fraud does not need email notification list. Click Hidde the info</font>";
	var msg_detail="<font style='cursor:pointer; color:#FF0000' onclick='_HiddlenInfo()'>Please check your information is complete</font>";
	var msg_sort="<font style='cursor:pointer; color:#FF0000' onclick='_HiddlenInfo()'>You check wrong type</font>";
	var flag=0;
	var email = e.o_email.value;
	
	
    if(email==""){
	flag=flag+1; 
	document.getElementById("order_email").style.display="";
	document.getElementById("order_email").innerHTML=msg_status;
	 
	}
	else{
  if($("#order_email").load("forgot_password.php?action=checkuser", {name: email})){
  $("#order_email").html("");
  
  //alert('123');
  }
 else{
	$("#order_email").html("");
	//alert('456');
	 }
		}

	return false;	
}

function _HiddlenInfo()
{
	document.getElementById("order_email").innerHTML="";
	//document.getElementById("order_email").style.display="none";
	
}
