function processForm(form){
var xf,hc1, hc2, hc3, hc4, hc5, hc6, hc7, hc8, hc9,hc10,hc11,hc12,hc13,hc14,hc15;
xf=hc1=hc2=hc3=hc4=hc5=hc6=hc7=hc8=hc9=hc10=hc11=hc12=hc13=hc14=hc15=0;
//loops through the radio buttons finding out which one is selected
if (form.c1[0].checked==1) hc1=1;
if (form.c2[0].checked==1) hc2=1;
if (form.c3[0].checked==1) hc3=1;
if (form.c4[0].checked==1) hc4=1;
if (form.c5[0].checked==1) hc5=1;
if (form.c6[0].checked==1) hc6=1;
if (form.c7[0].checked==1) hc7=1;
if (form.c8[0].checked==1) hc8=1;
if (form.c9[0].checked==1) hc9=1;
if (form.c10[0].checked==1) hc10=1;
if (form.c11[0].checked==1) hc11=1;
if (form.c12[0].checked==1) hc12=1;
if (form.c13[0].checked==1) hc13=1;
if (form.c14[0].checked==1) hc14=1;
if (form.c15[0].checked==1) hc15=1;
xf=hc1+hc2+hc3+hc4+hc5+hc6+hc7+hc8+hc9+hc10+hc11+hc12+hc13+hc14+hc15;
form.answer.value="你的得分为"+xf+"分";
}