// JavaScript Document
function enviarformContato(){
	var cor = "#0AA5A5";
	var errormsg = "";
	var erro = false;
	
	if((document.formContato.nome.value=='') || (document.formContato.email.value=='')){
    
		errormsg ='O seguintes campos são obrigatorio o preenchimento: \n'; 
        
        if (document.formContato.nome.value == "") {
             document.formContato.nome.style.backgroundColor = cor;
             errormsg += " ---> Nome \n";
        }else{
             document.formContato.nome.style.backgroundColor = "";
        }
        if (document.formContato.email.value == "") {
             document.formContato.email.style.backgroundColor = cor;
             errormsg += " ---> E-mail \n";
        }else{
             document.formContato.email.style.backgroundColor = "";
        }
        erro = true;
	}else{
		erro = false
	}

	if(erro){
		window.alert(errormsg);
  	}else{
      	document.formContato.submit();
  	}
}
