function validaCurriculo(){
	if (trim(document.frmcurriculo.txtnome.value) == ""){
			alert("Campo obrigatório não preenchido: NOME");
			document.frmcurriculo.txtnome.focus();
			return false;
	}
	if (trim(document.frmcurriculo.txtendereco.value) == ""){
			alert("Campo obrigatório não preenchido: ENDEREÇO");
			document.frmcurriculo.txtendereco.focus();
			return false;
	}
	if (trim(document.frmcurriculo.txtbairro.value) == ""){
			alert("Campo obrigatório não preenchido: BAIRRO");
			document.frmcurriculo.txtbairro.focus();
			return false;
	}	
	if (trim(document.frmcurriculo.txtcep.value) == ""){
			alert("Campo obrigatório não preenchido: CEP");
			document.frmcurriculo.txtcep.focus();
			return false;
	}else{
		if (isNaN(document.frmcurriculo.txtcep.value)) {
			alert("O Cep deve conter apenas números. Ex.: 36015010");
			document.frmcurriculo.txtcep.focus();
			return false;
		}
	}
	if (trim(document.frmcurriculo.txtcidade.value) == ""){
			alert("Campo obrigatório não preenchido: CIDADE");
			document.frmcurriculo.txtcidade.focus();
			return false;
	}			
	if (document.frmcurriculo.drpuf.value == ""){
			alert("Campo obrigatório não preenchido: UF");
			document.frmcurriculo.drpuf.focus();
			return false;
	}
	if (trim(document.frmcurriculo.txttelefone.value) == ""){
			alert("Campo obrigatório não preenchido: TELEFONE");
			document.frmcurriculo.txttelefone.focus();
			return false;
	}else{
		if (isNaN(document.frmcurriculo.txttelefone.value)) {
			alert("O Telefone deve conter apenas números. Ex.: 32320000");
			document.frmcurriculo.txttelefone.focus();
			return false;
		}
	}
	if (isNaN(document.frmcurriculo.txtcelular.value)) {
		alert("O Celular deve conter apenas números. Ex.: 99320000");
		document.frmcurriculo.txtcelular.focus();
		return false;
	}	
	if (document.frmcurriculo.txtemail.value == ""){
			alert("Campo obrigatório não preenchido: EMAIL");
			document.frmcurriculo.txtemail.focus();
			return false;
	}else{
		if (!doEmail(document.frmcurriculo.txtemail.value,1)) {
			alert("O campo EMAIL não contém um endereço válido.");
			document.frmcurriculo.txtemail.focus();
			return false;
		}
	}
	//---------------------------------------------------------------------
	//Percorre todas areas de interesse, e concatena todos os valores selecionados.
	//No final retira-se a ultima virgula.
	var chkinteresse = '';
	for(var i=1; i<=14; i++){
		if (eval("document.frmcurriculo.chkinteresse" + i + ".checked")){
			chkinteresse = chkinteresse + eval("document.frmcurriculo.chkinteresse" + i + ".value") + ", ";
		}
	}
	chkinteresse = chkinteresse.substring(0,chkinteresse.length - 2);
	//---------------------------------------------------------------------
	if (chkinteresse == ""){
			alert("Selecione pelo menos uma ÁREA DE INTERESSE");
			return false;
	}else{
		document.frmcurriculo.txtinteresse.value = chkinteresse;
	}	
						
	if (trim(document.frmcurriculo.txtagraduacoes.value) == ""){
			alert("Campo obrigatório não preenchido: GRADUAÇÕES / ESPECIALIZAÇÕES / MESTRADO / DOUTORADO");
			document.frmcurriculo.txtagraduacoes.focus();
			return false;
	}
	if (trim(document.frmcurriculo.txtamotivo.value) == ""){
			alert("Campo obrigatório não preenchido: PORQUE TRABALHAR NA NOVAPROLINK?");
			document.frmcurriculo.txtamotivo.focus();
			return false;
	}
	
	document.frmcurriculo.submit();
}
