Created
September 4, 2012 20:46
-
-
Save mikehenriquezf/3626264 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
if(unserialize(base64_decode($_COOKIE["geolocation"])) == "PR" || unserialize(base64_decode($_COOKIE["geolocation"])) == "US"){ ?> | |
<div id="minBox" style="position:absolute; width: 312px; height: 129px; top: 4px; left: -1px;"> | |
<script language="javascript"> | |
function validate() { | |
var mobile2, Carriers; | |
mobile2 = document.getElementById("mobile2").value; | |
Carriers = document.getElementById("Carriers").value; | |
//accept = document.getElementById("accept"); | |
if(isNaN(mobile2)) { | |
alert("Tu número de teléfono debe contener solo números"); | |
document.getElementById("mobile2").value = ""; | |
document.getElementById("mobile2").focus(); | |
}else if(mobile2.length < 11) { | |
alert("Tu número de teléfono debe contener 11 dígitos"); | |
document.getElementById("mobile2").focus(); | |
}else if (document.getElementById('checkbox').checked == false){ | |
alert("Debe estar de acuerdo con los términos y condiciones del servicio!"); | |
}else if(document.getElementById('Carriers').selectedIndex == 0 ) { | |
alert("Debe seleccionar cual es su operadora"); | |
}else{ | |
sendRequest(); | |
} | |
} | |
function skipBox(){ | |
var mobile1; | |
mobile1 = document.getElementById("mobile1").value; | |
if(mobile1.length == 3){ | |
document.getElementById("mobile2").focus(); | |
} | |
} | |
</script> | |
<div id="mobile2Div" style="position:absolute; left: 100px; top: 0px;"> | |
<input type="hidden" id="mobile1"/> | |
<input type="text" class="telefono" name="mobile2" id="mobile2" value="<?=$telefono;?>" maxlength="11"/> | |
</div> | |
<div id="CarriersDiv" style="position:absolute; left: 127px; top: 75px;"> | |
<select name="Carriers" id="Carriers" style="width:110%;"> | |
<option value="0" selected="selected">Seleccione su operadora</option> | |
<option value="5">ATT</option> | |
<option value="2">Claro</option> | |
<option value="4">Sprint</option> | |
<option value="1">Centennial</option> | |
<option value="3">T-Mobile</option> | |
</select> | |
</div> | |
<div id="legaltelefono" style="top:45px; width:360px; left:35px; position:absolute;">Suscripción <strong>3 alertas/semana $9.99/mes</strong> Alertas Textea a Cookies enviados a tu celular</div> | |
<div id="termsconditionstext" style="position:absolute; z-index:15; left:75px; top: 90px; width: 262px;"> | |
<input type="checkbox" name="checkbox" id="checkbox" /> | |
<a href="legales.php" onclick="return GB_showCenter('Legales', this.href)"><span style='font-family:verdana; font-size:11px;'>Acepto los Términos y Condiciones.</span></a> </div> | |
</div> | |
<? }else if(unserialize(base64_decode($_COOKIE['geolocationlp'])) == "AR"){ ?> | |
<div id="minBox" style="position:absolute; width: 383px; top: -2px; height: 142px; left: -32px;"> | |
<script language="javascript"> | |
function validate() { | |
var mobile1, mobile2, Carriers; | |
mobile1=document.getElementById('mobile1').value; | |
mobile2=document.getElementById('mobile2').value; | |
Carriers=document.getElementById('Carriers').value; | |
if (isNaN(mobile1)) { | |
alert("Introduzca un código de área válido"); | |
document.getElementById('mobile1').focus(); | |
document.getElementById('mobile1').value = ""; | |
}else if(mobile1 == ""){ | |
alert("Introduzca el código de área."); | |
document.getElementById('mobile1').focus(); | |
}else if (isNaN(mobile2)){ | |
alert("Introduzca un número de teléfono válido."); | |
document.getElementById('mobile2').focus(); | |
document.getElementById('mobile2').value = ""; | |
}else if(document.getElementById('mobile2').value.length < (4 - document.getElementById('mobile1').value.length + 6)){ | |
alert("Su número de teléfono debe contener hasta " + (4 - document.getElementById('mobile1').value.length + 6) + " digitos, verifique los datos provistos."); | |
document.getElementById('mobile2').focus(); | |
}else if(document.getElementById('Carriers').selectedIndex == 0 ) { | |
alert("Debe seleccionar cual es su operadora"); | |
}else if(document.getElementById('checkbox').checked == false ) { | |
alert("Debe estar de acuerdo con los términos y condiciones del servicio!"); | |
}else{ | |
sendRequest();//location.href="api_step_1.php?mobile1="+mobile1+"&mobile2="+mobile2+"&Carriers="+Carriers; | |
} | |
} | |
function mensajeCarriers(){ | |
if(document.getElementById('Carriers').value == 45) { | |
document.getElementById("mensajeCarriers").innerHTML = "Suscripción de Datos Sorprendentes:$1,00 + impuestos por mensaje"; | |
}else if(document.getElementById('Carriers').value == 46 ){ | |
document.getElementById("mensajeCarriers").innerHTML = "Suscripción de Datos Sorprendentes:$0,80 + impuestos por mensaje"; | |
}else { | |
document.getElementById("mensajeCarriers").innerHTML = "Suscripción de Datos Sorprendentes:$1,20 + impuestos por mensaje"; | |
} | |
} | |
function limitText(limitField, limitCount, limitNum) { | |
if (limitField.value.substr(0,1) == "0"){ | |
limitField.value = ""; | |
} | |
if (limitField.value.length > limitNum) { | |
limitField.value = limitField.value.substring(0, limitNum); | |
} else { | |
// limitCount.value = (limitNum - limitField.value.length) +6; | |
limitCount.maxLength = (limitNum - limitField.value.length) +6; | |
} | |
} | |
function noZero(noZeroField) { | |
if (noZeroField.value.substr(0,1) == "0"){ | |
noZeroField.value = ""; | |
} | |
} | |
</script> | |
<form id="form1" name="form1" method="post" action=""> | |
<div id="areaArg1" style="position:absolute; top:10px; left:0px; font-size:20px;">+54 0</div> | |
<div id="areaArg1" style="position:absolute; top:10px; left:165px; z-index:45; font-size:20px;">15</div> | |
<div id="mobile1Div" style="position:absolute; left: 104px; top: 31px;"> | |
<input type="text" name="mobile1" id="mobile1" onkeydown="limitText(this.form.mobile1,this.form.mobile2,4);" onkeyup="limitText(this.form.mobile1,this.form.mobile2,4);" maxlength="4"/> | |
</div> | |
<div id="mobile2Div" style="position:absolute; left: 359px; top: 30px;"> | |
<input type="text" name="mobile2" id="mobile2" onkeydown="noZero(mobile2); " onkeyup="noZero(mobile2);" maxlength="8"/> | |
</div> | |
<div id="CarriersDiv" style="position:absolute; left: 99px; top: 59px;"> | |
<select name="Carriers" id="Carriers" onchange="mensajeCarriers();" style="width:110%;"> | |
<option value="0" selected="selected">Seleccione su operadora</option> | |
<option value="45">Personal</option> | |
<option value="46">Claro</option> | |
<option value="44">Movistar</option> | |
</select> | |
</div> | |
<div id="mensajeCarriers" style="position:absolute; top: 86px; left: 53px; width: 271px; font-family:tahoma; font-size:10px; text-align:center;"></div> | |
<div id="termsconditionstext" style="position:absolute; z-index:15; left:77px; top: 108px; width: 262px;"> | |
<input type="checkbox" name="checkbox" id="checkbox" /> | |
<a href="legales.php" onclick="return GB_showCenter('Legales', this.href)"><span style="font-family:verdana; font-size:11px;">Acepto los Términos y Condiciones.</span></a> </div> | |
</form> | |
</div> | |
<? }else if(unserialize(base64_decode($_COOKIE["geolocation"])) == "BR"){?> | |
<div id="minBox" style="position:absolute; width: 313px; top: -2px; height: 265px; left: 1px;"> | |
<script language="javascript"> | |
function validate(){ | |
var mobile1, mobile2, Carriers; | |
mobile1 = document.getElementById("mobile1").value; | |
mobile2 = document.getElementById("mobile2").value; | |
Carriers = document.getElementById("Carriers").value; | |
if(mobile1 == ""){ | |
alert("Digite o código de área"); | |
document.getElementById("mobile1").focus(); | |
}else if(isNaN(mobile1)){ | |
alert("Seu código de área devem conter apenas números"); | |
document.getElementById("mobile1").focus(); | |
}else if(document.getElementById("mobile1").value.length < 2){ | |
alert("Seu código de área deve ser de 2 dígitos"); | |
document.getElementById("mobile1").focus(); | |
}else if(document.getElementById("mobile2").value.length < 8){ | |
alert("Seu número de telefone deve ser de 8 dígitos"); | |
document.getElementById("mobile2").focus(); | |
}else if(isNaN(mobile2)){ | |
alert("Seu número de telefone devem conter apenas números"); | |
document.getElementById("mobile2").focus(); | |
}else if(mobile2 == ""){ | |
alert("Digite seu número de telefone"); | |
document.getElementById("mobile2").focus(); | |
}else if(document.getElementById("Carriers").selectedIndex == 0){ | |
alert("Escolha o seu operador"); | |
}else if(document.getElementById("checkbox").checked == false){ | |
alert("Deve aceitar os termos e condições"); | |
}else{ | |
sendRequest();//location.href="api_step_1.php?mobile1="+mobile1+"&mobile2="+mobile2+"&Carriers="+Carriers; | |
/*location.href="pin.php";*/ | |
} | |
} | |
function mensajeCarriers(){ | |
if(document.getElementById('Carriers').value == 130){ | |
document.getElementById("mensajeCarriers").innerHTML = "<input type=\"checkbox\" name=\"checkbox\" id=\"checkbox\" /> Li e aceito os <a href='legales.php' onclick=\"return GB_showCenter('Política de Privacidade', this.href)\">Termos & Condições do serviço. </a>Estou ciente de que é um serviço de assinatura e serei tarifado em R$0,31+tributos por mensagem recebida. Digitando seu número, sua solicitação será encaminhada à operadora e você receberá um SMS com a senha ou solicitação de confirmação de assinatura. Você receberá mensagens sobre QI. Para cancelar envie SAIR a <strong>49520</strong>"; | |
}else{ | |
document.getElementById("mensajeCarriers").innerHTML = "<input type=\"checkbox\" name=\"checkbox\" id=\"checkbox\" /> Li e aceito os <a href='legales.php' onclick=\"return GB_showCenter('Política de Privacidade', this.href)\">Termos & Condições do serviço. </a>Estou ciente de que é um serviço de assinatura e serei tarifado em R$0,31+impostos por mensagem recebida. Digitando seu número, sua solicitação será encaminhada à operadora e você receberá um SMS com a senha ou solicitação de confirmação de assinatura. Você receberá mensagens sobre QI. Para cancelar envie SAIR a <strong>49520</strong>"; | |
} | |
} | |
</script> | |
<div id="mobile1Div" style="position:absolute; left: 54px; top: 31px;" > | |
<input type="text" name="mobile1" id="mobile1" maxlength="2" /> | |
</div> | |
<div id="mobile2Div" style="position:absolute; left: 279px; top: 30px;"> | |
<input type="text" name="mobile2" id="mobile2" maxlength="8" /> | |
</div> | |
<div id="CarriersDiv" style="position:absolute; left: 69px; top: 50px;"> | |
<select name="Carriers" id="Carriers" onchange="mensajeCarriers();" style="width:110%;"> | |
<option value="0" selected="selected">Seleccione sua operadora</option> | |
<option value="200">Claro</option> | |
<option value="130">Tim</option> | |
<option value="42">Oi</option> | |
<option value="250">Vivo</option> | |
</select> | |
</div> | |
<div id="mensajeCarriers" style="position:absolute; top: 75px; left: -34px; width: 398px; font-family:tahoma; font-size:10px; text-align:center; height: 3px;"></div></div> | |
<? | |
}else if(unserialize(base64_decode($_COOKIE["geolocation"])) == "CL"){?> | |
<div id="minBox" style="position:absolute; width: 513px; top: -2px; height: 265px; left: 1px;"> | |
<script language="javascript"> | |
function validate() { | |
var mobile2, Carriers; | |
mobile2 = document.getElementById("mobile2").value; | |
Carriers = document.getElementById("Carriers").value; | |
if(isNaN(mobile2)) { | |
alert("Tu número de teléfono debe contener solo números"); | |
document.getElementById("mobile2").value = ""; | |
document.getElementById("mobile2").focus(); | |
}else if(mobile2.length < 8) { | |
alert("Tu número de teléfono debe contener 8 dígitos"); | |
document.getElementById("mobile2").focus(); | |
}else if (document.getElementById('Carriers').value == "0"){ | |
alert("Debe seleccionar cual es su operadora"); | |
}else if(document.getElementById("checkbox").checked == false) { | |
alert("Debe aceptar los términos y condiciones"); | |
}else{ | |
sendRequest(); | |
//location.href = "api_step_1.php?mobile2="+mobile2+"&Carriers="+Carriers; | |
} | |
} | |
function mensajeCarriers(){ | |
if(document.getElementById('Carriers').selectedIndex == 2 || document.getElementById('Carriers').selectedIndex == 1){ | |
document.getElementById("mensajeCarriers").innerHTML = "Suscripción a Datos Sorprendentes, $200 por mensaje recibido / 7 sms semanales."; | |
}else{ | |
document.getElementById("mensajeCarriers").innerHTML = "Suscripción a Datos Sorprendentes, $150 por mensaje recibido / 5 sms semanales."; | |
} | |
} | |
</script> | |
<div id="mobile1Div" style="position:absolute; left: 54px; top: 31px;" > | |
<input type="text" name="mobile1" id="mobile1" value="569" disabled="disabled" /> | |
</div> | |
<div id="mobile2Div" style="position:absolute; left: 279px; top: 30px;"> | |
<input type="text" name="mobile2" id="mobile2" maxlength="8"/> | |
</div> | |
<div id="CarriersDiv" style="position:absolute; left: 59px; top: 52px;"> | |
<select name="Carriers" id="Carriers" onchange="mensajeCarriers();" style="width:110%;"> | |
<option value="0" selected="selected">Seleccione su operadora</option> | |
<option value="35">Claro</option> | |
<option value="38">Entel</option> | |
<option value="43">Movistar</option> | |
</select> | |
</div> | |
<div id="mensajeCarriers" style="position:absolute; top: 80px; left: 23px; width: 271px; font-family:tahoma; font-size:10px; text-align:center;"></div> | |
<div id="termsconditionstext" style="position:absolute; z-index:15; left:29px; top: 120px; width: 262px;"> | |
<input type="checkbox" name="checkbox" id="checkbox" /> | |
<a href="legales.php" onclick="return GB_showCenter('Legales', this.href)"><span style="font-family:verdana; font-size:11px;">Acepto los Términos y Condiciones.</span></a> </div> | |
</div> | |
<? }else if(unserialize(base64_decode($_COOKIE["geolocation"])) == "CO"){ ?> | |
<div id="minBox" style="position:absolute; width: 315px; top: -2px; height: 143px; left: 0px;"> | |
<script language="javascript"> | |
function validate() { | |
var mobile2, Carriers; | |
mobile2 = document.getElementById("mobile2").value; | |
Carriers = document.getElementById("Carriers").value; | |
if(isNaN(mobile2)) { | |
alert("Tu número de teléfono debe contener solo números"); | |
document.getElementById("mobile2").value = ""; | |
document.getElementById("mobile2").focus(); | |
}else if(mobile2.length < 10) { | |
alert("Tu número de teléfono debe contener 10 dígitos"); | |
document.getElementById("mobile2").focus(); | |
}else if (document.getElementById('Carriers').value == "0"){ | |
alert("Debe seleccionar cual es su operadora"); | |
}else{ | |
sendRequest(); | |
} | |
} | |
function mensajeCarriers(){ | |
if(document.getElementById('Carriers').value == 42 ){ | |
document.getElementById("mensajeCarriers").innerHTML = "Servicio de Suscripción"; | |
}else{ | |
document.getElementById("mensajeCarriers").innerHTML = ""; | |
} | |
} | |
</script> | |
<form id="form1" name="form1" method="post" action=""> | |
<div id="mobile2Div" style="position:absolute; left: 125px; top: 0px;"> | |
<input type="text" name="mobile2" class="telefono" value="<?=$telefono;?>" id="mobile2" maxlength="10"/> | |
</div> | |
<div id="CarriersDiv" style="position:absolute; left: 145px; top: 60px;"> | |
<select name="Carriers" id="Carriers" onchange="mensajeCarriers();" style="width:110%;"> | |
<option value="0" selected="selected">Seleccione su operadora</option> | |
<option value="42">Comcel</option> | |
<option value="39">Tigo</option> | |
<option value="38">Movistar</option> | |
</select> | |
</div> | |
<div id="mensajeCarriers" style="position:absolute; top: 80px; left: 85px; width: 271px; font-family:tahoma; font-size:12px; font-weight:bold; text-align:center;"></div> | |
</form> | |
</div> | |
<? }else if(unserialize(base64_decode($_COOKIE["geolocation"])) == "EC"){?> | |
<div id="minBox" style="position:absolute; width: 513px; top: -2px; height: 265px; left: 1px;"> | |
<script language="javascript"> | |
function validate() { | |
var mobile2, Carriers; | |
mobile2 = document.getElementById("mobile2").value; | |
Carriers = document.getElementById("Carriers").value; | |
if(isNaN(mobile2)) { | |
alert("Tu número de teléfono debe contener solo números"); | |
document.getElementById("mobile2").value = ""; | |
document.getElementById("mobile2").focus(); | |
}else if(mobile2.length < 8) { | |
alert("Tu número de teléfono debe contener de 8 a 9 dígitos"); | |
document.getElementById("mobile2").focus(); | |
}else if(mobile2.length == 9 && mobile2.charAt(0) != "6"){ | |
alert("Tu número de teléfono debe comenzar con 6"); | |
document.getElementById("mobile2").focus(); | |
}else if(mobile2.charAt(0) == "6" && mobile2.length != 9){ | |
alert("Tu número de teléfono debe contener 9 dígitos"); | |
document.getElementById("mobile2").focus(); | |
}else if (document.getElementById('Carriers').value == "0"){ | |
alert("Debe seleccionar cual es su operadora"); | |
}else{ | |
sendRequest(); | |
//location.href = "api_step_1.php?mobile2="+mobile2+"&Carriers="+Carriers; | |
} | |
} | |
function mensajeCarriers(){ | |
if(document.getElementById('Carriers').selectedIndex == 2 || document.getElementById('Carriers').selectedIndex == 1){ | |
document.getElementById("mensajeCarriers").innerHTML = ""; | |
}else{ | |
document.getElementById("mensajeCarriers").innerHTML = ""; | |
} | |
} | |
</script> | |
<form id="form1" name="form1" method="post" action=""> | |
<div id="mobile1Div" style="position:absolute; left: 54px; top: 31px;" > | |
<input type="text" name="mobile" id="mobile" value="593" disabled="disabled"/> | |
</div> | |
<div id="mobile2Div" style="position:absolute; left: 279px; top: 30px;"> | |
<input type="text" name="mobile2" id="mobile2" maxlength="9"/> | |
</div> | |
<div id="CarriersDiv" style="position:absolute; left: 57px; top: 52px;"> | |
<select name="Carriers" id="Carriers" onchange="mensajeCarriers();" style="width:110%;"> | |
<option value="0" selected="selected">Seleccione su operadora</option> | |
<option value="42">Movistar</option> | |
<option value="43">Claro</option> | |
</select> | |
</div> | |
<div id="mensajeCarriers" style="position:absolute; top: 84px; left: 21px; width: 271px; font-family:tahoma; font-size:10px; text-align:center;"></div> | |
<div id="termsconditionstext" style="position:absolute; z-index:15; left:27px; top: 117px; width: 262px;"> | |
</div> | |
</form> | |
</div> | |
<? }else if(unserialize(base64_decode($_COOKIE["geolocation"])) == "GT") {?> | |
<div id="minBox" style="position:absolute; width: 313px; top: -2px; height: 142px; left: 1px;"> | |
<script language="javascript"> | |
function validate() { | |
var mobile2; | |
mobile2 = document.getElementById("mobile2").value; | |
if(isNaN(mobile2)) { | |
alert("Tu número de teléfono debe contener solo números"); | |
document.getElementById("mobile2").value = ""; | |
document.getElementById("mobile2").focus(); | |
}else if(mobile2.length < 8) { | |
alert("Tu número de teléfono debe contener 8 dígitos"); | |
document.getElementById("mobile2").focus(); | |
}else{ | |
sendRequest(); | |
//location.href = "api_step_1.php?mobile2="+mobile2+"&Carriers="+Carriers; | |
} | |
} | |
function mensajeCarriers(){ | |
if(document.getElementById('Carriers').selectedIndex == 2 || document.getElementById('Carriers').selectedIndex == 1){ | |
document.getElementById("mensajeCarriers").innerHTML = "Suscripción a Datos Sorprendentes, $200 por mensaje recibido / 7 sms semanales."; | |
}else{ | |
document.getElementById("mensajeCarriers").innerHTML = "Suscripción a Datos Sorprendentes, $150 por mensaje recibido / 5 sms semanales."; | |
} | |
} | |
</script> | |
<form id="form1" name="form1" method="post" action=""> | |
<div id="mobile1Div" style="position:absolute; left: 54px; top: 31px;" > | |
<input type="text" name="mobile" id="mobile" value="502" disabled="disabled"/> | |
</div> | |
<div id="mobile2Div" style="position:absolute; left: 279px; top: 30px;"> | |
<input type="text" name="mobile2" id="mobile2" maxlength="8"/> | |
</div> | |
<div id="CarriersDiv" style="position:absolute; left: 69px; top: 44px;"> | |
</div> | |
<div id="mensajeCarriers" style="position:absolute; top: 80px; left: 33px; width: 271px; font-family:tahoma; font-size:10px; text-align:center;"></div> | |
<div id="termsconditionstext" style="position:absolute; z-index:15; left:39px; top: 132px; width: 262px;"> | |
</div> | |
</form> | |
</div> | |
<? } else if(unserialize(base64_decode($_COOKIE["geolocation"])) == "MX"){ ?> | |
<div id="minBox" style="position:absolute; width: 513px; top: -2px; height: 265px; left: 1px;"> | |
<script language="javascript"> | |
function validate() { | |
var mobile2; | |
mobile2 = document.getElementById("mobile2").value; | |
if(isNaN(mobile2)) { | |
alert("Tu código de area debe contener solo números"); | |
document.getElementById("mobile2").value = ""; | |
document.getElementById("mobile2").focus(); | |
}else if(mobile2.length < 10) { | |
alert("Entre un numero válido"); | |
document.getElementById("mobile2").focus(); | |
}else if(document.getElementById("checkbox").checked == false) { | |
alert("Debe estar de acuerdo con los términos de uso"); | |
}else{ | |
sendRequest();//location.href = "api_step_1.php?mobile2="+mobile2; | |
} | |
} | |
function mensajeCarriers(){ | |
if(document.getElementById('Carriers').selectedIndex == 2 || document.getElementById('Carriers').selectedIndex == 1){ | |
document.getElementById("mensajeCarriers").innerHTML = "Suscripción a Datos Sorprendentes, $200 por mensaje recibido / 7 sms semanales."; | |
}else{ | |
document.getElementById("mensajeCarriers").innerHTML = "Suscripción a Datos Sorprendentes, $150 por mensaje recibido / 5 sms semanales."; | |
} | |
} | |
</script> | |
<div style="position:absolute; font-family:tahoma; font-size:9px; text-align:center;top:0px; left:107px;">Suscríbete al Club Micel y recibe Las Cookies directo en tu celular</div> | |
<div style="position:absolute; font-family:tahoma; font-size:9px; text-align:center;top:65px; left:107px;">$29 (IVA incluido), la renovación sera automática cada semana</div> | |
<div id="mobile2Div" style="position:absolute; left: 135px; top: 18px;"> | |
<input type="text" name="mobile2" id="mobile2" class="telefono" style="left:-220px; width:200px; height:30px;" maxlength="10"/> | |
</div> | |
<input type="hidden" id="Carriers" value="93" /> | |
<div id="termsconditionstext" style="position:absolute; z-index:15; left:90px; top: 80px; width: 262px;"> | |
<input type="checkbox" name="checkbox" id="checkbox" /> | |
<a href="legales.php" onclick="return GB_showCenter('Legales', this.href)"><span style="font-family:verdana; font-size:11px;">Acepto los Términos y Condiciones.</span></a> </div> | |
</div> | |
<? }else if(unserialize(base64_decode($_COOKIE["geolocation"])) == "NI") { ?> | |
<div id="minBox" style="position:absolute; width: 314px; top: -2px; height: 142px; left: 1px;"> | |
<script language="javascript"> | |
function validate() { | |
var mobile2; | |
mobile2 = document.getElementById("mobile2").value; | |
if(isNaN(mobile2)) { | |
alert("Tu número de teléfono debe contener solo números"); | |
document.getElementById("mobile2").value = ""; | |
document.getElementById("mobile2").focus(); | |
}else if(mobile2.length < 8) { | |
alert("Tu número de teléfono debe contener 8 dígitos"); | |
document.getElementById("mobile2").focus(); | |
}else{ | |
sendRequest(); | |
//location.href = "api_step_1.php?mobile2="+mobile2+"&Carriers="+Carriers; | |
} | |
} | |
function mensajeCarriers(){ | |
if(document.getElementById('Carriers').selectedIndex == 2 || document.getElementById('Carriers').selectedIndex == 1){ | |
document.getElementById("mensajeCarriers").innerHTML = "Suscripción a Datos Sorprendentes, $200 por mensaje recibido / 7 sms semanales."; | |
}else{ | |
document.getElementById("mensajeCarriers").innerHTML = "Suscripción a Datos Sorprendentes, $150 por mensaje recibido / 5 sms semanales."; | |
} | |
} | |
</script> | |
<div id="mobile1Div" style="position:absolute; left: 54px; top: 31px;" > | |
<input type="text" name="mobile" id="mobile" value="505" disabled="disabled"/> | |
</div> | |
<div id="mobile2Div" style="position:absolute; left: 279px; top: 30px;"> | |
<input type="text" name="mobile2" id="mobile2" maxlength="8"/> | |
</div> | |
</div> | |
<? } else if(unserialize(base64_decode($_COOKIE["geolocation"])) == "PA"){?> | |
<div id="minBox" style="position:absolute; width: 313px; top: -2px; height: 143px; left: 1px;"> | |
<script language="javascript"> | |
function validate() { | |
var mobile2, Carriers; | |
mobile2 = document.getElementById("mobile2").value; | |
Carriers = document.getElementById("Carriers").value; | |
if(isNaN(mobile2)) { | |
alert("Tu número de teléfono debe contener solo números"); | |
document.getElementById("mobile2").value = ""; | |
document.getElementById("mobile2").focus(); | |
}else if(mobile2.length < 8) { | |
alert("Tu número de teléfono debe contener 8 dígitos"); | |
document.getElementById("mobile2").focus(); | |
}else if (document.getElementById('Carriers').value == "0"){ | |
alert("Debe seleccionar cual es su operadora"); | |
}else{ | |
sendRequest(); | |
//location.href = "api_step_1.php?mobile2="+mobile2+"&Carriers="+Carriers; | |
} | |
} | |
function mensajeCarriers(){ | |
if(document.getElementById('Carriers').selectedIndex == 2 || document.getElementById('Carriers').selectedIndex == 1){ | |
document.getElementById("mensajeCarriers").innerHTML = ""; | |
}else{ | |
document.getElementById("mensajeCarriers").innerHTML = ""; | |
} | |
} | |
</script> | |
<form id="form1" name="form1" method="post" action=""> | |
<div id="mobile1Div" style="position:absolute; left: 54px; top: 31px;" > | |
<input type="text" name="mobile1" id="mobile1" value="507" disabled="disabled"/> | |
</div> | |
<div id="mobile2Div" style="position:absolute; left: 279px; top: 30px;"> | |
<input type="text" name="mobile2" id="mobile2" maxlength="8"/> | |
</div> | |
<div id="CarriersDiv" style="position:absolute; left: 49px; top: 52px;"> | |
<select name="Carriers" id="Carriers" onchange="" style="width:110%;"> | |
<option value="0" selected="selected">Seleccione su operadora</option> | |
<option value="1">C&W</option> | |
<option value="2">Movistar</option> | |
</select> | |
</div> | |
</form> | |
</div> | |
<? }else if(unserialize(base64_decode($_COOKIE["geolocation"])) =="PE"){ ?> | |
<div id="minBox" style="position:absolute; width: 313px; top: -2px; height: 144px; left: 1px;"> | |
<script language="javascript"> | |
function validate() { | |
var mobile2, Carriers; | |
Carriers = document.getElementById('Carriers').value; | |
mobile2 = document.getElementById('mobile2').value; | |
if(mobile2 == ""){ | |
alert('Porfavor escriba su número móvil.'); | |
document.getElementById('mobile2').focus(); | |
}else if(isNaN(mobile2)) { | |
alert('Su número móvil debe contener solo números'); | |
document.getElementById('mobile2').focus(); | |
}else if(mobile2.substr(0,1) != "9"){ | |
alert('Su número móvil debe comenzar con el número 9.'); | |
document.getElementById('mobile2').focus(); | |
}else if(mobile2.length < 9){ | |
alert('Su número móvil debe contener 9 dígitos.'); | |
document.getElementById('mobile2').focus(); | |
}else if(document.getElementById('checkbox').checked == false){ | |
alert('Debes aceptar los términos de uso'); | |
}else if(document.getElementById('Carriers').selectedIndex == 0){ | |
alert('Debes seleccionar su operadora'); | |
}else{ | |
sendRequest();//location.href = "api_step_1.php?mobile2="+mobile2+"&cCarriers="+Carriers; | |
} | |
} | |
function mensajeCarriers(){ | |
if(document.getElementById('Carriers').selectedIndex == 2 || document.getElementById('Carriers').selectedIndex == 1){ | |
document.getElementById("mensajeCarriers").innerHTML = ""; | |
}else{ | |
document.getElementById("mensajeCarriers").innerHTML = ""; | |
} | |
} | |
</script> | |
<div id="mobile1Div" style="position:absolute; left: 54px; top: 31px;" > | |
<input type="text" name="mobile1" id="mobile1" value="51" disabled="disabled"/> | |
</div> | |
<div id="mobile2Div" style="position:absolute; left: 279px; top: 30px;"> | |
<input type="text" name="mobile2" id="mobile2" maxlength="9"/> | |
</div> | |
<div id="CarriersDiv" style="position:absolute; left: 59px; top: 52px;"> | |
<select name="Carriers" id="Carriers" onchange="" style="width:110%;"> | |
<option value="0" selected="selected">Seleccione su operadora</option> | |
<option value="29">Movistar</option> | |
<option value="31">Claro</option> | |
</select> | |
</div> | |
<div id="termsconditionstext" style="position:absolute; z-index:15; left:29px; top: 110px; width: 262px;"> | |
<input type="checkbox" name="checkbox" id="checkbox" /> | |
<a href="legales.php" onclick="return GB_showCenter('Legales', this.href)"><span style="font-family:verdana; font-size:11px;">Acepto los Términos y Condiciones.</span></a> </div> | |
</div> | |
<? } else if(unserialize(base64_decode($_COOKIE["geolocation"]))=="SV"){?> | |
<div id="minBox" style="position:absolute; width: 314px; top: -2px; height: 143px; left: 1px;"> | |
<script language="javascript"> | |
function validate() { | |
var mobile2, Carriers; | |
mobile2 = document.getElementById("mobile2").value; | |
Carriers = document.getElementById("Carriers").value; | |
if(isNaN(mobile2)) { | |
alert("Tu número de teléfono debe contener solo números"); | |
document.getElementById("mobile2").value = ""; | |
document.getElementById("mobile2").focus(); | |
}else if(mobile2.length < 8) { | |
alert("Tu número de teléfono debe contener 8 dígitos"); | |
document.getElementById("mobile2").focus(); | |
}else if (document.getElementById('Carriers').value == "0"){ | |
alert("Debe seleccionar cual es su operadora"); | |
}else{ | |
sendRequest(); | |
//location.href = "api_step_1.php?mobile2="+mobile2+"&Carriers="+Carriers; | |
} | |
} | |
function mensajeCarriers(){ | |
if(document.getElementById('Carriers').selectedIndex == 2 || document.getElementById('Carriers').selectedIndex == 1){ | |
document.getElementById("mensajeCarriers").innerHTML = ""; | |
}else{ | |
document.getElementById("mensajeCarriers").innerHTML = ""; | |
} | |
} | |
</script> | |
<form id="form1" name="form1" method="post" action=""> | |
<div id="mobile1Div" style="position:absolute; left: 54px; top: 31px;" > | |
<input type="text" name="mobile1" id="mobile1" value="503" disabled="disabled"/> | |
</div> | |
<div id="mobile2Div" style="position:absolute; left: 279px; top: 30px;"> | |
<input type="text" name="mobile2" id="mobile2" maxlength="8"/> | |
</div> | |
<div id="CarriersDiv" style="position:absolute; left: 49px; top: 62px;"> | |
<select name="Carriers" id="Carriers" onchange="" style="width:110%;"> | |
<option value="0" selected="selected">Seleccione su operadora</option> | |
<option value="1">Claro</option> | |
<option value="3">Movistar</option> | |
<option value="4">Tigo</option> | |
</select> | |
</div> | |
</form> | |
</div> | |
<? }else if(unserialize(base64_decode($_COOKIE["geolocation"])) == "UY"){?> | |
<div id="minBox" style="position:absolute; width: 314px; top: -2px; height: 142px; left: 1px;"> | |
<script language="javascript"> | |
function validate() { | |
var mobile2; | |
mobile2=document.getElementById('mobile2').value; | |
if (isNaN(mobile2)){ | |
alert("Introduzca un número de teléfono válido."); | |
document.getElementById('mobile2').focus(); | |
document.getElementById('mobile2').value = ""; | |
}else if(mobile2.length < 8) { | |
alert("Tu número de teléfono debe contener 8 dígitos"); | |
document.getElementById("mobile2").focus(); | |
}else if(mobile2.charAt(0) != "9"){ | |
alert("Tu número de teléfono debe comenzar con 9"); | |
document.getElementById("mobile2").focus(); | |
}else if(document.getElementById('Carriers').selectedIndex == 0 ) { | |
alert("Debe seleccionar cual es su operadora"); | |
}else if(document.getElementById('checkbox').checked == false ) { | |
alert("Debe estar de acuerdo con los términos y condiciones del servicio!"); | |
}else{ | |
sendRequest();//location.href="api_step_1.php?mobile2="+mobile2+"&Carriers="+document.getElementById('Carriers').value;; | |
} | |
} | |
function mensajeCarriers(){ | |
if(document.getElementById('Carriers').selectedIndex == 2 || document.getElementById('Carriers').selectedIndex == 1){ | |
document.getElementById("mensajeCarriers").innerHTML = ""; | |
}else{ | |
document.getElementById("mensajeCarriers").innerHTML = ""; | |
} | |
} | |
</script> | |
<div id="mobile1Div" style="position:absolute; left: 54px; top: 31px;" > | |
<input type="text" name="mobile1" id="mobile1" value="598" disabled="disabled"/> | |
</div> | |
<div id="mobile2Div" style="position:absolute; left: 279px; top: 30px;"> | |
<input type="text" name="mobile2" id="mobile2" maxlength="10"/> | |
</div> | |
<div id="CarriersDiv" style="position:absolute; left: 54px; top: 52px;"> | |
<select name="Carriers" id="Carriers" onchange="" style="width:110%;"> | |
<option value="0" selected="selected">Seleccione su operadora</option> | |
<option value="39">Claro</option> | |
<option value="38">Movistar</option> | |
<option value="40">Ancel</option> | |
</select> | |
</div> | |
<div id="termsconditionstext" style="position:absolute; z-index:15; left:-4px; top: 117px; width: 336px;"> | |
<input type="checkbox" name="checkbox" id="checkbox" /> | |
<a href="legales.php" onclick="return GB_showCenter('Legales', this.href)"><span style="font-family:verdana; font-size:11px;">Términos y Condiciones. Acepto Cargos por servicio.</span></a> </div> | |
</div> | |
<? } ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment