function toggle_commentreply(commentID, blockID, sectionID)
{
// предварительно скрыть элемент с class=nodrop и с id=comment_form_table

	$("input.replyto").show();
	$("#replyto"+commentID).hide();

	$("#commentreplyto"+commentID).load("/ajax/commentmanager.php", { action: "showform", commentid: commentID, blockid: blockID, sectionid: sectionID },
			function()
			{
		     $("#comment_form_div").hide();
             $("div.nodrop").hide();
		     $("#commentreplyto"+commentID).show();
			}
	  );
}

function load_comment_page(div_id, articleid, blockid, sectionid, start_from)
{
	$("#"+div_id).load("/ajax/commentmanager.php",
			{
		     action: "reloadblock",
		     articleid: articleid,
		     blockid: blockid,
		     sectionid: sectionid,
		     beg: start_from
		    }
	);
}

function close_commentreply()
{
  $(".commentformcontainer").slideToggle();
  return false;
}



function commentdel(commentID, articleID, blockID)
{
 	$("#commentlist").load("/ajax/commentmanager.php", { action: "commentdel", commentid: commentID, articleid: articleID, blockid: blockID }  );
}

function commentmoderate(commentID, articleID, blockID)
{
    $("#commentlist").load("/ajax/commentmanager.php", { action: "commentmoderate", commentid: commentID, articleid: articleID, blockid: blockID }  );
}

