Comment = function(form)
{
    form.addEvent("submit", this.validate.handler(this));
    this.form = form;
};

Comment.prototype = 
{
    form: null,
    
    validate: function(event)
    {
        if(this.form.pseudo.value == "" || this.form.text.value == "")
        {
            alert("Please, fill in the fields Nick and Description of comment.");

            event.preventDefault();
            return false;
        }

    }
}
