window.onload = function() {
    jQuery("#submit").attr("disabled", true);
    jQuery("#comment").keyup(function() {
	var hasText = jQuery("#comment").val().length > 0;
	jQuery("#submit").attr("disabled", !hasText);
	jQuery("#nocommenthint").css("visibility", hasText ? "hidden" : "visible");
    });
}

