Sumary: I am looking for away to add two seperate getElementbyId and a submit button to an If Statment in order to make it run.
HTML Example:
<form>
  <div>
    <fieldset id="group1">
      <input type="radio" name="type" id="h" value="1111" onclick="func2();" />0 Human</br>
      <input type="radio" name="type" id="r" value="2222" onclick="func2();" />1 Robot</br>
      <input type="radio" name="type" id="a" value="3333" onclick="func2();" />2 Animal</br>
    </fieldset>
  </div>
  <div>
    <fieldset id="group2">
      <input type="radio" name="type" id="c" value="1111" onclick="func2();" />4 Jerry</br>
      <input type="radio" name="type" id="b" value="2222" onclick="func2();" />5 Xr10Zbot</br>
      <input type="radio" name="type" id="z" value="3333" onclick="func2();" />6 Girrafe</br>
    </fieldset>
    <p><input style="width: 60px;" type="submit" name="type" id="f" class="7" value="submit" onclick="func()2;" /></p </div>
</form>JavaScript Example:
 <script>
    function func2()
            {
                if(document.getElementById("h").checked) 
// I want for the if statment to require you to also have to check c and click submit to run
                {
                    var val = document.getElementById("h").value;
                    alert(val);
                }
                else if(document.getElementById("r").checked)
                {
                    var val = document.getElementById("r").value;
                    alert(val);
                }
                else if(document.getElementById("a").checked)
                {
                    var val = document.getElementById("a").value;
                    alert(val);
                }
            }
        </script>
What I need the if statment to run:
Make it to wher you have to click two radio buttons and submit to run the alert
if(document.getElementById("h").checked) + (document.getElementById("c").checked) + (document.getElementById("f")) 
 
    