function envia_trabalhe()
{
	var texto, msgaux, erro; 
	var frm = document.form_trabalhe;
	var nomeClasse;
	
	erro = false;
	nomeClasse = "campoerro";
	msgaux='Os campos em destaque precisam ser verificados';

	for (i=0;i<frm.elements.length;i++)
	{ 
		if(frm.elements[i].type!="radio" && frm.elements[i].type!="checkbox")
		frm.elements[i].className = "";
	else
		frm.elements[i].className ="input_semborda";
	}
	
	texto = frm.nome.value;
	if (texto.length < 1) {
		frm.nome.className  = nomeClasse;
		erro=true;
	}

	
	texto = frm.email.value;
	email = frm.email.value;
	if (texto.length > 1) 
	 { 
		//Validando o e-mail
		var str = texto; // email string
		var reg1 = /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/; // not valid
		var reg2 = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/; // valid
		if (!reg1.test(str) && reg2.test(str)) // if syntax is valid
		 {  texto=''  }
		else
		 { 
			frm.email.className  = nomeClasse;
			erro=true;
		 }
	 }
	 else
	 {
		frm.email.className  = nomeClasse;
		erro=true;	 
	 }

	texto = frm.cidade.value;
	if (texto.length < 1) {
		frm.cidade.className  = nomeClasse;
		erro=true;
	}

	texto = frm.cep.value;
	if (texto.length < 1) {
		frm.cep.className  = nomeClasse;
		erro=true;
	}


	texto = frm.ddd01.value;
	if (texto.length < 1) {
		frm.ddd01.className  = nomeClasse;
		erro=true;
	}
	
	texto = frm.numero01.value;
	if (texto.length < 1) {
		frm.numero01.className  = nomeClasse;
		erro=true;
	}

	texto = frm.dia.value;
	if (texto.length < 1) {
		frm.dia.className  = nomeClasse;
		erro=true;
	}
	
	texto = frm.mes.value;
	if (texto.length < 1) {
		frm.mes.className  = nomeClasse;
		erro=true;
	}
	
	texto = frm.ano.value;
	if (texto.length < 1) {
		frm.ano.className  = nomeClasse;
		erro=true;
	}

	texto = frm.formacao.value;
	if (texto.length < 1) {
		frm.formacao.className  = nomeClasse;
		erro=true;
	}
	
	texto = frm.experiencia.value;
	if (texto.length < 1) {
		frm.experiencia.className  = nomeClasse;
		erro=true;
	}
	
	texto = frm.habilidades.value;
	if (texto.length < 1) {
		frm.habilidades.className  = nomeClasse;
		erro=true;
	}
	
	texto = frm.interesse.value;
	if (texto == -1) {
		frm.interesse.className  = nomeClasse;
		erro=true;
	}
	
	 // Verifica se ouve erro
	if (erro == false)
	{
	   frm.submit();
		document.form_trabalhe.reset();						
	} 
	else
	{	
		alert(msgaux);		
    }
}

