
function valida()
{
	c_nome = document.getElementById("nome");
	c_email = document.getElementById("email");
	c_telefone = document.getElementById('telefone');
	c_assunto = document.getElementById("assunto");
	c_texto = document.getElementById("mensagem");
	if(c_nome.value == "")
	{
	    alert(campos_nome[1]); 
		c_nome.focus();
		return false;
	}
	
	if(c_email.value == "")
	{
		alert(campos_email[1]); 
		c_email.focus();
		return false;
	}
	
	if(document.getElementById("email").value.lastIndexOf("@")<=0 || document.getElementById("email").value.lastIndexOf(".")<document.getElementById("email").value.lastIndexOf("@"))
 	{
		alert(campos_email[2]); 
		document.getElementById("email").focus();
		return false;
	}
	
	if(c_telefone.value == "")
	{
	
		alert(campos_telefone[1]); 
		c_telefone.focus();
		return false;
	}
	
	if(c_assunto.value == "")
	{
	    alert(campos_assunto[1]); 
		c_assunto.focus();
		return false;
	}
	
	if(c_texto.value == "")
	{
	    alert(campos_mensagem[1]); 
		c_texto.focus();
		return false;
	}
	
		return true;
}


function valida_curriculo()
{
	c_nome = document.getElementById("nome");
	c_datanascimento = document.getElementById("datanascimento");
	c_interesseprofissional= document.getElementById("interesseprofissional");
	c_email= document.getElementById("email");
	c_telefoneresidencial= document.getElementById("telefoneresidencial");
	c_telefonecelular= document.getElementById("telefonecelular");
	c_endereco= document.getElementById("endereco");
	c_numero= document.getElementById("numero");
	c_complemento= document.getElementById("complemento");
	c_bairro= document.getElementById("bairro");
	c_cidade= document.getElementById("cidade");
	c_estado= document.getElementById("estado");
	c_formacaoacademica= document.getElementById("formacaoacademica");
	c_curso= document.getElementById("curso");
	c_instituicaoensino = document.getElementById("instituicaoensino");
	
	if(c_nome.value == "")
	{
		alert(campos_nome[1]); 
		c_nome.focus();
		return false;
	}
	
	if(c_datanascimento.value == "")
	{
	    alert(campos_data_nascimento[1]); 
		c_datanascimento.focus();
		return false;
	}
	else
	{
		if(!valida_data(c_datanascimento))
			return false;
	}
	
	if(c_interesseprofissional.value == "")
	{
	    alert(campos_interesse_profissional[1]); 
		c_interesseprofissional.focus();
		return false;
	}
	
	if(c_email.value == "")
	{
	    alert(campos_email[1]); 
		c_email.focus();
		return false;
	}
	
	if(document.getElementById("email").value.lastIndexOf("@")<=0 || document.getElementById("email").value.lastIndexOf(".") < document.getElementById("email").value.lastIndexOf("@"))
 	{
		alert(campos_email[2]); 
		document.getElementById("email").focus();
		return false;
	}
	
	if(c_telefoneresidencial.value == "" && c_telefonecelular.value == "")
	{
		alert(campos_telefone_residencial[1]);
		c_telefoneresidencial.focus();
		return false;
	}
		
	if(c_endereco.value == "")
	{
		alert(campos_endereco[1])
		c_endereco.focus();
		return false;
	}
	
	
	if(c_numero.value == "")
	{
	    alert(campos_numero[1])
	    c_numero.focus();
		return false;
	}
	
	if(c_bairro.value == "")
	{
	    alert(campos_bairro[1])
		c_bairro.focus();
		return false;
	}
	
	if(c_cidade.value == "")
	{
	    alert(campos_cidade[1])
		c_cidade.focus();
		return false;
	}
		
	if(c_estado.value == "")
	{
		alert(campos_estado[1])
		c_estado.focus();
		return false;
	}
	
	if(c_formacaoacademica.value == "")
	{
		alert(campos_formacao_academica[1])
		c_formacaoacademica.focus();
		return false;
	}

	if(c_curso.value=='')
	{
		alert(campos_curso[1])
		c_curso.focus();
		return false;
	}
	
	if(c_instituicaoensino.value == "")
	{
		alert(campos_instituicao_ensino[1])
		c_instituicaoensino.focus();
		return false;
	}
	
	return true;
}




