var article = {
	chk_all_comments: function() {
		$("input", "div.Comment2").each(function() {
			this.checked=true;
		});
	},

	del_sel_comments: function() {
		if (confirm("Are sure you want to delete these comments?")) {
			document.forms["del_comments"].submit();
		}
	},

	show_comments: function() {
		$("div.Comment2").show();
	},

	toggle_profanity: function() {
		var profanity=$("#Comments").attr("profanity");
		if (profanity=="on") {
			profanity="off";
		} else {
			profanity="on";
		}

		if (window.location.search!="") {
			self.location=window.location+"&profanity="+profanity;
		} else {
			self.location=window.location+"?profanity="+profanity;
		}
	},

	show_edit_comment: function() {
		$(".postCommentForm").toggle();
		$("textarea", ".postCommentForm").focus();
	}
}