optformapago = document.form1.RadioISR.value ; document.form1.optpago.value = document.form1.RadioISR.value ; txtvalorcargo = document.form1.debito.value + document.form1.credito.value ; v1 = 0 v2 = 0 v1 = (txtvalorcargo * document.form1.tasainteres.value)/100 v2 = v1*document.form1.meses.value document.form1.txttotinteres.value = v2 if (optformapago == 1) { document.form1.txtcantcuota.value = document.form1.meses.value; document.form1.txttotgral.Value = txtvalorcargo + document.form1.txttotinteres.Value document.form1.txtinterespago.Value = document.form1.txttotinteres.Value / document.form1.txtcantcuota.Value } if (optformapago == 2) { document.form1.txtcantcuota.value = (document.form1.meses.value/2); document.form1.txttotgral.Value = txtvalorcargo + document.form1.txttotinteres.Value document.form1.txtinterespago.Value = document.form1.txttotinteres.Value / document.form1.txtcantcuota.Value } if (optformapago == 3) { document.form1.txtcantcuota.value = document.form1.semanas.value; document.form1.txttotgral.Value = txtvalorcargo + document.form1.txttotinteres.Value document.form1.txtinterespago.Value = document.form1.txttotinteres.Value / document.form1.txtcantcuota.Value } if (optformapago == 4) { document.form1.txtcantcuota.value = document.form1.dias.value; document.form1.txttotgral.Value = txtvalorcargo + document.form1.txttotinteres.Value document.form1.txtinterespago.Value = document.form1.txttotinteres.Value / document.form1.txtcantcuota.Value } if (document.form1.txttasainteres.Value > 0) { document.form1.txtvlorcuota.Value = document.form1.txttotgral.Value / document.form1.txtcantcuota.Value document.form1.txtcapitalpago.Value = document.form1.txtvlorcuota.Value - document.form1.txtinterespago.Value } if (document.form1.txttasainteres.Value = 0) { document.form1.txtvlorcuota.Value = document.form1.txttotgral.Value / document.form1.txtcantcuota.Value document.form1.txtcapitalpago.Value = document.form1.txtvlorcuota.Value - document.form1.txtinterespago.Value }