function doHttpRequest( ) { 
 
 
  http.open("POST", "reply.php", true);
  http.onreadystatechange = getHttpRes;

  var params = "email=" + encodeURI(document.getElementById("subscribtion").value);
             
			 
  http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  http.setRequestHeader("Content-length", params.length);
  http.setRequestHeader("Connection", "close");

  http.send(params);

}

function getHttpRes( ) {
  if (http.readyState == 4 && http.status == 200) { 
    res = http.responseText;  
    document.getElementById('subcrib_rep').innerHTML = res;
	document.getElementById('clear_button').innerHTML = " ";
  }
}

function getXHTTP( ) {
  var xhttp;
   try {   
      xhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        xhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e2) {
	    try {
	      xhttp = new XMLHttpRequest();
	    } catch (e3) {
	      xhttp = false;
	    }
      }
    }
  return xhttp; 
}

var http = getXHTTP();
