
	<html>

	<head>

	<title>Pasarela de pago directo .- Direct payment gateway</title>

	<script type="text/javascript" language="JavaScript">

	function submitPagoDirecto (valor)

	{

		if (valor=="")

			valor=0;

		if (isNaN (valor))

		{

			alert ("Debe introducir un importe numérico");

			return false;

		}

		else

		{

			if (valor<=0)

			{

				alert ("Debe introducir un importe mayor que 0");

				return false;

			}

		}

		document.getElementById('order').value="P"

		if (document.getElementById('euros').checked)

		{

			//alert(document.getElementById('euros').checked);

			document.getElementById('order').value+="E";

		}

		else

		{

			document.getElementById('order').value+="D";

		}

		document.getElementById('order').value+=valor;

		document.getElementById('order').value+="C"+document.getElementById('concepto').value;

		//alert (document.getElementById('order').value);

	}

	</script>

<link rel="stylesheet" href="templates/tienda.css">

	</head>

	<body background="graficos/piel/fondoficha.gif">

	<form name=datos action="https://tpv.4b.es/tpvv/teargral.exe" method=post OnSubmit="return submitPagoDirecto(document.getElementById('cantidad').value);">

	<input type=hidden name=order id=order value="">

	<input type=hidden name=store value=PI00000019>

	<TABLE WIDTH="100%" HEIGHT="100%"><TR><TD STYLE="text-align: center;">

	

	<TABLE CELLPADDING="5">

		<TR>

			<TH STYLE="border-bottom: groove 3pt;">

				Pago directo<br>

				Direct payment

			</TH>

		</TR>

		<TR>

			<TD>

				Concepto (Concept): <input type="text" id="concepto" size="10" maxlength="50">

			</TD>

		</TR>

		<TR>

			<TD>

				Importe (Amount): <input type="text" id="cantidad" size="4" maxlength="6">

			</TD>

		</TR>

		<TR>

			<TD>

				Moneda (Currency):

			</TD>

		</TR>

		<TR>

			<TD STYLE="text-align:right;">

				<INPUT TYPE=radio ID="euros" NAME="euros" VALUE="EUR" CHECKED> Euros (€)<BR>

			</TD>

		</TR>

		<TR>

			<TD STYLE="text-align:right;">

				<INPUT TYPE=radio ID="dolares" NAME="euros" VALUE="USD"> Dolares ($)<BR>

			</TD>

		</TR>

		<TR>

			<TD STYLE="text-align:center;border-top: groove 3pt;">

				<INPUT TYPE=submit VALUE="Enviar">

			</TD>

		</TR>

	</TABLE>

	</TD></TR></TABLE>

	</form>

	</body>

	</html>


