function Ajax() {
	var xmlhttp=false;
	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 news() {
var ajax = new Array();
ajax[0] = Ajax();
	var email = document.getElementById('email').value;
	ajax[0].open("GET", "inc/news.php?email="+ email + "&nocache=" + Math.random());
	ajax[0].onreadystatechange=function() {
		if (ajax[0].readystate==1) {
		document.getElementById("resultado").innerHTML = 'Checking email ...';
		}
		if (ajax[0].readyState==4) {
		document.getElementById("resultado").innerHTML = ajax[0].responseText;
		}
	}
	ajax[0].send(null);
}