function escribe_push(id_provincia, id_categ, precio, id_tipocurso){ document.write('
'); document.write(''); document.write(''); document.write(''); if (GetCookie("EM_SESSIONINFO_UNI")) { document.write(''); } else { document.write(''); document.write(''); document.write('email


'); } document.write(''); document.write('

Al presionar "Suscribirme" estás aceptando expresamente nuestras '); document.write('reglas de uso y '); document.write('política de protección de datos'); document.write('.'); document.write('
'); } function ajax_alta_push(f) { if (f.mail){ if (!verificamail(f.mail,"Por favor, introduce tu e-mail correctamente.")) return false; } f.boton.disabled = "disabled"; xmlhttp_alta=creaXML(); parametrourl= f.action + "?"; var i=0; var params = ""; for (i=0; i0){ capamapa.style.display='block'; capmaps.style.visibility='visible'; } else{ if(typeof(capamapa)!='undefined'){ padre.appendChild(capamapa); capamapa.style.display='block'; window.frames['mgo'].load(latitud,longitud); setTimeout("modtop()",1); } else{ capamapa=document.createElement('div'); capamapa.className='mapagoogle'; capmaps=document.createElement('div'); capmaps.className="mapabsol"; ifrfmaps=''; capmaps.innerHTML=ifrfmaps; capmaps.style.marginLeft='1px'; padre.appendChild(capamapa); padre.style.minHeight='300px'; //alert(padre.parentNode.parentNode.tagName) padre.parentNode.parentNode.parentNode.getElementsByTagName('caption')[0].appendChild(capmaps); window.frames['mgo'].location='/emag_users/pcurso/dsp_mapagoogle.cfm?lat='+latitud+'&lon='+longitud; modtop(); } } objeto.style.backgroundImage='url(/emag_users/pcurso/images/fnorm.gif)'; objeto.innerHTML='ocultar mapa'; old_objeto=objeto; } } function rtlstchkcursos(){ var i=0; var r=''; collpuentes=document.getElementsByName('puentes'); for(i=0;i'); for(u=1;u<=5;u++){ if(u<=valor) document.write(''); else document.write(''); } document.write(''); } function brvas(valor){ var u=1; document.write('
'); for(u=1;u<=5;u++){ if(u<=valor) document.write(''); else document.write(''); } document.write('
'); } function registrar_new(obj,uti,idus,idop){ obj.parentNode.getElementsByTagName('button')[0].disabled = "disabled"; obj.parentNode.getElementsByTagName('button')[1].disabled = "disabled"; xmlhttpb=creaXML(); var urlaux="/cursos_gratis/pcurso/act_utility.cfm?utilidad="+uti+"&idusuario="+idus+"&idopinion="+idop; xmlhttpb.open("GET",urlaux,true); xmlhttpb.onreadystatechange=function() { if (xmlhttpb.readyState==4) { alert(xmlhttpb.responseText); } } xmlhttpb.setRequestHeader('Accept','message/x-jl-formresult'); enviou=document.all?null:xmlhttpb.responseText; xmlhttpb.send(enviou); } function rlnkpht(){ if(document.getElementById("phthome") && GetCookie('EM_SESSIONINFO_UNI')) document.getElementById("phthome").href+='index_buscador.cfm'; } function msjsb(p,s,l){ if (document.getElementById("titcentroficha")) { if (s.length > 1) { mensaje='Curso 100% subvencionado solo para
'+p+''+(s?(' del sector '+s+''):'')+' '+l+''; } else mensaje='Curso 100% subvencionado solo para
'+p+' '+l+''; cpf=document.createElement('div'); cpf.className='sbsmf'; cpf.innerHTML=mensaje; eleinst=document.getElementById("titcentroficha"); pdr=eleinst.parentNode; pdr.insertBefore(cpf,eleinst); } } /* Toggle muestra y oculta requisitos */ function reqvmas(){ var a = document.getElementById('requ'); var b = document.getElementById('requlnk'); if(a.style.overflow == 'auto'){ a.style.height='45px'; a.style.overflow='hidden'; b.style.background='url(/emag_users/pcurso/images/finvert.gif) no-repeat right'; b.firstChild.innerHTML = 'ver m'+ String.fromCharCode(225)+'s'; }else{ a.style.height='auto'; a.style.overflow='auto'; b.style.background='url(/emag_users/pcurso/images/fnorm.gif) no-repeat right'; b.firstChild.innerHTML = 'ocultar'; } } /* Si es mayor de tres lineas ocultar y mostrar link */ function despRequis(){ if(document.getElementById('requ')){ var b = document.getElementById('requ'); //alert(b.offsetHeight); if(b.offsetHeight > 45){ b.style.height='45px'; document.getElementById('requlnk').style.display='inline'; } } } function er(idelement){ if(document.getElementById(idelement).scrollHeight>380){ document.write('ver toda la review') } } function desprev(c){ tm=c.parentNode; divid=tm.id.substring(1); toflow=document.getElementById(divid); if(tm.style.backgroundImage=='url(/emag_users/pcurso/images/finvert.gif)'){ toflow.style.height='auto'; tm.style.backgroundImage='url(/emag_users/pcurso/images/fnorm.gif)'; tm.getElementsByTagName('a')[0].innerHTML='ocultar review'; } else{ toflow.style.height='357px'; tm.style.backgroundImage='url(/emag_users/pcurso/images/finvert.gif)'; tm.getElementsByTagName('a')[0].innerHTML='ver toda la review'; } } function q(){ if(navpag){ deleteCookie('lstidbusquedas'); } } function mostrarpaginacion(idbusqueda){ if(document.referrer.indexOf(domipto)==-1) deleteCookie('lstidbusquedas'); dtbcookie=GetCookie('lstidbusquedas'); var ncurso=0; var esta=false; if(dtbcookie){ /*caso de posibles idbusquedas duplicados*/ if(location.search){ nposco=location.search.indexOf('&n='); if(nposco!=-1){ ncurso=location.search.substring(nposco+3); esta=true; } } info=dtbcookie.split('|;|'); alstbusquedas=info[0].split(','); lareferencia=info[1]; var i=0; var tcursos=alstbusquedas.length; if(tcursos>1){ if(document.all){ document.body.onmousedown=function(){ lnk=event.srcElement; if(lnk.tagName=='A' && lnk.outerHTML.indexOf('http://')!='-1'){navpag=1} } } else{ document.body.onmousedown=function(event){ lnk=event.target; if(lnk.tagName=='A' && lnk.getAttribute('href').indexOf('http://')!=-1){navpag=1} } } window.onunload=q; zpag=document.createElement('div'); zpag.className='ziz'; zpag.style.padding='0px 0px 0px 10px'; if(!ncurso){ for(i=0;iRefinar Búsqueda'; if(ncurso>1) htpg+='« anterior '; else htpg+=''; htpg+=ncurso+' de '+tcursos; if(ncursosiguiente »'; htpg+=''; zpag.innerHTML=htpg; referente=document.getElementById('impresion').nextSibling; referente.parentNode.insertBefore(zpag,referente) } else{ deleteCookie('lstidbusquedas'); } } } } function change_status(){ if (document.getElementById('feedback').style.display == "none") { document.getElementById('feedback').style.display = "block"; document.getElementById('flecha').src = "subvencionados_content/alertas/images/darrow.gif"; } else { document.getElementById('feedback').style.display = "none"; document.getElementById('flecha').src = "subvencionados_content/alertas/images/larrow.gif"; } }