function jLogNav(tag) { LogTag("NV", tag); return true; } function jLogServicio(tag) { LogTag("G", tag); return true; } function jinfoplus(ref) { if (ref.length > 0) { LogTag("IQ", ref); return true; } } function jinfomg(ref) { if (ref.length > 0) { LogTag("MP", ref); return true; } } function jinfoplus_imprimir(ref) { if (ref.length > 0) { LogTag("IQIM", ref); self.print(); } } function jinfoplusmapa(ref, url) { if (ref.length > 0) { LogTag("IQ", ref); Janela_Centro_Full(url,'infop','1024','768','yes'); } } function jinfomgmapa(ref, url) { if (ref.length > 0) { LogTag("MG", ref); Janela_Centro_Full(url,'infop','1024','768','yes'); } } function jinfopluscall(ref, url) { if (ref.length > 0) { LogTag("IQ", ref); parent.location.href = url; return true; } } function jinfomgcall(ref, url) { if (ref.length > 0) { LogTag("MP", ref); parent.location.href = url; return true; } } function jaccionescall(log,ref) { LogTag(log, ref); return true; } function jweb(ref) { if (ref.length > 0) { LogTag("W", ref); } } function jitinerario(ref) { if (ref.length > 0) { LogTag("IT", ref); } } function jguardar(ref) { if (ref.length > 0) { LogTag("AGZG", ref); } } function jenviarSMS(ref) { if (ref.length > 0) { LogTag("AGZE", ref); } } function jbooking(ref) { if (ref.length > 0) { LogTag("BOOK", ref); } } function jclip(ref) { if (ref.length > 0) { LogTag("CLI", ref); } } function jclipmapa(ref) { if (ref.length > 0) { LogTag("CLI", ref); if (document.domain.indexOf("localhost") != -1) { Janela_Centro('http://localhost/QDQ_1024_Nurun/scripts/clip.aspx?ref='+ref,'clip','400','355','yes'); } else { Janela_Centro('http://' +document.domain + '/scripts/clip.aspx?ref='+ref,'clip','400','355','yes'); } } } function jContacto() { LogTag("G", "OP"); return true; } function jtrafico(pagina,nome) { LogTag("G", nome); var strURL='http://www.qdq.com/' + pagina + "?lang=" + "es"; location.href = strURL; } function jcallaboral() { pagina='http://www.qdq.com/calendariolaboral/es/index.aspx'; Janela_Centro(pagina,'callab',950,640,'no'); } function jcallg(t) { LogTag("L", t); } function jmapa(ref) { if (ref.length > 0) { LogTag("P", ref); } } function jmapafoto(ref) { if (ref.length > 0) { LogTag("FOT", ref); } } function jinfoqvista3d(ref) { if (ref.length > 0) { LogTag("IQ3D", ref); } } function jinfoq3d(ref) { if (ref.length > 0) { LogTag("IQ3A", ref); } } function jinfoqbooking(ref) { if (ref.length > 0) { LogTag("IQBK", ref); } } function jinfoqemail(ref) { if (ref.length > 0) { LogTag("IQEM", ref); } } function jinfoqfavorito(ref) { if (ref.length > 0) { LogTag("IQFA", ref); } } function jinfoqitinerario(ref) { if (ref.length > 0) { LogTag("IQIT", ref); } } function jinfoqfoto(ref) { if (ref.length > 0) { LogTag("IQFO", ref); } } function jinfoqimprimir(ref) { if (ref.length > 0) { LogTag("IQIM", ref); } } function jinfoqllamada(ref) { if (ref.length > 0) { LogTag("IQLG", ref); } } function jinfoqmapa(ref) { if (ref.length > 0) { LogTag("IQMA", ref); } } function jinfoqproximidad(ref) { if (ref.length > 0) { LogTag("IQPR", ref); } } function jinfoqproximidad2(ref,url,prov,mun,calle,num) { if (ref.length > 0) { LogTag("IQPR", ref); } var strUrl = ''; strUrl = url; mun = mun.replace('/','\%'); calle = calle.replace('.',''); if (num != '') {num = num.replace('.','');} strUrl += "/" + escape(jlimpacampominus(prov)); strUrl += "/" + escape(jlimpacampominus(mun)); strUrl += "/" + escape(jlimpacampominus(calle)); if (num != '') {strUrl += "/" + escape(jlimpacampominus(num));} strUrl += "/"; location.href = strUrl; return true; } function jinfoqguardar(ref) { if (ref.length > 0) { LogTag("IQSA", ref); } } function jinfoqenviar(ref) { if (ref.length > 0) { LogTag("IQSE", ref); } } function jinfoqweb(ref) { if (ref.length > 0) { LogTag("IQWE", ref); } } function jinfoqenlaces(ref) { if (ref.length > 0) { LogTag("IQPK", ref); } } function jinfoqgaleria(ref) { if (ref.length > 0) { LogTag("IQTU", ref); } } function ShowMapa(id, src, officeid) { if (document.getElementById(id).src != src) { document.getElementById(id).src = src; } jmapa(officeid); return true; } function ShowFotoMapa(id, src, officeid) { if (document.getElementById(id).src != src) { document.getElementById(id).src = src; } jmapafoto(officeid); return true; } function ShowMail(id, src, officeid) { if (document.getElementById(id).src != src) { document.getElementById(id).src = src; } return true; } function ShowGuardar(id, src, officeid) { if (document.getElementById(id).src != src) { document.getElementById(id).src = src; } jguardar(officeid); return true; } function ShowEnviar(id, src, officeid) { if (document.getElementById(id).src != src) { document.getElementById(id).src = src; } jenviarSMS(officeid); return true; } function Janela_Centro(pagina, nome, w, h, scroll) { if (screen.width > w) {var winl = (screen.width - w) / 2;} else {var winl = 0;} if (screen.height > h) {var wint = (screen.height - h) / 2;} else {var wint = 0;} wint-=20; if (wint<0) wint=0; winprops = 'toolbar=no,menubar=no,location=no,'+'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable' try { win = this.open(pagina, nome, winprops); } catch(e){} try { if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } } catch(e){} } function Janela_Centro_menu(pagina, nome, w, h, scroll) { if (screen.width > w) {var winl = (screen.width - w) / 2;} else {var winl = 0;} if (screen.height > h) {var wint = (screen.height - h) / 2;} else {var wint = 0;} wint-=20; if (wint<0) wint=0; winprops = 'toolbar=no,menubar=yes,location=no,'+'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',noresizable' try { win = this.open(pagina, nome, winprops); } catch(e){} try { if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } } catch(e){} } function Janela_Centro_Full(pagina,nome,w,h,scroll) { if (screen.width > w) {var winl = (screen.width - w) / 2;} else {var winl = 0;} if (screen.height > h) {var wint = (screen.height - h) / 2;} else {var wint = 0;} wint-=20; if (wint<0) wint=0; winprops = 'toolbar=yes,menubar=no,location=yes,'+'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable' try { win = this.open(pagina, nome, winprops); } catch(e){} try { if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } } catch(e){} } function Janela_Centro_NR(pagina,nome,w,h,scroll) { if (screen.width > w) {var winl = (screen.width - w) / 2;} else {var winl = 0;} if (screen.height > h) {var wint = (screen.height - h) / 2;} else {var wint = 0;} wint-=20; if (wint<0) wint=0; winprops = 'toolbar=no,menubar=no,location=no,'+'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',noresizable' try { win = this.open(pagina, nome, winprops); } catch(e){} try { if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } } catch(e){} } function LogTag2(type, ref, lang) { if (type != null && type.length > 0) { peticion_http = false; if (window.XMLHttpRequest) { // Mozilla, Safari,... peticion_http = new XMLHttpRequest(); if (peticion_http.overrideMimeType) { peticion_http.overrideMimeType('text/html'); } } else if (window.ActiveXObject) { // IE try { peticion_http = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { peticion_http = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {} } } if (!peticion_http) { alert ("Se ha producido un error al mostrar la página, seleccionela de nuevo"); } // Preparar la funcion de respuesta var url; if (document.domain.indexOf("localhost") != -1) { url = "http://www.qdq.com//scripts/Anuncio.aspx?Lang=" + lang + "&p=Q&t=" + type + "&r=" + ref + "&d="+(Math.random()*100000); } else { url = "http://" + document.domain + "/scripts/Anuncio.aspx?Lang=" + lang + "&p=Q&t=" + type + "&r=" + ref + "&d="+(Math.random()*100000); } peticion_http.open("GET", url, true); peticion_http.send(null); function muestraContenido() { if(peticion_http.readyState == 4) { if(peticion_http.status == 200) { } } return false; } } } function LogTag(type, ref) { var url; if (document.domain.indexOf("localhost") != -1) { url = "http://www.qdq.com//scripts/Anuncio.aspx?Lang=es&p=Q&t=" + type + "&r=" + ref + "&d="+(Math.random()*100000); } else { url = "http://" + document.domain + "/scripts/Anuncio.aspx?Lang=es&p=Q&t=" + type + "&r=" + ref + "&d="+(Math.random()*100000); } $.get(url); } function replaceAll( text, str1, str2 ) { var command = "text.replace(/"+str1+"/g,\""+str2+"\")"; return eval(command); } function jlimpacampo(strin) { var strin=strin.toUpperCase(); var str1conv='ÁÀÃÂÄÉÈÊËÌÍÎÏÒÓÔÕÖÙÚÜÛÇÑ,;:.\\"[](){}<>!&^%$#`\'?/-\t\c'; var str2conv='AAAAAEEEEIIIIOOOOOUUUUCN '; var strout=''; for (i=0; i < strin.length; i++) { j=str1conv.indexOf(strin.charAt(i)); if (j==-1) { strout=strout+strin.charAt(i); } else { strout=strout+str2conv.charAt(j); } } return (strout.toLowerCase()); } function jlimpacampominus(strin) { var str1conv='ÁÀÃÂÄáàãâäÉÈÊËéèêëÌÍÎÏìíîïÒÓÔÕÖòóôõöÙÚÜÛÇÑùúüûçñ,;:.\\"[](){}<>!&^%$#`\'?/-'; var str2conv='AAAAAaaaaaEEEEeeeeIIIIiiiiOOOOOoooooUUUUCNuuuucn '; var strout=''; for (i=0; i < strin.length; i++) { j=str1conv.indexOf(strin.charAt(i)); if (j==-1) { strout=strout+strin.charAt(i); } else { strout=strout+str2conv.charAt(j); } } return (strout); }