// ArticleStatusInfo control

// Sets a form element's value and submits the form
function ASISubmitFormValue(as_FormElementName, ak_FormElementValue)
{
	document.forms[0].elements[as_FormElementName].value = ak_FormElementValue;
	document.forms[0].submit();
}

// Displays or hides the vote box
function ASIShowVoteBox(ab_Visible)
{
	if (ab_Visible)
	{
		document.getElementById("VotingBoxTbl").style.left = (document.getElementById("VotingTbl").offsetLeft - 50) + "px";
		document.getElementById("VotingBoxTbl").style.display = "inline";
	}
	else
		document.getElementById("VotingBoxTbl").style.display = "none";
}

// Toggles the vote box visibility
function ASIToggleVoteBox()
{
	ASIShowVoteBox(document.getElementById("VotingBoxTbl").style.display == "none");
}

// Show confirmation box for deleting the given attachment
function ASIDeleteConfirm(as_FormElementName, ai_ArticleID, as_Message)
{
	if (confirm(as_Message))
		ASISubmitFormValue(as_FormElementName, ai_ArticleID);
}
