<script language="javascript">
function show(num)
{
  var input; 
  if(num==1)
    {
      input=window.prompt('1','Please type your information');
      alert(input);
    }
  else
    {
      input=window.prompt('2','Please type your information');   
    }
  alert(input);}
</script>
<body>
<input type=radio name='a' value='1' onclick='show(1)'>1
<input type=radio name='a' value='2' onclick='show(2)'>2</body>