1<script>
 2function TwoSubmit(form){
 3   if(form.Ref[0].checked)
 4   {
 5      form.action="1.jsp"}

 6   else
 7   {
 8      form.action='2.jsp'
 9   }

10   form.submit();
11}

12
</script>