function subscribe(){
	var http = GetXmlHttpObject();
	var url = "subscribe.php";
	var params = "email=" + escape(document.getElementById("email").value);
	http.open("POST", url, true);

	//Send the proper header information along with the request
	http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	http.setRequestHeader("Content-length", params.length);
	http.setRequestHeader("Connection", "close");

	http.onreadystatechange = function() {//Call a function when the state changes.
		if(http.readyState == 4) {
			if(http.status == 200){
				document.getElementById("subscribe").innerHTML=http.responseText;
			} else {
				document.getElementById("subscribe").innerHTML="ERROR: " + http.status + "<br />" + http.responseText;
			}
		}
	}
	http.send(params);
}

function GetXmlHttpObject(){
	if (window.XMLHttpRequest) {
		// code for IE7+, Firefox, Chrome, Opera, Safari
		return new XMLHttpRequest();
	}
	if (window.ActiveXObject)	{
		// code for IE6, IE5
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	return null;
}