get one of the field value checkbox with multiple value in javascript
<p>This is the checkbox code that I have :</p>

<p><code>echo "&lt;input  type='checkbox' name='pilx[]' value='$dt_item[KodeCust];$dt_item[NoTransaksi];".round($saldoakhir).";' onclick='clickCh(this)' &gt;";</code></p>

<p>The values will look like this   </p>

<pre><code>P3004;KCP/3409;310000
P3009;KCP/3409;590000
P3001;KCP/3409;399000

var TOTAL = document.getElementById("TOTAL") 
function clickCh(caller)
{  
  if(caller.checked){
     add(caller)
  } else {
     subtract(caller)
  }
}
function add(caller)
{
   TOTALPIUTANG.value = TOTAL.value*1 + caller.value*1;
}
function subtract(caller)
{
 TOTALPIUTANG.value = TOTAL.value*1 - caller.value*1;
}
</code></pre>

<p>The script only works with one value.
Any suggestion how to sum only the third value (310000+590000+399000)?</p>
