var __retValidaCookie = ""; var __retValidaCookieGr = ""; var __UrlRedirect = ""; function __GetCookie ( name ) { function escapecookie(s) { return s.replace(/([.*+?\^${}()|\[\]\/\\])/g, '\\$1'); }; var match = document.cookie.match(RegExp('(?:^|;\\s*)' + escapecookie(name) + '=([^;]*)')); return match ? ( unescape(match[1]) == "" ? null : unescape(match[1]) ) : null; } function __SetCookie (name, value, domain) { document.cookie = name + "=" + escape (value) + "; path=/; domain=" + domain; } function timesleep() { if( __retValidaCookie != "" ) { // Ya regreso var gla = document.createElement('script'); gla.type = 'text/javascript'; gla.async = true; gla.src = "https://www.gruporeforma.com/libre/acceso/perfilsuscriptor/prelogon.aspx?po=&__t=2&do=www.reforma.com&urlredirect=https://www.reforma.com"; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gla, s); setTimeout(timesleepgr,100); } else { setTimeout(timesleep,100); } } function timesleepgr() { if( __retValidaCookieGr != "" ) { // Ya regreso if( __retValidaCookieGr == "error" ) { var origen = parent.document.location.href; if (window.parent.document.location != null && window.parent.document.location!=document.location && origen.indexOf("preacceso") <= 0) __SetCookie("embebed",origen,".reforma.com"); var redirect = document.location.href; try { var rval = __GetRVal(); if( rval != "" ) { if( redirect.indexOf("?") > 0 ) redirect = redirect.substring(0,redirect.indexOf("?")) + rval; else redirect = redirect + "?" + rval; } } catch(e) {} parent.document.location.replace("https://www.gruporeforma.com/libre/acceso/perfilsuscriptor/prelogon.aspx?hcgr=1&po=&__valguid=daaa1782bc9317ec76498b955d8d747e&__valtmgrc=LLULUUA&__d=.gruporeforma.com&__valida=1&do=www.reforma.com&urlredirect="+redirect); } else { __SetCookie("embebed","",".reforma.com"); __SiguienteDominio(); } } else { setTimeout(timesleepgr,100); } } function __SiguienteDominio() { var gla = document.createElement('script'); gla.type = 'text/javascript'; gla.async = true; gla.src = "https://www.gruporeforma.com/libre/acceso/perfilsuscriptor/prelogon.aspx?po=&__valguid=daaa1782bc9317ec76498b955d8d747e&__valtmgrc=LLULUUA&__d=.gruporeforma.com&do=www.reforma.com&urlredirect=https://www.reforma.com"; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gla, s); } __SetCookie("pp","pp",".reforma.com"); function __validarcookies() { if( __GetCookie("pp") != "pp" ) { top.document.location.replace( "/libre/acceso/menu.htm?estatus=5" ); } else { (function() { var gla = document.createElement('script'); gla.type = 'text/javascript'; gla.async = true; gla.src = "https://www.gruporeforma.com/libre/acceso/perfilsuscriptor/prelogon.aspx?__t=1&po=&do=www.reforma.com&urlredirect=https://www.reforma.com"; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gla, s); })(); setTimeout(timesleep,100); } } var veces = 0; function __AddLoadEvent() { __validarcookies(); } __AddLoadEvent();