function validarTudo(form){

if(document.getElementById('nome').value == ''){
		alert('Nome: preenchimento obrigatório');	
		document.getElementById('nome').focus();
		return false;
	}
	if(document.getElementById('email').value == ''){
		alert('Email: preenchimento obrigatório');	
		document.getElementById('email').focus();
		return false;
	}
	if(!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.getElementById('email').value)))	{
		alert(document.getElementById('email').value+" não é um e-mail válido.") ;
		document.getElementById('email').focus();
		return false;
	}
	if(document.getElementById('nacionalidade').value != '10'){
		if(document.getElementById('anochegada').value == ''){
			alert('Ano de Chegada: preenchimento obrigatório se nacionalidade for diferente de Brasileira');	
			document.getElementById('nacionalidade').focus();
			return false;
		}
	}else{
		document.getElementById('anochegada').value = 0;
	}
	if(document.getElementById('deficiente').checked == true){
		if(document.getElementById('deficiencia').value == '0'){
			alert('Deficiência: preenchimento obrigatório se Deficiente for marcado');	
			document.getElementById('deficiencia').focus();
			return false;
		}
	}
	if(document.getElementById('logradouro').value == ''){
		alert('Logradouro: preenchimento obrigatório');	
		document.getElementById('logradouro').focus();
		return false;
	}
	if(document.getElementById('numero').value == ''){
		alert('Número: preenchimento obrigatório');	
		document.getElementById('numero').focus();
		return false;
	}	
	if(document.getElementById('bairro').value == ''){
		alert('Bairro: preenchimento obrigatório');	
		document.getElementById('bairro').focus();
		return false;
	}	
	if(document.getElementById('cep').value == ''){
		alert('Cep: preenchimento obrigatório');	
		document.getElementById('cep').focus();
		return false;
	}
	if(document.getElementById('estado').value == '0'){
		alert('Estado: seleção obrigatória');	
		document.getElementById('estado').focus();
		return false;
	}
	if(document.getElementById('cidade').value == '0'){
		alert('Cidade: seleção obrigatória');	
		document.getElementById('cidade').focus();
		return false;
	}	
	if(document.getElementById('telefone').value == ''){
		alert('Telefone: preenchimento obrigatório');	
		document.getElementById('telefone').focus();
		return false;
	}
	if(document.getElementById('datanascimento').value == ''){
		alert('Data de nascimento inválida');
		document.getElementById('datanascimento').focus();
		return false;			
	}else{
		data_ter = document.getElementById('datanascimento').value.split("/");
		dia_ter = data_ter[0];
		mes_ter = data_ter[1];
		ano_ter = stringToFloat(data_ter[2]);
		if((dia_ter == '29' ) && (mes_ter == '02') && ((ano_ter%4) != 0) || (ano_ter.length < 4)){ // || (ano.ter > 2006)){
			alert('Data de nascimento inválida');
			document.getElementById('datanascimento').focus();
			return false;
		}else{
			if(!doDate(document.getElementById('datanascimento').value, 4)){
				alert('Data de nascimento inválida');
				document.getElementById('datanascimento').focus();
				return false;
			}
		}
	}
	if((document.form_cur.sexo[0].checked == false) && (document.form_cur.sexo[1].checked == false)){
		alert('Sexo: seleção obrigatória');	
		return false;
	}
	if(document.getElementById('pai').value == ''){
		alert('Pai: preenchimento obrigatório');	
		document.getElementById('pai').focus();
		return false;
	}	
	if(document.getElementById('mae').value == ''){
		alert('Mãe: preenchimento obrigatório');	
		document.getElementById('mae').focus();
		return false;
	}	
	if(document.getElementById('natural_estado').value == '0'){
		alert('Natural de (Estado): seleção obrigatória');	
		document.getElementById('natural_estado').focus();
		return false;
	}
	if(document.getElementById('natural_cidade').value == '0'){
		alert('Natural de (Cidade): seleção obrigatória');	
		document.getElementById('natural_cidade').focus();
		return false;
	}	
