<script>
window.onload = function(){
var ins = document.getElementById('RecountForm').getElementsByTagName('input'),
i = 0;
for(i; i < ins.length; i++){
result = ins[i].value * ins[i].parentNode.previousSibling.innerHTML;
ins[i].parentNode.nextSibling.innerHTML = result;
ins[i].onkeyup = function(){
result = this.value * this.parentNode.previousSibling.innerHTML;
this.parentNode.nextSibling.innerHTML = result;
}
}
}
</script>
</head>
<body>
<form id="RecountForm">
<table>
<tr><th>Базовая Цена</th> <th>Наценка</th> <th>Цена</th> </tr>
<tr><td id="cena1">11</td><td><input id="two1" type="text" value="22"></td><td id="result1"></td></tr>
<tr><td id="cena2">10</td><td><input id="two2" type="text" value="23"></td><td id="result2"></td></tr>
<tr><td id="cena3">15</td><td><input id="two3" type="text" value="24"></td><td id="result3"></td></tr>
<tr><td id="cena4">20</td><td><input id="two4" type="text" value="25"></td><td id="result4"></td></tr>
</table>
</form>