function radioValue(radioButton)
{
    for (x = 0; x <= radioButton.length; x++)
    {
        if (radioButton[x].checked == true) return radioButton[x].value; 
    } 
         // if it didnt find anything, return the .value  (behaviour of single radio btn)
        return radioButton.value;
}

function testConfirm() {
x = radiovalue(document.test.A);
if (x == '') {alert("Pasirinkite atsakymą !");return false;}
else {return true;}
}