infdj.com_2001/otros/financiar.htm
2021-09-12 22:40:30 +02:00

104 lines
3.8 KiB
HTML

<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<title>¨`·._ www.infdj.com _.·´¨</title>
<script language="JavaScript"><!--
function calculate()
{
var mensualidad, MegaCadena;
var IE4 = document.all ? 1 : 0;
var NC4 = document.layer ? 1 : 0;
mensualidad = this.financiar.importe.value * this.financiar.periodo.value
if ( mensualidad < 5900 )
{
MegaCadena = "denegado";
} else {
MegaCadena = FormatNumber( Math.round(mensualidad).toString() );
}
if ( IE4 ) this.document.all.prod.innerHTML = MegaCadena;
if ( NC4 ) this.document.layers.prodn.innerHTML = MegaCadena;
}
function FormatNumber(n)
{
var t = "";
var i, j = 0;
for (i = n.length - 1; i >= 0; i--) {
t = n.charAt(i) + t;
if (i && ((++j % 3) == 0))
t = "." + t;
}
return t;
}
// --></script>
</head>
<body bgcolor="#48F2B3" topmargin="1" leftmargin="1">
<form name="financiar" onsubmit="return false;">
<table border="2" cellpadding="0" cellspacing="3"
bordercolor="#48F2B3" bordercolordark="#0AE08F"
bordercolorlight="#B6FAE0">
<tr>
<td align="center" bgcolor="#48F2B3"
bordercolordark="#48F2B3" bordercolorlight="#48F2B3"><font
face="Arial Black">Financiamos su operación:</font></td>
</tr>
<tr>
<td><table border="2" cellpadding="4" cellspacing="1"
width="100%" bgcolor="#000000"
bordercolordark="#B6FAE0" bordercolorlight="#0AE08F">
<tr>
<td width="100%" bgcolor="#000080"><font
color="#FFFFFF" face="Arial Narrow">Importe a
financiár:</font><font color="#FFFFFF"> </font></td>
<td bgcolor="#000080"><!--webbot
bot="Validation" s-data-type="Number"
s-number-separators=",."
s-validation-constraint="Greater than or equal to"
s-validation-value="0" --><input type="text"
size="10" name="importe"
onchange="calculate()"></td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF"><font
color="#000000" face="Arial Narrow">Duración
de la operación:</font><font color="#000000">
</font></td>
<td bgcolor="#000000"><select name="periodo"
size="1" onchange="calculate()">
<option value="0.343213">3 meses</option>
<option value="0.174804">6 meses</option>
<option value="0.119012">9 meses</option>
<option value="0.090901">12 meses</option>
<option value="0.074612">15 meses</option>
<option value="0.063306">18 meses</option>
<option value="0.049203">24 meses</option>
<option value="0.041108">30 meses</option>
<option value="0.035467">36 meses</option>
<option value="0.028726">48 meses</option>
</select></td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF"><font
face="Arial Narrow">Cantidad Mensual:</font> </td>
<td bgcolor="#000000"><font
face="Arial Black" color="#FFFFFF"><div id=prod align="right" ></div>
<layer ID=prodn></layer></font>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>