var Blog = new Object(); 
function InitBlog()
{ 
	Blog.CommentLengthLimit = parseInt($("CharactersLeft").innerHTML); 
	Event.observe($("CommentTextArea"), "keyup", CheckCommentLength);
}
; 
function CheckCommentLength()
{ 	
	if ($F("CommentTextArea").length > Blog.CommentLengthLimit)
	{ 
		alert("You have exceeded the length limit for your comment.\n\nYou must limit your comment to " + Blog.CommentLengthLimit + " characters.");
		$("CommentTextArea").value = $F("CommentTextArea").substring(0, Blog.CommentLengthLimit);
	}
	$("CharactersLeft").innerHTML = Blog.CommentLengthLimit - $F("CommentTextArea").length;
}
; 

