CINXE.COM

<a id="link" target="_parent" href=""></a> <script src="/deployedfiles/common/R2016/Estaticos/js/lib/jquery-1.12.4.min.js" type="text/javascript" ></script> <script src="/deployedfiles/common/JavaScript/aplnr/cookie/cookie-policy.js" type="text/javascript" ></script> <script type="text/javascript"> if (typeof CookiePolicy != "undefined" && CookiePolicy.isAllowedComponent("info_campanya_externa_LO")) { document.cookie = 'info_campanya_externa_LO=PORTAL-RECOMEND;domain=.caixabank.es;path=/'; } </script> <script type="text/javascript" language="javascript"> var enlaceWeb = ""; enlaceWeb = 'https://lo.caixabank.es/GPeticiones?PN=LGN&PE=1&INICIAL_PN=PLA&INICIAL_PE=4&sinCampanya=S&IDIOMA=01&ENTORNO=L&CANAL=I&E_TIPOACCION=simaportacion&DEMO=0&ORIGEN=cai&TEXTO_OPE=recomendadorplanes.txt'; if(enlaceWeb != ""){ var url = window.location.href; //Cogemos parametros var parametros = url.substring(url.indexOf("?") + 1); //Quedarnos con parametros que no sean idEnlace, format o deviceType (mirar si hay que hacer lo mismo con trk) var array_param = parametros.split("&"); var parametros_redireccion; //Comprobamos si el enlace del CMA trae par谩metros. En funci贸n de ello ponemos una if(enlaceWeb.indexOf("?") == -1){ parametros_redireccion = "?"; }else{ parametros_redireccion = "&"; } for (i=0; i< array_param.length; i++){ if(array_param[i].indexOf("idEnlace") == -1 && array_param[i].indexOf("format") == -1 && array_param[i].indexOf("deviceType") == -1 && array_param[i].indexOf("trk") == -1){ if(i != array_param.length -1){ parametros_redireccion += array_param[i]+"&"; }else{ parametros_redireccion += array_param[i]; } } } if(parametros_redireccion != "?" && parametros_redireccion != "&"){ if(enlaceWeb.substr(enlaceWeb.length - 1) == "/"){ enlaceWeb = enlaceWeb.slice(0, -1); } enlaceWeb += parametros_redireccion; } var deviceType = 'COMPUTER'; if(deviceType.indexOf("PHONE") == -1 && deviceType.indexOf("MOBILE") == -1){ window.location.replace(enlaceWeb); }else{ document.getElementById('link').href = enlaceWeb; document.getElementById('link').click(); //window.top.parent.location = enlaceWeb; } } </script>