reEmail = /^[\w-]+(\.[\w-]+)*@(([\w-]{2,63}\.)+[A-Za-z]{2,6}|\[\d{1,3}(\.\d{1,3}){3}\])$/;
function Validator(theForm){
	if(theForm.nome.value == ""){
		alert("O campo Nome: está em branco.");
		theForm.nome.focus();
		return false;
	}
	if(theForm.nome.value.length < 3){
		alert("Nome inválido.");
		theForm.nome.focus();
		return false;
	}
	if(theForm.email.value == "") {
		alert("O campo \"E-mail:\" está em branco.");
		theForm.email.focus();
		return false;
	}
	if(!reEmail.test(theForm.email.value)) {
		alert("E-mail \"inválido\".");
		theForm.email.focus();
		return false;
	}
	if(theForm.endereco.value == ""){
		alert("O campo Endereco: está em branco.");
		theForm.endereco.focus();
		return false;
	}
	if(theForm.endereco.value.length < 5){
		alert("Endereco inválido.");
		theForm.endereco.focus();
		return false;
	}
	if(theForm.cidade.value == "") {
		alert("O campo Cidade: está em branco.");
		theForm.cidade.focus();
		return false;
	}
	if(theForm.cidade.value.length < 3){
		alert("Cidade inválida.");
		theForm.cidade.focus();
		return false;
	}
	if(theForm.cep.value == ""){
		alert("O campo Cep: está em branco.");
		theForm.cep.focus();
		return false;
	}
	if(theForm.cep.value.length < 8){
		alert("Cep inválido.");
		theForm.cep.focus();
		return false;
	}
	return true;
}


function ValidatorTrabalheConosco(theForm){
	if (theForm.nome.value == ""){
		alert("O campo Nome: está em branco.");
		theForm.nome.focus();
		return false;
	}
	if (theForm.nome.value.length < 3){
		alert("Nome inválido.");
		theForm.nome.focus();
		return false;
	}
	
	if (theForm.estado_civil.value == ""){
		alert("O campo Estado Civil: está em branco.");
		theForm.estado_civil.focus();
		return false;
	}
	
	if (theForm.idade.value == ""){
		alert("O campo Idade: está em branco.");
		theForm.idade.focus();
		return false;
	}
	
	if (theForm.endereco.value == ""){
		alert("O campo Endereco: está em branco.");
		theForm.endereco.focus();
		return false;
	}
	if (theForm.endereco.value.length < 5){
		alert("Endereco inválido.");
		theForm.endereco.focus();
		return false;
	}
	
	if (theForm.cidade.value == "") {
		alert("O campo Cidade: está em branco.");
		theForm.cidade.focus();
		return false;
	}
	if (theForm.cidade.value.length < 3){
		alert("Cidade inválida.");
		theForm.cidade.focus();
		return false;
	}
	
	if (theForm.estado.value == ""){
		alert("O campo Estado: está em branco.");
		theForm.estado.focus();
		return false;
	}		
	
	if (theForm.email.value == "") {
		alert("O campo \"E-mail:\" está em branco.");
		theForm.email.focus();
		return false;
	}
	if (!reEmail.test(theForm.email.value.length)) {
		alert("E-mail \"inválido\".");
		theForm.email.focus();
		return false;
	}
	return true;
}
