Cita:
Iniciado por jaronu
postea el codigo del form tambien
aqui va el resto lo anterior era el javascript
Código PHP:
<style type="text/css">
.Estilo2 {
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
.Estilo4 {color: #FFFFFF}
.Estilo7 {color: #000000}
.Estilo9 {font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #000000; }
body {
background-image: url();
}
.Estilo12 {color: #666666}
.Estilo19 {color: #5FAFE0}
.Estilo23 {color: #006699; }
.Estilo28 {font-size: 24px; color: #FF0000; }
.Estilo30 {
font-size: 23px;
color: #FF0000;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></HEAD>
<BODY>
<FORM NAME="calculate" class="Estilo2" FORM ACTION="vercion_imprime.php" METHOD="GET" onsubmit="return validacion()" >
<table width="672" height="627" border="1" cellspacing="0" bordercolor="#000000">
<tr>
<th height="50" colspan="3" align="center" valign="top" bgcolor="#999999" scope="row"> Manual
<label></label>
<label>
<br>
<br>
<input name="borrar" type="reset" class="Estilo2" id="borrar" value="Borrar"></label></th></tr>
<tr>
<th height="30" colspan="3" valign="top" bgcolor="#5FAFE0" scope="row"><p align="left" class="Estilo7">
<label>Nombre<span class="Estilo19">...............................:</span> <input name="cliente" type="text" id="cliente" size="70" />
</label>
</p> </th>
</tr>
<tr>
<th height="24" valign="top" bgcolor="#5FAFE0" scope="row"><span class="Estilo7">Valor Casa<span class="Estilo19">........................:</span> </span></th>
<th height="24" align="left" valign="top" bgcolor="#5FAFE0" scope="row"><span class="Estilo7">
<input name="num0" type="TEXT" value="0" size="11">
</span></th>
<th height="24" align="left" valign="top" bgcolor="#5FAFE0" scope="row"><span class="Estilo7">U.F.<span class="Estilo4 Estilo19">valor uf
</span>
<input name="num4" type="hidden" value="20798,32">
<input name="fac" type="hidden" id="fac">
</span></th>
</tr>
<tr>
<th height="12" colspan="3" valign="top" bgcolor="#5FAFE0" scope="row"><span class="Estilo7">Plazo:
<input type="hidden" name="num14" id="field1" value="0.013046">
<input type="hidden" name="num40" id="field1" value="8 años">
<input type="hidden" name="num50" id="field1" value="4,5% + 2,0%">
<input name="doce" type="radio" value="" onClick="document.getElementById('fac').value= document.getElementById('num14').value; document.getElementById('años').value= document.getElementById('num40').value; document.getElementById('TASA1').value= document.getElementById('num50').value" >
8
<input type="hidden" name="num15" id="num15" value="0.009725">
<input type="hidden" name="num41" id="field1" value="12 años">
<input type="hidden" name="num51" id="field1" value="4,5% + 2,0%">
<input name="doce" type="radio" value="" onClick="document.getElementById('fac').value= document.getElementById('num15').value; document.getElementById('años').value= document.getElementById('num41').value; document.getElementById('TASA1').value= document.getElementById('num51').value">
12,
<input type="hidden" name="num16" id="num15" value="0.008564">
<input type="hidden" name="num42" id="field1" value="15 años">
<input type="hidden" name="num52" id="field1" value="4,5% + 2,0%">
<input name="doce" type="radio" value="" onClick="document.getElementById('fac').value= document.getElementById('num16').value; document.getElementById('años').value= document.getElementById('num42').value; document.getElementById('TASA1').value= document.getElementById('num52').value">
15,
<input type="hidden" name="num17" id="num15" value="0.007308">
<input type="hidden" name="num43" id="field1" value="20 años">
<input type="hidden" name="num53" id="field1" value="4,8% + 2,0%">
<input name="doce" type="radio" value="" onClick="document.getElementById('fac').value= document.getElementById('num17').value; document.getElementById('años').value= document.getElementById('num43').value; document.getElementById('TASA1').value= document.getElementById('num53').value">
20,
<input type="hidden" name="num19" id="num15" value="0.006775">
<input type="hidden" name="num44" id="field1" value="25 años">
<input type="hidden" name="num54" id="field1" value="5,0% + 2,0%">
<input name="doce" type="radio" value="" onClick="document.getElementById('fac').value= document.getElementById('num19').value; document.getElementById('años').value= document.getElementById('num44').value; document.getElementById('TASA1').value= document.getElementById('num54').value">
25,
<input type="hidden" name="num20" id="num15" value="0.006473">
<input type="hidden" name="num45" id="field1" value="30 años">
<input type="hidden" name="num55" id="field1" value="5,2% + 2,0%">
<input name="doce" type="radio" value="" onClick="document.getElementById('fac').value= document.getElementById('num20').value; document.getElementById('años').value= document.getElementById('num45').value; document.getElementById('TASA1').value= document.getElementById('num55').value">
30