<script  language="JavaScript">  
function  dothecheck()  
{    
if(document.getElementsByName("postvote")[0].checked)  
{  
if(!confirm("确定选1?"))  return false;  
}  
else  if(document.getElementsByName("postvote")[1].checked)  
{  
if(!confirm("确定选2?"))  return false;  
}  
else  
{  
alert("还未选择");  
return false;  
}  
window.location.href="4.asp"  
}  
</script>  
 
<form  action="5.asp"  method="post"    target="framename1"  name="formface"  >  
<input  type="radio"  name="postvote"  value="0"  />1号  
<input  type="radio"  name="postvote"  value="1"  />2号  
<input  type="submit"  name="Submit"  value="OK!"  onclick="return dothecheck()">  
</form>