﻿// ArticleLinks control

// Sets a form element's value and submits the form
function ALKSubmitFormValue(as_FormElementName, ak_FormElementValue)
{
	document.forms[0].elements[as_FormElementName].value = ak_FormElementValue;
	document.forms[0].submit();
}

// Show confirmation box for deleting the given article
function ALKDeleteConfirm(as_FormElementName, ai_ArticleID, as_Message)
{
	if (confirm(as_Message))
		ASISubmitFormValue(as_FormElementName, ai_ArticleID);
}
