// JavaScript Document

function setOptions(o) {
		
		var valores = document.form_busca_avancada.valores;		
		valores.options.length = 0;
		
		if (o == 1 || o == 3 || o == 4) {
			valores.options[valores.options.length] = new Option('Todos',''); 
			valores.options[valores.options.length] = new Option('até R$ 10.000','0 and 10000'); 
			valores.options[valores.options.length] = new Option('R$ 10.001 à R$ 20.000','10001 and 20000'); 
			valores.options[valores.options.length] = new Option('R$ 20.001 à R$ 25.000','20001 and 25000'); 
			valores.options[valores.options.length] = new Option('R$ 25.001 à R$ 30.000','25001 and 30000'); 
			valores.options[valores.options.length] = new Option('R$ 30.001 à R$ 40.000','30001 and 40000'); 
			valores.options[valores.options.length] = new Option('R$ 40.001 à R$ 50.000','40001 and 50000'); 
			valores.options[valores.options.length] = new Option('R$ 50.001 à R$ 70.000','50001 and 70000'); 
			valores.options[valores.options.length] = new Option('R$ 70.001 à R$ 90.000','70001 and 90000'); 
			valores.options[valores.options.length] = new Option('R$ 90.001 à R$ 120.000','90001 and 120000'); 
			valores.options[valores.options.length] = new Option('R$ 120.001 à R$ 150.000','120001 and 150000'); 
			valores.options[valores.options.length] = new Option('R$ 150.001 à R$ 200.000','150001 and 200000'); 
			valores.options[valores.options.length] = new Option('R$ 200.001 à R$ 300.000','200001 and 300000'); 
			valores.options[valores.options.length] = new Option('R$ 300.001 à R$ 500.000','300001 and 500000'); 
			valores.options[valores.options.length] = new Option('R$ 500.001 à R$ 750.000','500001 and 750000'); 
			valores.options[valores.options.length] = new Option('R$ 750.001 à R$ 1.000.000','750001 and 1000000'); 
			valores.options[valores.options.length] = new Option('Acima de R$ 1.000.001','1000001 and 9999999');
		} 
		if (o == 2) { 
			valores.options[valores.options.length] = new Option('Todos',''); 
			valores.options[valores.options.length] = new Option('R$100 à R$200','100 and 200'); 
			valores.options[valores.options.length] = new Option('R$200 à R$300','200 and 300'); 
			valores.options[valores.options.length] = new Option('R$300 à R$400','300 and 400'); 
			valores.options[valores.options.length] = new Option('R$400 à R$500','400 and 500'); 
			valores.options[valores.options.length] = new Option('R$500 à R$600','500 and 600'); 
			valores.options[valores.options.length] = new Option('R$600 à R$700','600 and 700'); 
			valores.options[valores.options.length] = new Option('R$700 à R$800','700 and 800'); 
			valores.options[valores.options.length] = new Option('R$800 à R$900','800 and 900'); 
			valores.options[valores.options.length] = new Option('R$900 à R$1.000','900 and 1000'); 
			valores.options[valores.options.length] = new Option('R$1.000 até R$5.000','1000 and 5000');
		}
		$(document).ready(function(arg){
			$("#select").msDropDown();
		})
	} 

		$(document).ready(function(arg){
			$("#select").msDropDown();
			$('#menu_simulador').ptMenu({vertical:true});
		})

	jQuery(document).ready(function() {
	    $(".SelectBox").selectbox();
	});
	

	

	function vCheck(){
		check = document.getElementById('declaro');
		bt = document.getElementById('bt');
		if (check.checked == true) {
			bt.disabled = false; 
		} else if (check.checked == false){
			bt.disabled = true; 
		}
	}
	function valida(){
		if(document.Form.nome.value==""){
			alert('Preencha o campo nome');
			document.Form.nome.focus();
		}else if(document.Form.data_nasc.value==""){
			alert('Preencha o campo data de nascimento');
			document.Form.data_nasc.focus();
		}else if(document.Form.sexo.value==""){
			alert('Selecione o sexo');
			document.Form.sexo.focus();
		}else if(document.Form.endereco.value==""){
			alert('Preencha o campo endereço');
			document.Form.endereco.focus();
		}else if(document.Form.bairro.value==""){
			alert('Preencha o campo bairro');
			document.Form.bairro.focus();
		}else if(document.Form.cidade.value==""){
			alert('Preencha o campo cidade');
			document.Form.cidade.focus();
		}else if(document.Form.cpf.value==""){
			alert('Preencha o campo CPF');
			document.Form.cpf.focus();
		}else if(document.Form.cep.value==""){
			alert('Preencha o campo cep');
			document.Form.cep.focus();		
		}else if(document.Form.email.value==""){
			alert('Preencha o campo email');
			document.Form.email.focus();
		}else if(!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.Form.email.value))) {
			alert('E-mail inválido.');
			document.Form.email.focus();
			return false;
		}else if(document.Form.qualificacao_profissional.value==""){
			alert('Preencha o campo Qualificacao Profissional');
			document.Form.qualificacao_profissional.focus();
		}else if(document.Form.trabalhando.value==""){
			alert('Selecione o campo Trabalhando');
			document.Form.trabalhando.focus();
		}else if(document.Form.remuneracao_atual.value==""){
			alert('Selecione o campo Remuneracao Atual');
			document.Form.remuneracao_atual.focus();
		}else if(document.Form.tel_recado.value==""){
			alert('Selecione o campo Contato Preferencial');
			document.Form.tel_recado.focus();
		}else if(document.Form.celular.value==""){
			alert('Selecione o campo Celular');
			document.Form.celular.focus();
		}else if(document.Form.telefone.value==""){
			alert('Selecione o campo Telefone Residencial');
			document.Form.telefone.focus();
		}else if(document.Form.cargo.value==""){
			alert('Preencha o campo Cargo');
			document.Form.cargo.focus();
		}else if(document.Form.disponibilidade.value==""){
			alert('Preencha o campo Disponibilidade');
			document.Form.disponibilidade.focus();
		}else if(document.Form.area_de_atuacao.value==""){
			alert('Preencha o campo Area de Atuação');
			document.Form.area_de_atuacao.focus();
		}else if(document.Form.primeira_opcao.value==""){
			alert('Selecione o campo Primeira opção');
			document.Form.primeira_opcao.focus();
		}else if(document.Form.segunda_opcao.value==""){
			alert('Selecione o campo Segunda opção');
			document.Form.segunda_opcao.focus();
		}else{
			Form.submit();
		}
	}
