//Edit the counter/limiter value as your wish
var count = "500";   //Example: var count = "175";
function limiter(){
var tex = document.gbentry.Comments.value;
var len = tex.length;
if(len > count){
        tex = tex.substring(0,count);
        document.gbentry.Comments.value =tex;
        return false;
}
document.gbentry.tblimit.value = count-len;
}