function news_seta_cadastro()
{

	nome	=	document.form_cad_news.news_nome.value;
	email	=	document.form_cad_news.news_email.value;

	xmlhttp	=	mount_XMLHttp();
	url		=	ajax_path + "news.cadastro.php?a=1&nome=" + nome + '&email=' + email;

	xmlhttp.open("GET", url,true);

	xmlhttp.onreadystatechange=function() {

		if(xmlhttp.readyState==4){
			retorno	=	xmlhttp.responseText;
			document.getElementById('cad_news').style.display		= 'none';
			document.getElementById('cadastro_msg').style.display	= 'block';
			document.getElementById('cadastro_msg').innerHTML		= retorno;
			self.setTimeout('news_show_cad()', 4000);
		}
	}
	xmlhttp.send(null);
}


function news_show_cad()
{
	window.clearTimeout();
	document.getElementById('cad_news').style.display		= 'block';
	document.getElementById('cadastro_msg').style.display	= 'none';
	document.form_cad_news.reset();
}