//===========================================================================	
//if(document.getElementById('cpf').value == ''){
		//alert('CPF: preenchimento obrigatório');	
		//document.getElementById('cpf').focus();
		//return false;
	//}

	if(document.getElementById('ident_numero').value == ''){
		alert('Identidade - Número: preenchimento obrigatório');	
		document.getElementById('ident_numero').focus();
		return false;
	}
	if(document.getElementById('ident_emissao').value == ''){
		alert('Identidade - Data de Emissão: preenchimento obrigatório');	
		document.getElementById('ident_emissao').focus();
		return false;
	}
	if(document.getElementById('ident_orgao').value == ''){
		alert('Identidade - Orgão Expedir: preenchimento obrigatório');	
		document.getElementById('ident_orgao').focus();
		return false;
	}	
	if(document.getElementById('ident_uf').value == '0'){
		alert('Identidade - UF: seleção obrigatória');	
		document.getElementById('ident_uf').focus();
		return false;
	}
	if(document.getElementById('ident_visto').value == ''){
		alert('Identidade - Tipo de Visto: preenchimento obrigatório');	
		document.getElementById('ident_visto').focus();
		return false;
	}
	if(document.getElementById('pis_codigo').value == ''){
		alert('PIS/PASEP - Código: preenchimento obrigatório');	
		document.getElementById('pis_codigo').focus();
		return false;
	}
	if(document.getElementById('pis_cadastro').value == ''){
		alert('PIS/PASEP - Data Cadastro: preenchimento obrigatório');	
		document.getElementById('pis_cadastro').focus();
		return false;
	}
	if(document.getElementById('trab_numero').value == ''){
		alert('Cart. Trabalho - Número: preenchimento obrigatório');	
		document.getElementById('trab_numero').focus();
		return false;
	}
	if(document.getElementById('trab_serie').value == ''){
		alert('Cart. Trabalho - Série: preenchimento obrigatório');	
		document.getElementById('trab_serie').focus();
		return false;
	}
	if(document.getElementById('trab_emissao').value == ''){
		alert('Cart. Trabalho - Data Emissão: preenchimento obrigatório');	
		document.getElementById('trab_emissao').focus();
		return false;
	}
	if(document.getElementById('trab_uf').value == '0'){
		alert('Cart. Trabalho - UF: seleção obrigatória');	
		document.getElementById('trab_uf').focus();
		return false;
	}
	if(document.getElementById('trab_validade').value == ''){
		alert('Cart. Trabalho - Data Validade: preenchimento obrigatório');	
		document.getElementById('trab_validade').focus();
		return false;
	}
	if(document.getElementById('tit_numero').value == ''){
		alert('Título Eleitor - Número: preenchimento obrigatório');	
		document.getElementById('tit_numero').focus();
		return false;
	}
	if(document.getElementById('tit_emissao').value == ''){
		alert('Título Eleitor - Data Emissão: preenchimento obrigatório');	
		document.getElementById('tit_emissao').focus();
		return false;
	}
	if(document.getElementById('tit_zona').value == ''){
		alert('Título Eleitor - Zona: preenchimento obrigatório');	
		document.getElementById('tit_zona').focus();
		return false;
	}
	if(document.getElementById('tit_secao').value == ''){
		alert('Título Eleitor - Seção: preenchimento obrigatório');	
		document.getElementById('tit_secao').focus();
		return false;
	}
	if(document.getElementById('tit_uf').value == '0'){
		alert('Título Eleitor - UF: seleção obrigatória');	
		document.getElementById('tit_uf').focus();
		return false;
	}
	if(document.getElementById('cert_uf').value == '0'){
		alert('Certidão - UF: seleção obrigatória');	
		document.getElementById('cert_uf').focus();
		return false;
	}
	if(document.getElementById('cert_cidade').value == ''){
		alert('Certidão - Cidade: preenchimento obrigatório');	
		document.getElementById('cert_cidade').focus();
		return false;
	}
	if(document.getElementById('cert_livro').value == ''){
		alert('Certidão - Livro: preenchimento obrigatório');	
		document.getElementById('cert_livro').focus();
		return false;
	}
	if(document.getElementById('cert_folha').value == ''){
		alert('Certidão - Folha: preenchimento obrigatório');	
		document.getElementById('cert_folha').focus();
		return false;
	}
	if(document.getElementById('cert_emissao').value == ''){
		alert('Certidão - Emissão: preenchimento obrigatório');	
		document.getElementById('cert_emissao').focus();
		return false;
	}
	if(document.getElementById('cnh_numero').value == ''){
		alert('CNH - Número: preenchimento obrigatório');	
		document.getElementById('cnh_numero').focus();
		return false;
	}	
	if(document.getElementById('cnh_categoria').value == ''){
		alert('CNH - Categoria: preenchimento obrigatório');	
		document.getElementById('cnh_categoria').focus();
		return false;
	}	
	if(document.getElementById('cnh_validade').value == ''){
		alert('CNH - Validade: preenchimento obrigatório');	
		document.getElementById('cnh_validade').focus();
		return false;
	}	
	if(document.getElementById('cnh_habilitacao').value == ''){
		alert('CNH - Habilitação: preenchimento obrigatório');	
		document.getElementById('cnh_habilitacao').focus();
		return false;
	}	
	if(document.getElementById('cmil_documento').value == ''){
		alert('Cert. Militar - Documento: preenchimento obrigatório');	
		document.getElementById('cmil_documento').focus();
		return false;
	}	
	if(document.getElementById('cmil_numero').value == ''){
		alert('Cert. Número - Documento: preenchimento obrigatório');	
		document.getElementById('cmil_numero').focus();
		return false;
	}		
	if(document.getElementById('cmil_csm').value == ''){
		alert('Cert. Militar - CSM/OAM: preenchimento obrigatório');	
		document.getElementById('cmil_csm').focus();
		return false;
	}	
	if(document.getElementById('cmil_rm').value == ''){
		alert('Cert. Militar - RM/DN/COMAR: preenchimento obrigatório');	
		document.getElementById('cmil_rm').focus();
		return false;
	}	
	if(document.getElementById('cmil_categoria').value == ''){
		alert('Cert. Categoria -: preenchimento obrigatório');	
		document.getElementById('cmil_categoria').focus();
		return false;
	}	
	if(document.getElementById('cmil_serie').value == ''){
		alert('Cert. Série: preenchimento obrigatório');	
		document.getElementById('cmil_serie').focus();
		return false;
	}

