// max. Zeichfolge für Freitext-Feld Kontaktformular   
    var chars_max = 500
    function charcount()
    {
        freitext = document.getElementById('Nachricht')
        chars = chars_max - freitext.value.length;
        if (chars == -1)
             chars = '<strong>'+0+'</strong>';
        document.getElementById('charcount').innerHTML = '('+ chars + ' Zeichen verbleiben)'

        if (freitext.value.length >= chars_max )
            freitext.value = freitext.value.substring(0,chars_max)

    }
