// JavaScript Document

function checaemail()
{
	var x = window.formcontato.email.value;
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (filter.test(x));
	else alert('Entre com um email válido');
}

function nenhumvazio()
{
	var texto="\n";
   ok=true

    if (formcontato.nome.value=="") {
    texto+="O campo nome está vazio!\n";
	ok = false;
	}
	

	if (formcontato.email.value=="") {
    texto+="O campo email está vazio!\n";
	ok = false;
    }
        
    if (formcontato.comentario.value=="") {
    texto+="O campo comentário está vazio!\n";
	ok = false;
    }
    
    if (formcontato.cidade.value=="") {
    texto+="O campo cidade está vazio!\n";
	ok = false;
    }
    
    if (formcontato.estado.value=="") {
    texto+="O campo estado está vazio!\n";
	ok = false;
    }
    
    

if (ok == false) {
   alert(texto);
  }

  if (ok == true) {
     formcontato.submit();
  }

}



