function jLogNav(tag) { LogTag("NV", tag, "es"); return true; } function jLogServicio(tag){ LogTag("G", tag); return true; } function jAnunciateQDQ(){ LogTag("G", "AN", "es"); return true; } function jmapa(ref) { if (ref.length > 0){ LogTag("P", ref); return true; } } function jmapafoto(ref) { if (ref.length > 0){ LogTag("FOT", ref); return true; } } function jguardar(ref) { if (ref.length > 0) { LogTag("AGZG", ref); } } function jenviarSMS(ref) { if (ref.length > 0) { LogTag("AGZE", ref); } } 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 LogTag(type, ref) { var url; url = "http://es.qdq.com/blancas/scripts/Anuncio.aspx?Lang=es&p=B&t=" + type + "&r=" + ref + "&d="+(Math.random()*100000); $.get(url); } 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_ddlMunicipio1");} if (que == 'la'){combobox = document.getElementById("ctl00_CPH_ddlLocalidad1");} if (que == 'mar'){combobox = document.getElementById("ctl00_CPH_ddlMunicipio");} if (que == 'lar'){combobox = document.getElementById("ctl00_CPH_ddlLocalidad");} for (var i = (combobox.options.length-1); i >= 0; i--) {combobox.options[i]=null;} combobox.options.add(new Option(texto,1)); } 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 + "/blancas/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); }