<!--
/*-----------------------------------------------------------
Formulario de Cadastrar Email na newsletter
------------------------------------------------------------*/

function verificar_email2(campo)
{
	if (campo.value.length == 0)
	{
		alert('Digite um e-mail válido.');
		campo.focus();
		return false;
	}

	if (campo.value.indexOf('@')+1 == 0)
	{
		alert('Digite um e-mail válido.');
		campo.focus();
		return false;
	}

    i = campo.value.indexOf('@')+1;
	if ((i == '1') || (i == campo.value.length))
	{
		alert('Digite um e-mail válido.');
		campo.focus();
		return false;
	}

	return true;
}

function novidades() {
document.write ("	<table border='0' width='138' cellpadding='2' cellspacing='0'>");
document.write ("	<tr>");
document.write ("	<td bgcolor='#7399C9'><img src='imagens/novidades.gif' border='0'></td>");
document.write ("	</tr>");
document.write ("	<tr>");
document.write ("	<FORM name=formulario METHOD=POST ACTION=cadastrar_email.php onSubmit='return verificar_email2(formulario.email)'>");
document.write ("	<td bgcolor='#DCE7F2' align='left'>");
document.write ("	<table cellpadding='4' cellspacing='0' vorder='0'>");
document.write ("	<tr>");
document.write ("	<td align='left' valign='middle'>");
document.write ("	<font face='verdana, arial' size='1' color=#222222>Seja informado das novidades do Guia.<br><br>");
document.write ("	<b>E-mail:</b><br><input type='text' name='email' size='15' maxlength='30' style='border:1px inset #dddddd; font-family: verdana; font-size:10; height:19px'>");
document.write ("	<input name='ok' type='submit' value='ok!' size='10' style='margin:1px; background-color:#eeeeee; border:1px solid #aaaaaa; font-family: verdana; font-size:9; font-weight:bold; color:gray'></font>");
document.write ("	<br>");
document.write ("	</td>");
document.write ("	</tr>");
document.write ("	</table></td>");
document.write ("	</form>");
document.write ("	</tr>");
document.write ("	</table>");
document.write ("	<br>");
}

//-->
