﻿function contacaracteres(campo, idLabel) {
    var max = 180;
    var retornar = true;
    var str = document.getElementById(campo).value;

    if (str.length > max) {
        document.getElementById(campo).value = str.substring(0, max);
        retornar = false;
    }

    document.getElementById(idLabel).innerText = '(' + (max - str.length) + " Caracteres restantes)";

    return retornar;
}

function topo() {
    document.location.href = "#";
}

function desabilitarnavegacao() {
    document.getElementById('navegacao').style.visibility = 'hidden';
    topo();
}
