function escribe_push(id_provincia, id_categ, precio, id_tipocurso){
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; i');
}
function openDocumentFiles(fic,ibusq,lnkvolv)
{
window.open('/emag_users/pcurso/ficheros/frame_uploadfiles.cfm?id_busqueda='+ibusq+'&linkvolver='+lnkvolv+'&urlbase='+fic,'win','height='+(screen.availHeight-10)+',width='+(screen.availWidth-10)+',left=0,top=0,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes');
}
function perfil_usuario(idUsuario,action){
openw(concatenar_cadena('/emag_users/pcurso/opiniones/','index','.cfm?idUsuario='+idUsuario+'&action='+action),635,800,'yes','0');
}
function reCS(){}
function metFin(){}
function recocurso(zonarec,idbusqcurso){
window.open('/emag_users/pcurso/recomendar.cfm?id_busqueda='+idbusqcurso+'&zona='+zonarec,'','width=470,height=500');
}
function caducado(){
objat=document.getElementById('relaccionados');
objat.style.position='absolute';
objat.style.backgroundColor='white';
objat.style.zIndex='20';
objat.style.top='270px';
objat.style.border='10px solid #4aa7af';
msg=document.getElementById('msgcaduc');
objat.style.padding='10px 10px 40px 10px';
prieca=objat.childNodes[0];
objat.insertBefore(msg,prieca);
}
function vmi(enl){
todes=document.getElementById("masinff");
if(todes.style.display==''){
todes.style.display='none';
enl.className='promcns';
}
else{
todes.style.display='';
enl.className='enlacenegro';
}
}
function desptem(enl){
contint=document.getElementById("conttem");
eldfn=enl.parentNode;
pdconte=contint.parentNode;
pdconte.style.height=(contint.offsetHeight+(document.all?0:30))+'px';
eldfn.style.display='none';
if(typeof(capmaps)!='undefined'){
if(capmaps.style.visibility=='visible'){
modtop()
}
}
}
function desptemb(){
contint=document.getElementById("conttem");
eldfn=document.getElementById("ttemamp");
pdconte=contint.parentNode;
if(contint.offsetHeight<243){
pdconte.style.height=(contint.offsetHeight+(document.all?0:30))+'px';
eldfn.style.display='none';
}
}
var old_objeto;
function modtop(){
capmaps.style.top=(capamapa.offsetTop+1)+'px';
capmaps.style.left=(capamapa.offsetLeft)+'px';
capmaps.style.visibility='visible';
}
function vermapa(objeto,latitud,longitud){
padre=objeto.parentNode;
if(objeto.style.backgroundImage=='url(/emag_users/pcurso/images/fnorm.gif)'){
objeto.style.backgroundImage='url(/emag_users/pcurso/images/finvert.gif)';
objeto.innerHTML='ver mapa';
capamapa.style.display='none';
capmaps.style.visibility='hidden';
}
else{
if(old_objeto){
old_objeto.style.backgroundImage='url(/emag_users/pcurso/images/finvert.gif)';
old_objeto.innerHTML='ver mapa';
}
if(padre.getElementsByTagName('div').length>0){
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";
}
}