Código PHP:
<input type=text name=div1 onkeyup="total.value = parseFloat(div2.value) / parseFloat(this.value)">
<input type=text name=div2 onkeyup="total.value = parseFloat(div1.value) / parseFloat(this.value)">
<input type=text name=total readonly>
gracias