host = (username=='demostracion'?'pruebas':'www');
function antesde(){
 document.getElementById('etpv_order_ref').value = document.getElementById('importe').value + ";" + document.getElementById('etpv_email').value + ";" + document.getElementById('placerya_mail').value;
 document.getElementById('etpv_importe').value = Math.round(document.getElementById('importe').value.replace(',','.')*100);
return true;
}

document.write('<script src="http://'+host+'.e-tpv.com/e-tpv/html/donacion.js" type="text/javascript"></script>');

document.write('<div class="wpmd"><br/><br/><div> <center><font class="ws20" color="#CCCCCC"><B>Tarjetas aceptadas en la Red Telepago 4B</B></font></center></div>');
//document.write('<font class="ws20" color="#FFFF00"><B>Tarjetas aceptadas en la Red Telepago 4B</B></font>');

document.write('<div  style="float:left;background: #eeeeee;margin-left:0px;padding:10px;display:inline">');
document.write('<table width="100%">');
document.write('<tr>');
document.write('<td>');
document.write('<img src=http://www.tarotyvidentes.com/images/4b.jpg border=0 hspace="5" align="bottom">');
document.write('</td>');
document.write('<td>');
document.write('<h3 STYLE="color:#C92C8D">'+nombre+'</h3>');
document.write('<form id="etpvfrm" name="etpvfrm" onsubmit="return antesde()" action="http://'+host+'.e-tpv.com/e-tpv/html/etpvpagosf.php">');
//document.write('<img src=http://www.tarotyvidentes.com/images/4b.jpg border=0 hspace="15" vspace="10" valign="absmiddle" align="absmiddle"><div  style="float:left;background: #eeeeee;margin-left:200px;padding:20px;display:inline"><form id="etpvfrm" name="etpvfrm" onsubmit="return antesde()" action="http://'+host+'.e-tpv.com/e-tpv/html/etpvpagosf.php">');
document.write('<input value="es" name="Idioma" type="hidden">');
document.write('<input value="'+pagina_retorno+'" name="config_recibo" type="hidden">');
document.write('<input value="http://www.e-tpv.com/e-tpv/html/importe_cliente_proveedor.php" name="config_result" type="hidden">');

var str ="<select id='importe' name='importe' class='ws14' style='color:#ff0000'>"
for (i=0;i<bonos.length;i++){
  str += "<option value='"+bonos[i]['precio']+"'>BONO "+bonos[i]['minutos']+" MINUTOS DE CHAT TAROT "+bonos[i]['precio']+" &euro;</option>";
}
str += "</select>";
document.write(str);

document.write('<input id="etpv_order_ref" name="etpv_order_ref" type="hidden">');
document.write('<input id="placerya_mail" name="placerya_mail" value="'+email+'" type="hidden">');
document.write('<input id="etpv_concept" name="etpv_concept" value="'+nombre+'" type="hidden">');
document.write('<p STYLE="color:#000">T&uacute; direcci&oacute;n de email:  <input id="etpv_email" name="etpv_email" value="" type="text"></p>');
document.write('<input id="etpv_clientconcept" name="etpv_clientconcept" value="'+nombre+'" type="hidden">');
document.write('<input value="'+username+'" name="etpv_username" type="hidden">');
document.write('<input id="etpv_importe" name="etpv_importe" type="hidden">');
document.write('<p align="center"><input src="http://www.e-tpv.com/e-tpv/html/img/realizar_pago.GIF" border="0" type="image"></p></form>');
document.write('</td>');
document.write('</tr>');
document.write('</table>');
document.write('</div></div>');