// ArticleList control

// Sets a form element's value and submits the form
function ALSubmitFormValue(as_FormElementName, ak_FormElementValue)
{
	document.forms[0].elements[as_FormElementName].value = ak_FormElementValue;
	document.forms[0].submit();
}

// Sets two form element's values and submits the form
function ALSubmit2FormValues(as_FormElementName1, ak_FormElementValue1, as_FormElementName2, ak_FormElementValue2)
{
	document.forms[0].elements[as_FormElementName1].value = ak_FormElementValue1;
	document.forms[0].elements[as_FormElementName2].value = ak_FormElementValue2;
	document.forms[0].submit();
}

// Show confirmation box for deleting the given article
function ALDeleteArticleConfirm(as_FormElementName, ai_ArticleID, as_Message)
{
	if (confirm(as_Message))
		ALSubmitFormValue(as_FormElementName, ai_ArticleID);
}
