    /**
    *    Retuns the value of the selected radio button or FALSE in no is selected
    *    radioName    mixed    the name or nr (n-th elment) of the input
    *    formName    mixed    the name or nr (n-th elment) of the form
    */
    function getRadioValue(radioName, formName) {
        if (!formName) {
            formName = 0;
        }
        var radioButtonOrGroup = document.forms[formName].elements[radioName];
        var value = false;
        if (radioButtonOrGroup.length) { // group
            for (var b = 0; b < radioButtonOrGroup.length; b++) {
                if (radioButtonOrGroup[b].checked) {
                    value = radioButtonOrGroup[b].value;
                }
            }
        }
        else if (radioButtonOrGroup.checked) {
            value = radioButtonOrGroup.value;
        }
        return value;
    }

