function jLogNav(tag) { LogaTag("NV", tag); return true; } function jLogServicio(tag){ LogaTag("G", tag); return true; } function jLogNav(tag) { LogaTag("NV", tag); return true; } function jinfoplus(ref) { if (ref.length > 0) { LogaTag("IP", ref, "es"); } } function jweb(ref) { if (ref.length > 0) { LogaTag("W", ref); } } function jinfomg(ref) { if (ref.length > 0) { LogaTag("MP", ref); return true; } } function jinfoplusmapa(ref, url) { if (ref.length > 0) { LogaTag("IP", ref); Janela_Centro_Full(url,'infop','1024','768','yes'); } } function jinfomgmapa(ref, url) { if (ref.length > 0) { LogaTag("MG", ref); Janela_Centro_Full(url,'infop','1024','768','yes'); } } function jguardar(ref) { if (ref.length > 0) { LogaTag("AGZG", ref); } } function jenviarSMS(ref) { if (ref.length > 0) { LogaTag("AGZE", ref); } } function jmapa(ref) { if (ref.length > 0) { LogaTag("P", ref); } } function jbooking(ref) { if (ref.length > 0) { LogaTag("BOOK", ref); } } function jclip(ref){ if (ref.length > 0) { LogaTag("CLI", ref); } } function jclipmapa(ref){ if (ref.length > 0) { LogaTag("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 + '/ocio/scripts/clip.aspx?ref='+ref,'clip','400','355','yes');} } } function jmapafoto(ref) { if (ref.length > 0) { LogaTag("FOT", ref); } } function jcallg(t) { LogaTag("L", t); } function jtrafico(pagina,nome) { LogaTag("G", nome); var strURL='http://www.qdq.com/' + pagina + "?lang=" + "es"; location.href = strURL; } 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 LogTag(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/ocio//scripts/Anuncio.aspx?Lang=es&p=O&t=" + type + "&r=" + ref + "&d="+(Math.random()*100000); } else{ url = "http://" + document.domain + "/ocio/scripts/Anuncio.aspx?Lang=es&p=O&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 jBuscar(frm){ var strTexto = document.getElementById("ctl00_CPH_tbxBusqueda0").value; var strURL='http://www.qdq.com/' + "scripts/QDQResultados.aspx?lang=es&Que=" + strTexto; location.href = strURL; } function MostrarMapa() { LogaTag('P', 'RESULT'); } function SelectProvincia(frm, strCodProv, strProv) { document.getElementById("ctl00_CPH_hfCodProvincia").value = strCodProv; document.getElementById("ctl00_CPH_hfProvincia").value = strProv; document.getElementById("ctl00_CPH_hfCodMunicipio").value = ""; document.getElementById("ctl00_CPH_hfMunicipio").value = ""; document.getElementById("ctl00_CPH_hfCodLocalidad").value = ""; document.getElementById("ctl00_CPH_hfLocalidad").value = ""; document.getElementById("ctl00_CPH_hfOff").value = "0"; ValidaForm(); } function SelectMunicipio(frm, strCodMunicipio, strMun) { document.getElementById("ctl00_CPH_hfOff").value="0"; document.getElementById("ctl00_CPH_hfCodMunicipio").value=strCodMunicipio; document.getElementById("ctl00_CPH_hfMunicipio").value=strMun; document.getElementById("ctl00_CPH_hfCodLocalidad").value=""; document.getElementById("ctl00_CPH_hfLocalidad").value=""; ValidaForm(); } function SelectLocalidad(frm, strCodLocalidad, strLoc) { document.getElementById("ctl00_CPH_hfOff").value="0"; document.getElementById("ctl00_CPH_hfCodLocalidad").value=strCodLocalidad; document.getElementById("ctl00_CPH_hfLocalidad").value=strLoc; ValidaForm(); } function unSelectAll() { document.getElementById("ctl00_CPH_hfOff").value="0"; document.getElementById("ctl00_CPH_hfPag").value="0"; document.getElementById("ctl00_CPH_hfCodLocalidad").value=''; document.getElementById("ctl00_CPH_hfLocalidad").value=''; document.getElementById("ctl00_CPH_hfCodMunicipio").value=''; document.getElementById("ctl00_CPH_hfMunicipio").value=''; document.getElementById("ctl00_CPH_hfCodProvincia").value=''; document.getElementById("ctl00_CPH_hfProvincia").value=''; document.getElementById("ctl00_CPH_hfActividad").value=''; document.getElementById("ctl00_CPH_hfCodActividad").value=''; document.forms[0].action = location.href; document.forms[0].submit(); } function unSelectNombre(frm) { document.getElementById("ctl00_CPH_hfOff").value="0"; document.getElementById("ctl00_CPH_hfPag").value="0"; ValidaForm(); } function unSelectCorrelato() { document.getElementById("ctl00_CPH_hfOff").value="0"; document.getElementById("ctl00_CPH_hfPag").value="0"; document.getElementById("ctl00_CPH_hfCodActividad").value=''; document.getElementById("ctl00_CPH_hfActividad").value=''; ValidaForm(); } function unSelectMunicipio() { LogaTag('MIG', 'PROV'); document.getElementById("ctl00_CPH_hfOff").value="0"; document.getElementById("ctl00_CPH_hfPag").value="0"; document.getElementById("ctl00_CPH_hfCodLocalidad").value=''; document.getElementById("ctl00_CPH_hfLocalidad").value=''; document.getElementById("ctl00_CPH_hfCodMunicipio").value=''; document.getElementById("ctl00_CPH_hfMunicipio").value=''; ValidaForm(); } function unSelectLocalidad() { LogaTag('MIG', 'MUN'); document.getElementById("ctl00_CPH_hfOff").value="0"; document.getElementById("ctl00_CPH_hfPag").value="0"; document.getElementById("ctl00_CPH_hfCodLocalidad").value=''; document.getElementById("ctl00_CPH_hfLocalidad").value=''; ValidaForm(); } function Nave(frm,offset,pagnum) { document.getElementById("ctl00_CPH_hfOff").value=offset; document.getElementById("ctl00_CPH_hfPag").value=pagnum; document.forms[0].action = window.location.href; document.forms[0].submit(); } function jsCargando(que){ lang = 'es' var texto = 'Cargando'; if (lang=="es") {texto='Cargando';} if (lang=="en") {texto='Loading';} if (lang=="ek") {texto='Cargando';} if (lang=="ct") {texto='Cargando';} if (lang=="fr") {texto='Cargando';} if (lang=="gl") {texto='Cargando';} if (lang=="pt") {texto='Cargando';} if (lang=="vl") {texto='Cargando';} if (que == 'ma'){combobox = document.getElementById("ctl00_CPH_ddlMunicipioRestaurante");} if (que == 'la'){combobox = document.getElementById("ctl00_CPH_ddlLocalidadRestaurante");} if (que == 'mah'){combobox = document.getElementById("ctl00_CPH_ddlMunicipioHotel");} if (que == 'lah'){combobox = document.getElementById("ctl00_CPH_ddlLocalidadHotel");} if (que == 'mahr'){combobox = document.getElementById("ctl00_CPH_ddlMunicipioHoteles");} if (que == 'lahr'){combobox = document.getElementById("ctl00_CPH_ddlLocalidadHoteles");} for (var i = (combobox.options.length-1); i >= 0; i--){combobox.options[i]=null;} combobox.options.add(new Option(texto,1)); } function ValidaForm() { var strActividad=''; var strProvincia=''; var strMunicipio=''; var strLocalidad=''; var strBarrio=''; var strCadSEO=''; if (document.getElementById("ctl00_CPH_hfActividad").value != '') {strActividad = document.getElementById("ctl00_CPH_hfActividad").value;} if (document.getElementById("ctl00_CPH_hfProvincia").value != '') {strProvincia = "/" + document.getElementById("ctl00_CPH_hfProvincia").value ;} if (document.getElementById("ctl00_CPH_hfMunicipio").value != '') {strMunicipio = "/" + document.getElementById("ctl00_CPH_hfProvincia").value;} if (document.getElementById("ctl00_CPH_hfLocalidad").value != '') {strLocalidad = "/" + document.getElementById("ctl00_CPH_hfLocalidad").value;} strCadSEO = strActividad + strProvincia + strMunicipio + strLocalidad; if (document.domain.indexOf("localhost") != -1) { if (location.href.indexOf("/hoteles/") != -1) {strURL='http://www.qdq.com/ocio/' + "hoteles/especialidad/";} else {strURL='http://www.qdq.com/ocio/' + "restaurantes/especialidad/";} } else { if (location.href.indexOf("/hoteles/") != -1) {strURL="http://" + document.domain + "/hoteles/especialidad/";} else {strURL="http://" + document.domain + "/restaurantes/especialidad/";} } strURL = strURL + strCadSEO + "/"; document.forms[0].action = strURL; document.forms[0].submit(); } function LogTagMi(type, ref, lang) { var strCodActividad=''; var strCodProvincia=''; var strCodMunicipio=''; var strCodLocalidad=''; if (document.getElementById("ctl00_CPH_hfCodActividad").value != '') {strCodActividad = document.getElementById("ctl00_CPH_hfCodActividad").value;} if (document.getElementById("ctl00_CPH_hfCodProvincia").value != '') {strCodProvincia = document.getElementById("ctl00_CPH_hfCodProvincia").value;} if (document.getElementById("ctl00_CPH_hfCodMunicipio").value != '') {strCodMunicipio = document.getElementById("ctl00_CPH_hfCodMunicipio").value;} if (document.getElementById("ctl00_CPH_hfCodLocalidad").value != '') {strCodLocalidad = document.getElementById("ctl00_CPH_hfCodLocalidad").value;} 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 LogaTag(type, ref) { var url=''; var strURL=''; strURL=replaceAll(location.href, 'http:', '') if (document.domain.indexOf("localhost") != -1) { url = "http://www.qdq.com/ocio//scripts/Anuncio.aspx?Lang=es&p=O&t=" + type + "&r=" + ref + "&OR=" + strURL.substring(2) + "&d="+(Math.random()*100000); } else { url = "http://" + document.domain + "/ocio/scripts/Anuncio.aspx?Lang=es&p=O&t=" + type + "&r=" + ref + "&OR=" + strURL.substring(2) + "&d="+(Math.random()*100000); } $.get(url); } function ClickBann(udac, ref) { var url=''; var strURL=''; strURL=replaceAll(location.href, 'http:', '') if (document.domain.indexOf("localhost") != -1) { url = "http://www.qdq.com//scripts/Anuncio.aspx?anuncio.aspx?p=Q&t=CLBAN&r=" + ref + "&d="+(Math.random()*100000); } else { url = "http://" + document.domain + "/ocio/scripts/Anuncio.aspx?Lang=es&p=Q&t=CLBAN&r=" + ref + "&d="+(Math.random()*100000); } $.get(url); } function replaceAll( text, str1, str2 ) { var command = "text.replace(/"+str1+"/g,\""+str2+"\")"; return eval(command); }