function DoCharCount(sFormNameInput, sFormNameOutput)
{	if (document.getElementById(sFormNameOutput) && document.forms[0])
		document.getElementById(sFormNameOutput).innerHTML = document.forms[0].elements[sFormNameInput].value.length;
}

function Toggle(sId)
{   if (document.getElementById(sId).style.display == "none")
			document.getElementById(sId).style.display = "block";
	else	document.getElementById(sId).style.display = "none";
}

function SubmitForm(sItemCommand, sItemId)
{   document.forms[0].elements["sItemCommand"].value = sItemCommand;
	document.forms[0].elements["sItemId"].value = sItemId;
	document.forms[0].submit();
}
