Totaling columns on a variable input html table
<p>I have a table that has variable input fields of data that are brought up when specific data is searched, ultimately it is the view of cash registers and their amount of cash and credit that has been pulled throughout the day. I really need to be able to total the data that is brought up each time a search is preformed, this would be the total of the columns. Also I need to find the difference in each row. (Sometimes that amount of cash that should be in each drawer is not exactly what each cashier actually puts in the drawer, usually there is a couple cents difference.)So I need to calculate that also. If you go to this link you will see exactly what my table looks like and what I am trying to do. <a href="http://64.92.143.227/monee/cash.html" rel="nofollow">http://64.92.143.227/monee/cash.html</a>
I have tried multiple javascript codes from this site and I cant seem to get any to work. I am new at javascript so any help would be great! Thank you!</p>

<p>Here is the code for the table:
         </p>

<pre><code>               &lt;tr&gt;
               &lt;th&gt; &lt;/th&gt;
               &lt;th&gt;STATUS &lt;/th&gt;
               &lt;th&gt;QTY &lt;/th&gt;
               &lt;th&gt;COUNT &lt;/th&gt;

               &lt;th&gt;+/- &lt;/th&gt;

            &lt;/tr&gt;
                     &lt;tr&gt;&lt;td&gt;CASH &lt;/td&gt;&lt;td&gt;
                              &lt;div class="tleft"&gt;&lt;/div&gt;
                              &lt;input style="width: 100px;height: 17px;" id="cash_in"  value=""/&gt;
                              &lt;/td&gt;
                              &lt;td&gt;
                              &lt;div class="tleft"&gt;&lt;input style="width: 100px;height: 17px;"
     id="no_cash"  value=""/&gt;&lt;/div&gt;
                              &lt;/td&gt;

                              &lt;td&gt;
                              &lt;div class="tleft"&gt;&lt;input style="width: 100px;height: 17px;"
 id="cash_count" value=""/&gt;&lt;/div&gt;
                              &lt;/td&gt;
                              &lt;td&gt;
                              &lt;div class="tleft"&gt;&lt;input style="width: 100px;height: 17px;" 
id="ttl_cash" value=""/&gt;&lt;/div&gt;
                              &lt;/td&gt;&lt;/tr&gt;
                     &lt;tr&gt;&lt;td&gt;CHECK &lt;/td&gt;&lt;td&gt;
                              &lt;div class="tleft"&gt;&lt;/div&gt;

                             &lt;input style="width: 100px;height: 17px;" id="check_in" value=""/&gt;

                             &lt;/td&gt;
                              &lt;td&gt;
                              &lt;div class="tleft"&gt;&lt;input style="width: 100px;height:  
17px;"id="no_checks " value=""/&gt;&lt;/div&gt;
                              &lt;/td&gt;
                              &lt;td&gt;
                              &lt;div class="tleft"&gt;&lt;input style="width: 100px;height: 17px;" 
id="check_count" value=""/&gt;&lt;/div&gt;
                              &lt;/td&gt;

                              &lt;td&gt;
                              &lt;div class="tleft"&gt;&lt;input style="width: 100px;height: 17px;" 