//===========================================================================	

	if((document.form_cur.horariom.checked == false)&&(document.form_cur.horariot.checked == false)&&(document.form_cur.horarion.checked == false)){
		alert('Horário: seleção obrigatória');	
		return false;		
	}
	if((document.getElementById('pretensao').value == '')||(document.getElementById('pretensao').value == '')){
		alert('Pretenção: preenchimento obrigatório');	
		document.getElementById('pretensao').focus();
		return false;
	}
	if(document.getElementById('indicado').checked == true){
		if((document.form_cur.indicado_por[0].checked == false)&&(document.form_cur.indicado_por[1].checked == false)){
			alert('Indicado por: seleção obrigatória se for selecionado Indicado por');	
			return false;		
		}
		if(document.getElementById('nome_indicacao').value == ''){
			alert('Nome de quem indicou: preenchimento obrigatório se for selecionado Indicado por');	
			document.getElementById('nome_indicacao').focus();
			return false;
		}		
	}
	if(document.getElementById('parente').checked == true){
		if(document.getElementById('nome_parente').value == ''){
			alert('Nome do Parente: preenchimento obrigatório se for selecionado Parentes na Empresa');	
			document.getElementById('nome_parente').focus();
			return false;
		}		
	}	
	if(document.getElementById('anoexperiencia').value == ''){
		alert('Anos de Experiência: preenchimento obrigatório');	
		document.getElementById('anoexperiencia').focus();
		return false;
	}
	eval('document.'+form+'.submit()');
}
