<form method="POST" action="">
<table>
<tr><td>Введите числа A:</td>
<td><input type="text" name="a" id="a" /></td></tr>
<tr><td>Введите числа B:</td>
<td><input type="text" name="b" id="b" /></td></tr>
<tr><td>Произведение A*B:</td>
<td name="result" id="result1"></td></tr>
<tr><td>Введите числа C:</td>
<td><input type="text" name="c" id="c" /></td></tr>
<tr><td>Введите числа D:</td>
<td><input type="text" name="d" id="d" /></td></tr>
<tr><td>Сумма C+D:</td>
<td name="result2" id="result"></td></tr>
</table>
<input type="button" name="button" id="button" onclick="kalk()" value="Считать" />
</form>
function kalk(){
var n1=document.getElementById('a').value
var n2=document.getElementById('b').value
var n3=document.getElementById('c').value
var n4=document.getElementById('d').value
n1=parseFloat(n1)
n2=parseFloat(n2)
n1=parseFloat(n3)
n2=parseFloat(n4)
var r=0
r1=n1*n2
r2=n3+n4
document.getElementById("result1").value=r1
document.getElementById("result2").value=r2
}