id="ttl_check" value=""/&gt;&lt;/div&gt;

                          &lt;/td&gt;
                          &lt;/tr&gt;
                 &lt;tr&gt;&lt;td&gt;CHARGE &lt;/td&gt;&lt;td&gt;
                          &lt;div class="tleft"&gt;&lt;/div&gt;&lt;input style="width: 100px;height: 17px;" id="credit_in" value="" OnTextChanged="javascript:calc()"/&gt;
                          &lt;/td&gt;
                          &lt;td&gt;

                          &lt;div class="tleft"&gt;&lt;input style="width: 100px;height: 17px;" id="no_charge" value=""/&gt;&lt;/div&gt;
                          &lt;/td&gt;

                          &lt;td&gt;
                          &lt;div class="tleft"&gt;&lt;input style="width: 100px;height: 17px;" id="charge_count" value=""/&gt;&lt;/div&gt;
                          &lt;/td&gt;
                          &lt;td&gt;
                          &lt;div class="tleft"&gt;&lt;input style="width: 100px;height: 17px;" id="ttl_charge" value=""/&gt;&lt;/div&gt;
                          &lt;/td&gt;

                          &lt;/tr&gt;
                 &lt;tr&gt;&lt;td&gt;ACCOUNT &lt;/td&gt;&lt;td&gt;

                          &lt;div class="tleft"&gt;&lt;input style="width: 100px;height: 17px;" id="voucher_in" value=""/&gt;&lt;/div&gt;
                          &lt;/td&gt;
                          &lt;td&gt;
                          &lt;div class="tleft"&gt;&lt;input style="width: 100px;height: 17px;" id="no_voucher" value=""/&gt;&lt;/div&gt;
                          &lt;/td&gt;
                          &lt;td&gt;

                          &lt;div class="tleft"&gt;&lt;input style="width: 100px;height: 17px;" id="voucher_count" value=""/&gt;&lt;/div&gt;
                          &lt;/td&gt;
                          &lt;td&gt;

                          &lt;div class="tleft"&gt;&lt;input style="width: 100px;height: 17px;" id="ttl_account" value=""/&gt;&lt;/div&gt;
                          &lt;/td&gt;
                          &lt;/tr&gt;
                 &lt;tr&gt;&lt;td&gt;GIFT CERT &lt;/td&gt;&lt;td&gt;
                          &lt;div class="tleft"&gt;&lt;input style="width: 100px;height: 17px;" id="tender6_in" value=""/&gt;&lt;/div&gt;

                          &lt;/td&gt;
                          &lt;td&gt;
                          &lt;div class="tleft"&gt;&lt;input style="width: 100px;height: 17px;" id="no_tender6" value=""/&gt;&lt;/div&gt;

                          &lt;/td&gt;
                          &lt;td&gt;
                          &lt;div class="tleft"&gt;&lt;input style="width: 100px;height: 17px;" id="tender6_count" value=""/&gt;&lt;/div&gt;
                          &lt;/td&gt;
                          &lt;td&gt;

                          &lt;div class="tleft"&gt;&lt;input style="width: 100px;height: 17px;" id="ttl_giftcert" value=""/&gt;&lt;/div&gt;
                          &lt;/td&gt;
                          &lt;/tr&gt;
                 &lt;tr&gt;&lt;td&gt;BUYBACK &lt;/td&gt;&lt;td&gt;

                          &lt;div class="tleft"&gt;&lt;input style="width: 100px;height: 17px;" id="buyback_in" value=""/&gt;&lt;/div&gt;
                          &lt;/td&gt;
                          &lt;td&gt;
                          &lt;div class="tleft"&gt;&lt;input style="width: 100px;height: 17px;" id="no_buyback" value=""/&gt;&lt;/div&gt;

                          &lt;/td&gt;
                          &lt;td&gt;
                          &lt;div class="tleft"&gt;&lt;input style="width: 100px;height: 17px;" id="buyback_count" value=""/&gt;&lt;/div&gt;
                          &lt;/td&gt;
                          &lt;td&gt;

                          &lt;div class="tleft"&gt;&lt;input style="width: 100px;height: 17px;" id="ttl_buyback" value=""/&gt;&lt;/div&gt;
                          &lt;/td&gt;
                          &lt;/tr&gt;

                 &lt;tr&gt;&lt;td&gt;CASH CARD &lt;/td&gt;&lt;td&gt;
                          &lt;div class="tleft"&gt;&lt;input style="width: 100px;height: 17px;" id="csh_card_in" value=""/&gt;&lt;/div&gt;
                          &lt;/td&gt;
                          &lt;td&gt;
                          &lt;div class="tleft"&gt;&lt;input style="width: 100px;height: 17px;" id="no_csh_card" value=""/&gt;&lt;/div&gt;

                          &lt;/td&gt;
                          &lt;td&gt;
                          &lt;div class="tleft"&gt;&lt;input style="width: 100px;height: 17px;" id="csh_card_count" value=""/&gt;&lt;/div&gt;

                          &lt;/td&gt;
                          &lt;td&gt;
                          &lt;div class="tleft"&gt;&lt;input style="width: 100px;height: 17px;" id="ttl_csh_card" value=""/&gt;&lt;/div&gt;
                          &lt;/td&gt;
                          &lt;/tr&gt;
                 &lt;tr&gt;&lt;td&gt;TOTAL &lt;/td&gt;&lt;td&gt;

                          &lt;div class="tleft"&gt;&lt;/div&gt;
                         &lt;input style="width: 100px;height: 17px;" id="ttl_status;" value=""/&gt;

                          &lt;/td&gt;
                          &lt;td&gt;
                          &lt;div class="tleft"&gt;&lt;input style="width: 100px;height: 17px;" id="ttl_qty" value=""/&gt;&lt;/div&gt;
                          &lt;/td&gt;
                          &lt;td&gt;
                          &lt;div class="tleft"&gt;&lt;input style="width: 100px;height: 17px;" id="ttl_count" value=""/&gt;&lt;/div&gt;
                          &lt;/td&gt;
                          &lt;td&gt;

                          &lt;div class="tleft"&gt;&lt;input style="width: 100px;height: 17px;" id="ttl_ttl" value=""/&gt;&lt;/div&gt;
                          &lt;/td&gt;
                          &lt;/tr&gt;
                       &lt;/table&gt;
</code></pre>
