
function cadNews( valor ) {
	
    http.open("GET", "ajax/cadNews.php?email=" + valor, true);

	http.onreadystatechange = handleHttpResponseCadNews;

//	document.getElementById("fbia_conteudo").innerHTML = "<img src='img/layout/aguarde.gif' />";
	http.send(null);
}

function handleHttpResponseCadNews() {

  if (http.readyState == 4) {

	//x = http.responseText.split("|erro");
	
	alert(http.responseText);
//	if(x.length > 1) {
//		alert("Campo Email não pode estar em branco");
//	} else {
//	    alert("Email cadastrado na newsletter com sucesso");
//	}
  }
}