function sendform(form) {
	var email = form.email.value;
	var warning = "";	
	if ( email == "" ){
		warning = "Gelieve een email adress in te vullen.";
		alert(warning);
	} else{		
		if (window.XMLHttpRequest){
			xmlhttp=new XMLHttpRequest();
		}else{
			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
		xmlhttp.onreadystatechange=function(){
			if (xmlhttp.readyState==4 && xmlhttp.status==200){
				alert(xmlhttp.responseText);
			}
		}
		xmlhttp.open("GET","inc/subscribe_handler.php?email="+email);
		xmlhttp.send();
	}
}
