function validarBusca(form) {    
    if(!$.trim(form.search.value)) {        
        alert("Preencha o campo busca")
        return false;        
    }
    
    return true;      
}

function validarContato(form) {    
    if(!$.trim(form.nome.value)) {        
        alert("Preencha o campo Nome");
        form.nome.focus();
        return false;        
    }
   
    if(form.email.value.indexOf("@", 0) == -1 || form.email.value.indexOf(".", 0) == -1) {
        alert("Preencha o campo E-mail");
        form.email.focus();
        return false;
    }
	
    if(!$.trim(form.endereco.value)) {
        alert("Preencha o campo Endereço");
        form.endereco.focus();
        return false;        
    }	
    
    if(!$.trim(form.bairro.value)) {
        alert("Preencha o campo Bairro");
        form.bairro.focus();
        return false;        
    }
	
    if(!$.trim(form.cidade.value)) {
        alert("Preencha o campo Cidade");
        form.cidade.focus();
        return false;        
    }	
	
    if(!$.trim(form.estado.value)) {
        alert("Preencha o campo Estado");
        form.estado.focus();
        return false;        
    }	
	
    if(!$.trim(form.cep.value)) {
        alert("Preencha o campo CEP");
        form.cep.focus();
        return false;        
    }	
	
    if(!$.trim(form.convenio.value)) {
        alert("Preencha o campo Convênio");
        form.convenio.focus();
        return false;        
    }	
	
    if(!$.trim(form.atividade.value)) {
        alert("Preencha o campo Atividade");
        form.atividade.focus();
        return false;        
    }	
	
    if(!$.trim(form.empresa.value)) {
        alert("Preencha o campo Empresa");
        form.empresa.focus();
        return false;        
    }	
	
    if(!$.trim(form.cargo.value)) {
        alert("Preencha o campo Cargo");
        form.cargo.focus();
        return false;        
    }		

    if(!$.trim(form.comentarios.value)) {
        alert("Preencha o campo Comentario");
        form.comentarios.focus();
        return false;        
    }		

	
    return true;      
}

function validarContatoAgendamento(form) {    
    
    if(!$.trim(form.nome.value)) {
        alert("Preencha o campo Nome");
        form.nome.focus();
        return false;        
    }
   
    if(form.email.value.indexOf("@", 0) == -1 || form.email.value.indexOf(".", 0) == -1) {
        alert("Preencha o campo E-mail");
        form.email.focus();
        return false;
    }
	
    return true;      
}



