function limitCharacters(self, limit, info) {
    var text = $(self).val();
    var len = text.length;
    if (len > limit) {
        $("#" + info).html("You cannot write more than " + limit + " characters!");
        $("#" + id).val(text.substr(0, limit));
        return false;
    } else {
        $("#" + info).html("You have " + (limit - len) + " characters left.");
        return true;
    }
}
