function doPost(formName, actionName)
{
    var hiddenControl = document.getElementById('action');
    var theForm = document.getElementById(formName);
    
    hiddenControl.value = actionName;
    theForm.submit();
}
