constCurrentAction = "CurrentAction";
function SetCurrentAction(valueToSet)
{
    elements = document.getElementsByName(constCurrentAction);
    for(i = 0; i < elements.length; i++) 
    {
        elements[i].value = valueToSet;
    }
}


/*Event.observe(window, 'load', function(event) {

    $A(document.getElementsByTagName("form")).each(function(currentForm){
        var input = document.createElement("input");
        input.setAttribute("type", "hidden");
        input.setAttribute("name", constCurrentAction);
        input.setAttribute("id", constCurrentAction);
        input.setAttribute("value", "");

        currentForm.appendChild(input);
    }
    );
});*/
