<html>
<head>
<meta http-equiv="Content-Language" content="es">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Pagina nueva 1</title>
</head>
<script language=javascript>
cuota=2.5;
contador=0;
function cobrarportiempo(){
contador++;
if(contador==60){contador=0;minutos1.innerHTML++}
segundos1.innerHTML=contador;
tiempototal=(parseInt(minutos1.innerHTML)+contador/60);
pagar.innerHTML=(tiempototal*cuota).toFixed(2)+' euros';
//se limita el importe a pagar a dos decimales
setTimeout("cobrarportiempo()",1000)
}
</script>
<body onload="cobrarportiempo()">
<div style="position: absolute; width: 279px; height: 100px; z-index: 1; left: 241px; top: 73px" id="capa1">
<table border="1" width="100%">
<tr>
<td align="center" colspan="2"><b><font face="Arial">Tiempo
transcurrido</font></b></td>
</tr>
<tr>
<td align="center"><b><font face="Arial">minutos</font></b></td>
<td align="center"><b><font face="Arial">segundos</font></b></td>
</tr>
<tr>
<td align="center"><b><font face="Arial" size="7" id=minutos1>0</font></b></td>
<td align="center"><b><font face="Arial" size="7" id=segundos1>0</font></b></td>
</tr>
</table>
</div>
<div style="position: absolute; width: 322px; height: 100px; z-index: 2; left: 225px; top: 216px" id="capa2">
<table border="1" width="100%">
<tr>
<td align="center"><b><font face="Arial" size="4">Importe a pagar
actual (3 euros por minuto)</font></b></td>
</tr>
<tr>
<td align="center"><b><font face="Arial" size="7" id=pagar>0</font></b></td>
</tr>
</table>
</div>
</body>
</html>