function jLogNav(tag) { LogTag("NV", tag); return true; } function jLogServicio(tag) { LogTag("G", tag); return true; } function jinfoplus(ref) { if (ref.length > 0) { LogTag("IP", 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 jclipsw(ref) { if (ref.length > 0) { LogTag("TU", 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=" + "gl"; location.href = strURL; } function jcallaboral() { pagina='http://www.qdq.com/calendariolaboral/gl/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=gl&p=Q&t=" + type + "&r=" + ref + "&d="+(Math.random()*100000); else url = "http://" + document.domain + "/scripts/Anuncio.aspx?Lang=gl&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); } 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 jBuscarAvanzada(frm) { var strActividad = document.getElementById("ctl00_CPH_tbxActividad").value; var strNombre = document.getElementById("ctl00_CPH_tbxNombre").value; var strProvincia = document.getElementById("ctl00_CPH_ddlProvincia1").value; var strMunicipio = document.getElementById("ctl00_CPH_ddlMunicipio1").value; var strBarrio = document.getElementById("ctl00_CPH_tbxBarrio").value; var strCalle = document.getElementById("ctl00_CPH_tbxCalle1").value; var strNumero = document.getElementById("ctl00_CPH_tbxNúmero1").value; var strURL='http://www.qdq.com/' + "scripts/QDQResultadosAvanzadas.aspx?lang=es&Que=" + strActividad + "&Quien=" + strNombre+ "&CodProv=" + strProvincia+ "&CodMunicipio=" + strMunicipio+ "&Barrio=" + strBarrio+ "&Calle=" + strCalle+ "&Numero=" + strNumero; location.href = strURL; } function MostrarMapa() { LogTagMi('P', 'RESULT'); } function jLogBanner(sUdac, ref) { LogTagMi(sUdac, ref); } function SelectComunidad(strCodCom) { alert(strCodCom); document.getElementById("ctl00_CPH_hfComunidad").value = strCodCom; } function SelectProvincia(frm, strCodProv, strProv) { LogTagMi('FIL', 'PROV'); 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_hfRazonSocial").value = ""; document.getElementById("ctl00_CPH_hfNumRazonSocial").value = ""; document.getElementById("ctl00_CPH_hfOff").value = "0"; ValidaForm(); } function SelectMunicipio(frm, strCodMunicipio, strMun) { LogTagMi('FIL', 'MUN'); 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=""; document.getElementById("ctl00_CPH_hfRazonSocial").value = ""; document.getElementById("ctl00_CPH_hfNumRazonSocial").value = ""; ValidaForm(); } function SelectLocalidad(frm, strCodLocalidad, strLoc) { LogTagMi('FIL', 'LOC'); document.getElementById("ctl00_CPH_hfOff").value="0"; document.getElementById("ctl00_CPH_hfCodLocalidad").value=strCodLocalidad; document.getElementById("ctl00_CPH_hfLocalidad").value=strLoc; document.getElementById("ctl00_CPH_hfRazonSocial").value = ""; document.getElementById("ctl00_CPH_hfNumRazonSocial").value = ""; ValidaForm(); } function unSelectNombre(frm) { document.getElementById("ctl00_CPH_hfOff").value="0"; document.getElementById("ctl00_CPH_hfPag").value="0"; document.getElementById("ctl00_CPH_hfRazonSocial").value = ""; document.getElementById("ctl00_CPH_hfNumRazonSocial").value = ""; ValidaForm(); } function unSelectAll(tipo) { LogTagMi('MIG', 'ALL'); 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 unSelectProvincia(tipo) { LogTagMi('MIG', 'PROV'); document.getElementById("ctl00_CPH_hfOff").value="0"; document.getElementById("ctl00_CPH_hfPag").value="0"; document.getElementById("ctl00_CPH_hfRazonSocial").value = ""; document.getElementById("ctl00_CPH_hfNumRazonSocial").value = ""; 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 unSelectCorrelato(tipo) { LogTagMi('MIG', 'ACT'); 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_hfRazonSocial").value = ""; document.getElementById("ctl00_CPH_hfNumRazonSocial").value = ""; ValidaForm(); } function unSelectMunicipio(tipo) { LogTagMi('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=''; document.getElementById("ctl00_CPH_hfRazonSocial").value=''; document.getElementById("ctl00_CPH_hfNumRazonSocial").value=''; ValidaForm(); } function unSelectMunicipioAv() { LogTagMi('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=''; ValidaForm2(); } function unSelectLocalidad(tipo) { LogTagMi('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=''; document.getElementById("ctl00_CPH_hfRazonSocial").value=''; document.getElementById("ctl00_CPH_hfNumRazonSocial").value=''; ValidaForm(); } function unSelectLocalidadAv() { LogTagMi('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=''; ValidaForm2(); } function Natv(frm,strCodAct,strAct,strOrigen) { LogTagMi('FIL', 'ACT'); document.getElementById("ctl00_CPH_hfCodActividad").value=strCodAct; document.getElementById("ctl00_CPH_hfActividad").value=strAct; document.getElementById("ctl00_CPH_hfOff").value="0"; if (strOrigen == "PROXIMIDAD") { if (strCodAct == '99999') { document.getElementById("ctl00_CPH_hfCodActividad").value=''; document.getElementById("ctl00_CPH_hfActividad").value=''; } ValidaFormProximidad(); } if (strOrigen == "FULL") { document.getElementById("ctl00_CPH_hfRazonSocial").value = ""; document.getElementById("ctl00_CPH_hfNumRazonSocial").value = ""; document.getElementById("ctl00_CPH_hfBusquedaTratada").value = ""; document.getElementById("ctl00_CPH_hfQue").value = strAct; var strDonde = ''; if (document.getElementById("ctl00_CPH_hfLocalidad").value == '') { if (document.getElementById("ctl00_CPH_hfMunicipio").value == '') if (document.getElementById("ctl00_CPH_hfProvincia").value != '') strDonde = document.getElementById("ctl00_CPH_hfProvincia").value; else strDonde = document.getElementById("ctl00_CPH_hfMunicipio").value; } else strDonde = document.getElementById("ctl00_CPH_hfLocalidad").value; var strActMod = replaceAll1(strAct,'+',' '); document.getElementById("ctl00_CPH_tbxBusqueda0").value = strActMod + ' ' + strDonde; document.getElementById("ctl00_CPH_HiddenField_PreventRazon").value = "1"; ValidaForm(); } if (strOrigen == "AVANZADAS") { document.getElementById("ctl00_CPH_hfCodActividad").value=""; ValidaForm2(); } } function replaceAll1( text, busca, reemplaza ){ while (text.toString().indexOf(busca) != -1){ text = text.toString().replace(busca,reemplaza); } return text;} function seleccionar(act) { var strUrl='http://www.qdq.com/' + "Index.aspx?act=" + act; location.href = strUrl; } function Nave(frm,offset,pagnum) { var Prueba = '14'; var iResul; iResult = (parseInt(offset)/parseInt(Prueba)) + 1; var strURL = window.location.href; document.getElementById("ctl00_CPH_hfOff").value = offset; document.getElementById("ctl00_CPH_hfPag").value = pagnum; var strVal='14'; if (parseInt(offset) < parseInt(strVal)) { document.getElementById("ctl00_CPH_hfNumRazonSocial").value = '1'; } else { document.getElementById("ctl00_CPH_hfNumRazonSocial").value = '0'; } if (window.location.href.indexOf("Pag/") != -1) { strURL = window.location.href.substring(0,window.location.href.indexOf("Pag/")); document.forms[0].action = strURL + "Pag/" + iResult + "/";; } else { if ((location.href.indexOf("actividad/") != -1) || (location.href.indexOf("Filtro/") != -1)) { strURL = window.location.href; document.forms[0].action = strURL; } else { strURL = window.location.href + "Pag/" + iResult + "/"; document.forms[0].action = strURL; } } document.forms[0].submit(); } function SubmitFiltroCallejeroAmbiguedad(urlResuelveAmbiguedad, municipio, calle, numero, cp, x, y) { if (urlResuelveAmbiguedad!="Centro") { document.getElementById("ctl00_CPH_hfOff").value="0"; document.getElementById("ctl00_CPH_hfActividad").value="" document.getElementById("ctl00_CPH_hfCodActividad").value=""; document.getElementById("ctl00_CPH_hfMunicipio").value=municipio; document.getElementById("ctl00_CPH_hfCalle").value=calle; document.getElementById("ctl00_CPH_hfNumero").value=numero; document.getElementById("ctl00_CPH_hfCPostal").value=cp; } else { document.getElementById("ctl00_CPH_hfOff").value="0"; document.getElementById("ctl00_CPH_hfActividad").value="" document.getElementById("ctl00_CPH_hfCodActividad").value=""; document.getElementById("ctl00_CPH_hfMunicipio").value=municipio; document.getElementById("ctl00_CPH_hfCalle").value=calle; document.getElementById("ctl00_CPH_hfNumero").value=numero; document.getElementById("ctl00_CPH_hfCPostal").value=cp; document.getElementById("ctl00_CPH_hfX").value=x; document.getElementById("ctl00_CPH_hfY").value=y; } document.forms[0].submit(); } function ValidaForm() { var strActividad=''; var strProvincia=''; var strMunicipio=''; var strLocalidad=''; var strBarrio=''; var strCadSEO=''; if (document.getElementById("ctl00_CPH_hfActividad").value != '') strActividad = replaceAll(document.getElementById("ctl00_CPH_hfActividad").value, " ", "+"); else { strActividad = document.getElementById("ctl00_CPH_hfBusquedaNoAdivinada").value; if (strActividad == '') strActividad = replaceAll(document.getElementById("ctl00_CPH_hfQue").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_hfMunicipio").value; if (document.getElementById("ctl00_CPH_hfLocalidad").value != '') strLocalidad = "/" + document.getElementById("ctl00_CPH_hfLocalidad").value; strCadSEO = strActividad + strProvincia + strMunicipio + strLocalidad; var strURL; if (document.domain.indexOf("localhost") != -1) strURL='http://www.qdq.com/' else strURL="http://" + document.domain + "/"; strURL = strURL + strCadSEO + "/"; document.forms[0].action = strURL.toLowerCase(); document.forms[0].submit(); } function ValidaForm2() { var strActividad = document.getElementById("ctl00_CPH_hfActividad").value; var strNombre = document.getElementById("ctl00_CPH_hfQuien").value; var strProvincia = document.getElementById("ctl00_CPH_hfProvincia").value; var strMunicipio = document.getElementById("ctl00_CPH_hfMunicipio").value; var strBarrio = document.getElementById("ctl00_CPH_hfLocalidad").value; var strCalle = document.getElementById("ctl00_CPH_hfCalle").value; var strNumero = document.getElementById("ctl00_CPH_hfNumero").value; var strFiltroNom = document.getElementById("ctl00_CPH_hfFiltroNombre").value; var strCadSEO; if (document.getElementById("ctl00_CPH_hfActividad").value != '') strActividad = "actividad/" + replaceAll(document.getElementById("ctl00_CPH_hfActividad").value, " ", "+") + "/"; if (document.getElementById("ctl00_CPH_hfQuien").value != '') { strNombre= "nombre/" + replaceAll(document.getElementById("ctl00_CPH_hfQuien").value, " ", "+") + "/"; if (document.getElementById("ctl00_CPH_hfFiltroNombre").value != '') strFiltroNom = "/filtro/" + document.getElementById("ctl00_CPH_hfFiltroNombre").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_hfMunicipio").value; if (document.getElementById("ctl00_CPH_hfLocalidad").value != '') strBarrio = "/" + document.getElementById("ctl00_CPH_hfLocalidad").value; if (document.getElementById("ctl00_CPH_hfCalle").value != '') { strCalle = "/" + "calle/" + document.getElementById("ctl00_CPH_hfCalle").value; if (document.getElementById("ctl00_CPH_hfNumero").value != '') strNumero = "/" + "num/" + document.getElementById("ctl00_CPH_hfNumero").value; } strCadSEO = strActividad + strNombre + strProvincia + strMunicipio + strBarrio + strCalle + strNumero + strFiltroNom; var strURL; if (document.domain.indexOf("localhost") != -1) strURL='http://www.qdq.com/' else strURL="http://" + document.domain + "/"; strURL = strURL + strCadSEO + "/"; document.forms[0].action = strURL; document.forms[0].submit(); } function ValidaFormProximidad() { var strActividad=''; var strProvincia=''; var strMunicipio=''; var strCalle=''; var strNumero=''; var strCadSEO=''; if (document.getElementById("ctl00_CPH_hfActividad").value != '') { strActividad = "Actividad/" + 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_hfMunicipio").value; } if (document.getElementById("ctl00_CPH_hfCalle").value != '') { strCalle = "/" + document.getElementById("ctl00_CPH_hfCalle").value; } if (document.getElementById("ctl00_CPH_hfNumero").value != '') { strNumero = "/" + document.getElementById("ctl00_CPH_hfNumero").value; } strCadSEO = "Proximidad/" + strActividad + strProvincia + strMunicipio + strCalle + strNumero; var strURL; if (document.domain.indexOf("localhost") != -1) { strURL='http://www.qdq.com/' } else { strURL="http://" + document.domain + "/"; } strURL = strURL + strCadSEO + "/"; document.forms[0].action = strURL; document.forms[0].submit(); } function jsCargando(que) { lang = 'gl' 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 == 'mc') {combobox = document.getElementById("ctl00_CPH_ddlMunicipio1");} if (que == 'ma') {combobox = document.getElementById("ctl00_CPH_ddlMunicipio1");} if (que == 'la') {combobox = document.getElementById("ctl00_CPH_ddlLocalidad1");} if (que == 'mfa') {combobox = document.getElementById("ctl00_CPH_ddlMunicipio");} if (que == 'lfa') {combobox = document.getElementById("ctl00_CPH_ddlLocalidad");} if (que == 'map') {combobox = document.getElementById("ctl00_CPH_ddlMunicipio2");} if (que == 'lap') {combobox = document.getElementById("ctl00_CPH_ddlLocalidad2");} if (que == 'ddlMunicipio') {combobox = document.getElementById("ddlMunicipio");} for (var i = (combobox.options.length-1); i >= 0; i--){combobox.options[i]=null;} combobox.options.add(new Option(texto,1)); } function replaceAll( text, str1, str2 ) { var command = "text.replace(/"+str1+"/g,\""+str2+"\")"; return eval(command); } 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 + "/scripts/Anuncio.aspx?Lang=gl&p=Q&t=CLBAN&r=" + ref + "&d="+(Math.random()*100000); } $.get(url); } function LogTagMi(type, ref) { var url=''; var strURL=''; strURL=replaceAll(location.href, 'http:', '') if (document.domain.indexOf("localhost") != -1) { url = "http://www.qdq.com//scripts/Anuncio.aspx?Lang=" + "gl" + "&p=Q&t=" + type + "&r=" + ref + "&OR=" + strURL.substring(2) + "&d="+(Math.random()*100000); } else { url = "http://" + document.domain + "/scripts/Anuncio.aspx?Lang=" + "gl" + "&p=Q&t=" + type + "&r=" + ref + "&OR=" + strURL.substring(2) + "&d="+(Math.random()*100000); } $.get(url); } function LogBusca(activ, tipo, codg, cli, pag) { var url; if (document.domain.indexOf("localhost") != -1) url = "http://www.qdqlaguiautil.com//scripts/AnuncioB.aspx?Lang=gl&at=" + tipo + "&ac=" + activ + "&cpr=" + codg + "&p=" + pag + "&que=" + cli + "&d="+(Math.random()*100000); else url = "http://" + document.domain + "/scripts/AnuncioB.aspx?Lang=gl&at=" + tipo + "&ac=" + activ + "&cpr=" + codg + "&p=" + pag + "&que=" + cli + "&d="+(Math.random()*100000); $.get(url); }