<script>
function multiplicar(){
m1 = document.getElementById("valorfiscal").value;
r = (m1*0.06)+123.7;
r2= (m1*0.06)+96.7;
if (document.getElementById('ch1').checked) {
document.getElementById("resultado").value = r2;
}else{
document.getElementById("resultado").value = r;
}
}
</script>
<form id="multiplicar">- Poner el valor fiscal según tablas:
<input type="checkbox" id="ch1" value="1" onchange="multiplicar();"> ¿Es un ciclomotor?
<br>
<input type="text" id="valorfiscal" value=0 onKeyUp="multiplicar();"></p>
- El coste de la transferencia con tasas, honorarios e IVA es: <input type="text" style="font-weight:bold" id="resultado">
</form>