function setInputValueText(obj,msg){
    obj.value = msg;
}

function validateSearch(formObj,msgErro){
    ///alert(formObj.search.value.length + ", " + msgErro);
    if(formObj.search.value.length < 3 || formObj.search.value == "Buscar" ){
        alert(msgErro);
        return false;
    }
    return true;
}

function submitSearch(formObj,msgErro){
    if( validateSearch(formObj,msgErro) ){
        formObj.submit();
    }
}

function trocarTipoContato(tipo,imgObj){
    for(i=1;i<=5;i++){
        if(tipo==i){
            document.getElementById("imgSeta_"+i).src = "images/seta.jpg";
            document.forms["ContactForm"].tipo.value = tipo;
        }
        else{
            document.getElementById("imgSeta_"+i).src = "images/seta_branca.jpg";
        }
    }
}

function showDiv(div){
    document.getElementById(div).style.display = "";
}

function hideDiv(div){
    
    document.getElementById(div).style.display = "none";
}
