/*-------------------------------------------------------------------------------------------------
	VALIDA CONTATO
-------------------------------------------------------------------------------------------------*/

function validaContato()
{
	with(document.contato)
	{
		if (nome.value == "")
		{
			alert("Preencha seu nome.")	;
			nome.focus();
			return;
		}
		
		if (email.value == "" || email.value.indexOf("@") == -1 || email.value.indexOf(".") == -1)
		{
			alert("Preencha seu e-mail.");
			email.focus();
			return;
		}
		
		if (telefone.value == "")
		{
			alert("Preencha seu telefone de contato.");
			telefone.focus();
			return;
		}
		
		if (estado.value == "")
		{
			alert("Selecione o estado em que reside.");
			estado.focus();
			return;
		}
		
		if (cidade.value == "")
		{
			alert("Selecione a cidade onde reside.");
			cidade.focus();
			return;
		}
		
		if (mensagem.value == "")
		{
			alert("Preencha a mensagem.");
			mensagem.focus();
			return;
		}
		
		submit();
	}
}