var cookies=new Object(); function extractCookies() { var name, value; var beginning, middle, end; for(name in cookies) { cookies=new OBject(); break; } beginning=0; while(beginningend) || (middle==-1)) { name=document.cookie.substring(beginning,end); value=""; } else { name=document.cookie.substring(beginning,middle); value=document.cookie.substring(middle+1,end); } cookies[name]=unescape(value); beginning=end+2; } } function ventana2() { var anchoP=altoP=0; anchoP=screen.availWidth-50; altoP=screen.availHeight-60; rssbl='no'; window.open('https://www.capacitacionsantander.com.mx/portal.capacitacion/login/home.php?an='+anchoP+'&al='+altoP,'bursahome1329951238','status=no,toolbar=no,scrollbars=yes,location=no,menubar=no,resizable='+rssbl+',width='+anchoP+',height='+altoP+',left=0,top=0'); } function ventana() { document.cookie="cookiesenabled=true"; extractCookies(); if(!cookies["cookiesenabled"]) { alert("Para poder ingresar al sistema debe de activar las cookies en su navegador."); } else { document.cookie="cookiesenabled=true; espires=Thu, 01-Jan-1970 00:00:01 GMT"; ventana2(); } window.location="../"; } function validaFormulario(form1) { for(i=0; i 0){ contraerTodo(lista); document.getElementById(lista.options[lista.selectedIndex].value).style.display="block"; } } // JavaScript function toggle(foo) { if (document.getElementById(foo).style.display == "none") { show(foo); setCookie(foo, "o"); } else { if (document.getElementById(foo).style.display == "block") { hide(foo,1); } else { show(foo,1); } } } function show(foo,f) { document.getElementById(foo).style.display = "block"; if (f) { setCookie(foo, "o"); } } function setCookie(name, value, expires, path, domain, secure) { var curCookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); document.cookie = curCookie; } function hide(foo,f) { document.getElementById(foo).style.display = "none"; if (f) { setCookie(foo, "c"); } } function flip(foo) { if (document.getElementById(foo).style.display == "none") { show(foo); } else { if (document.getElementById(foo).style.display == "block") { hide(foo); } else { show(foo); } } } function msgBorrarFav(){ var mensaje; mensaje="\n\n¿ Esta seguro de borrar este registro de sus paginas favoritas ? \n\n"; if(confirm(mensaje)){ return true; }else{ return false; } } function alertaFavs(formul){ if(formul.noTema.selectedIndex.value==formul.noTema.options[0].value){ alert('Por favor seleccione una opcion'); return false; }else{ return true; } }