function verificaNovidade(){
	var oTxt = document.getElementById('email_novidade');

	if (oTxt.value.isWhite() || !verifica_email(oTxt.value)) {
		SA.open('E-mail inv&aacute;lido!<br>Tente novamente, por favor.', "", null, 1, 1);
		return false;
	}

	SAWait.open();

	var myCallback={
		success:function(o){
			var xml = new xmlParse();
			xml.setObjAjax(o);
			xml.setChildName('status');
			xml.parse();

			if (xml.getAttByName('code',0) == 1) {
				oTxt.value = '';
				SA.open('E-mail cadastrado com sucesso!', "", null, 0, 0);
			}
		},
		failure:function(){
			SA.open('Dados indispon&iacute;veis ao requisitar novidades.<br>Tente, novamente, em alguns minutos.', '', null, 1, 1);
		}
	};
	Connect.asyncRequest('POST', 'InscreverNovidade', myCallback, 'email='+oTxt.value);
}


function inicial(e){
}


addEvent(window, "load", function(e){inicial(e)});



