// JavaScript Document

//form fale conosco
function pop_up(pagina, larg, alt){
	open(pagina,'','width='+larg + ', height='+ alt +'status=no,scroll=yes,toolbar=no');
}	
function mensagem_email(){
	
		if ("<%=txt_stenvio%>" == 1){
				alert("E-mail enviado com sucesso.");
		}
		
		if ("<%=txt_stenvio%>" == 2){
				alert("Problema no envio de e-mail.");
		}
		
	}
function valida(){
	with (document.Frmemail){
		if (txt_nome.value == ""){
			alert("Nome deve ser preenchido.");
			return false;
			txt_nome.focus();
		}
		
		if (txt_assunto.value == ""){
			alert("Assunto deve ser fornecido.");
			return false;
			txt_assunto.focus();
		}
		
		if (txt_email.value == ""){
			alert("E-mail deve ser preenchido.");
			return false;
			txt_email.focus();
		}
		
		if (txt_telefone.value == ""){
			alert("Telefone deve ser preenchido.");
			return false;
			txt_telefone.focus();
		}
		
		if (txt_descricao.value == ""){
			alert("Descrição deve ser preenchido.");
			return false;
			txt_descricao.focus();
		}
	  return true;			
	}
}
function enviar(){
	with (document.Frmemail){
		if (valida()){
			arg = "faleconosco.asp?stenvio=1&txt_nome=" + escape(txt_nome.value);
			arg = arg + "&txt_email="        + escape(txt_email.value);
			arg = arg + "&txt_assunto="      + escape(txt_assunto.value);
			arg = arg + "&txt_fone="         + escape(txt_telefone.value);
			arg = arg  + "&txt_texto="       + escape(txt_descricao.value);
		
			document.location=arg;
		}
	}
}

function validacurriculo(){
	with (document.frmCurriculo){
		if (txt_nome.value == ""){
		  alert("Nome deve ser inserido.")
		  return false;
		  txt_nome.focus();
		  
		}
		
		if (txt_dt_nascimento.value == ""){
		  alert("Dt Nascimento deve ser inserido.")
		   return false;
		  txt_dt_nascimento.focus();
		 
		}
		
		if (txt_nascionalidade.value == ""){
		  alert("Nascionalidade deve ser inserido.")
		   return false;
		  txt_nascionalidade.focus();
		 
		}
		
		if (txt_lstestadocivil.value == 0){
		  alert("Estado Civil deve ser informado.")
		   return false;
		  txt_lstestadocivil.focus();		 
		}
		
		if (txt_dependentes.value == ""){
		  alert("Numero de Dependentes deve ser informado.")
		  return false;
		  txt_dependentes.focus();
		 
		}
		
		if (txt_endereco.value == ""){
		  alert("Endereço deve ser informado.")
		  return false;
		  txt_endereco.focus();		 
		}
		
		if (txt_bairro.value == ""){
		  alert("Bairro deve ser informado.")
		  return false;
		  txt_bairro.focus();		 
		}
		
		if (txt_cidadeestado.value == ""){
		  alert("Cidade/Estado devem ser informado.")
		  return false;
		  txt_cidadeestado.focus();		 
		}
		
		if (txt_email.value == ""){
		  alert("E-mail deve ser informado.")
		  return false;
		  txt_email.focus();		 
		}
		
		if (txt_telefone.value == ""){
		  alert("Telefone deve ser informado.")
		  return false;
		  txt_telefone.focus();		 
		}
		
		if (txt_areadeinteresse.value == ""){
		  alert("Areas de Interesse deve ser informado.")
		  return false;
		  txt_areadeinteresse.focus();		 
		}
		
		if (txt_outros.value == ""){
		  alert("Outros deve ser informado.")
		  return false;  
		  txt_outros.focus();		 
		}
		
		if (txt_expprofissional.value == ""){
		  alert("Experiencia Profissional deve ser informado.")
		  return false;  
		  txt_expprofissional.focus();		 
		}
		
		
		return true;
	}
}

function enviarcurriculo(){
	  	
	
}
	
	//form envia curriculo
	