First, this is not JSP; this is JavaScript.
Second, this will have the form submitted twice.
Third, to prevent you form from being resubmitted, you need to change 
function check1(form) { 
         if (form.patient_id_1.value == "") { 
             //... 
         } 
         form.submit(); 
     } 
to: 
function check1(form) { 
         if (form.patient_id_1.value == "") { 
             //...         } 
         form.submit(); 
         return false;
     } 
that is, add "return false;" explicitly in your form check function.
【 在 bjhbycthc (流水) 的大作中提到: 】
: 以前没有开发过JSP的程序,属于菜鸟级别,请各位大牛帮忙。 
: <SCRIPT language=javascript> 
:      function check1(form) { 
: ...................
--
FROM 183.95.135.*