// ArticleComments control

// Sets a form element's value and submits the form
function ACSubmitFormValue(as_FormElementName, ak_FormElementValue)
{
	document.forms[0].elements[as_FormElementName].value = ak_FormElementValue;
	document.forms[0].submit();
}

// Show confirmation box for deleting the given comment
function ACDeleteCommentConfirm(as_FormElementName, ai_CommentID, as_Message)
{
	if (confirm(as_Message))
		ACSubmitFormValue(as_FormElementName, ai_CommentID);
}
