var sum1 =0;
var sum2 =0;
var sum3 =0;
var sum4 =0;
var sum5 =0;
var sum6 =0;
var sum7 =0;
var sum8 =0;
var sum9 =0;
var sum10 =0;
var sum11 =0;
var sum12 =0;
var arraysum = new Array(sum1,sum2,sum3,sum4,sum5,sum6,sum7,sum8,sum9,sum10,sum11,sum12); //创建一个数组并赋值
for( i=2;i < obj.rows.length-1 ; i++)
{
var sum = 0;
for(j=1;j<obj.rows.cells.length;j++)
{
sum = obj.rows.cells[j].innerHTML;
arraysum[j]+=parseFloat(sum);
}
}