
var comment_rules = {
	'#warea_body': function (el) {
	  warea.create('comment', 2048);
	},
	
	'#comment_form': function (el) {
		el.onsubmit = function () {
		  $('warea_submit').style.display = 'none';
      $('warea_body').value = warea.source();
      $('body_length').value = eval(warea.sourceText().length);
		}
	},
	
	'#content #cleft textarea': function(e) {
	  Counters.bind(e, 2048);
	}
};

Behaviour.register(comment_rules);
