function for Calculating sum of values in row and coloms of html table

0
0
0
0
0 0 0 0 0 0

..