CommentValidation								= {
	init:function() {
		var eForm								= document.getElementById('frmComment');
		if (!eForm) {
			return false;
		}
		eForm.onsubmit							= function() {return CommentValidation.validate();};
	},
	
	validate:function() {
		var bPassed								= true;
		
		// have they provided a comment?
		var eBody								= document.getElementById('sBody');
		if (!FormUtils.checkLength(eBody, 1)) {
			bPassed								= false;
			FormUtils.showError("sBodyHelper", "You must provide a comment");
		}
		else {
			FormUtils.hideError("sBodyHelper");
		}
		
		return bPassed;
	}
};

WindowListener.add("load","CommentValidation.init()");