<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">
<head>
<title>blank</title>
<script type="text/javascript">
function Itog(elem) {
var inputs = elem.parentNode.getElementsByTagName('input');
inputs[2].value = parseFloat(inputs[0].value) * parseFloat(inputs[1].value);
}
</script>
</head>
<body>
<div>
<input onkeyup="Itog(this);" type="text" value="" />
<input onkeyup="Itog(this);" type="text" value="" />
<input type="text" value="" disabled="disabled" />
</div>
<div>
<input onkeyup="Itog(this);" type="text" value="" />
<input onkeyup="Itog(this);" type="text" value="" />
<input type="text" value="" disabled="disabled" />
</div>
</body>
</html>