// JavaScript Document
var CommentBox = 
{
	init: function()
	{
		//start watching to make sure they don't use up the max amount of characters
		Event.observe('CommentBox', 'keydown', function(event)
		{
			if(this.value.length > 250)
				this.value = this.value.substr(0, 250);
				
			$('CharsLeft').update(250 - this.value.length + " Characters Left");
		});
		
		Event.observe('CommentBox', 'keyup', function(event)
		{
			if(this.value.length > 250)
				this.value = this.value.substr(0, 250);
				
			$('CharsLeft').update(250 - this.value.length + " Characters Left");
		});
	}
};