function bor_color(na){
   if(document.form1.na.checked==true){ 
       document.form1.na.style.border="1px solid red";
   }
   else{
       document.form1.na.style.border="1px solid blud";
   }
}
//=====================================================//
<td ><input type="checkbox" style="border : 1px none blue; " name="d{$i}"  value="{$record_2[0]}" onClick=" return bor_color(this.name);" /></td>试拉好多种写法,都没有出来。对JAVA不熟, 请大家帮帮忙。得到的na值怎么才起作用?