var timeout=document.getElementById("timeout").value;

解决方案 »

  1.   

    你改成这样就可以了:
    var timeout=(document.form.timeout[0].checked)?document.form.timeout[0].value:document.form.timeout[1].value;document.form.timeout获取的是包含两个radio的数组
      

  2.   

    把二个的ID改成下面这个,再把return check()改成test就行.不知道是不是你要的结果 
    <script language="javascript">
    function test()
    {
     if(document.getElementById("rt1").checked=="")
     {
     alert(document.getElementById("rt2").value);
     }
     else
     {
     alert(document.getElementById("rt1").value);
     }
    }
    </script>