function validarBusca(form) {    
    
    if($.trim(form.search.value) == "" || $.trim(form.search.value) == "Clique aqui e busque os produtos") {
        alert("Preencha o campo busca");
        form.search.focus();
        return false;
    }
}

function validaContato(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("E-mail inválido");
        form.email.focus();
        return false;
    }
    if (!$.trim(form.assunto.value)){
        alert("Selecione um assunto");
        form.assunto.focus();
        return false;
    }
    if (!$.trim(form.telefone.value)){
        alert("Preencha o campo telefone");
        form.telefone.focus();
        return false;
    }
    if (!$.trim(form.cidade.value)){
        alert("Preencha o campo cidade");
        form.cidade.focus();
        return false;
    }
    if (!$.trim(form.mensagem.value)){
        alert("Preencha o campo mensagem");
        form.mensagem.focus();
        return false;
    }
    
}
