I tried it, but on the first iitem it works correctly, but on the second Item it did not work the result from 10 * .92 = 9.2 but the result from my code is 920 
Code:
<script type="text/javascript">
function test_(cmpd) {
var len_ = (document.frmMain.elements.length) - 1;
// alert(cmpd)
for (i=0; i <= len_; i++ ) {
// alert(document.frmMain.elements[i].id.substr(2,3));
//var count_ = len_;
//var dash_ = count_.count('-');
//alert (len_);
var strPos_ = document.frmMain.elements[i].id.indexOf(cmpd)
//if (document.frmMain.elements[i].id.substr(2,3) == cmpd ) {
if (strPos_ != -1) {
var strPos = document.frmMain.elements[i].id.indexOf("_");
var strId = document.frmMain.elements[i].id.slice(strPos + 1) + "_" + document.frmMain.elements[i].id.slice(0,strPos)
// document.frmMain.elements[i].value = document.getElementById(strId).value * document.getElementById('mult').value;
document.frmMain.elements[i].value = Math.round((document.getElementById(strId).value * document.getElementById('DemandedQty').value) * 100 ) / 100;
}
}
}
</script>
Thank you
Bookmarks