
/* Begin Comments ***************************************/
var comments;

function show_comments() {
	/* Show comments */
	//build comments
	comments.show_comments(false);
	
	var f = objId('comment_form');
	if (f != null) {
		f.style.display = "";
	}
	
	var txt_comment = objId('txt_comment');
	if (txt_comment != null) {
		txt_comment.value = "";
	}
}

function submit_comment(f) {
	return comments.comment_submit(f);
}
/* End Comments *****************************************/

addDOMLoadEvent(function () {
	comments = new Comments(objId('comments_list'),'blog');
	comments.id = id;
	show_comments();
})
