function jtrataesp(strin) { strin=' '+strin+' '; strin=strin.replace(/ES /gi,'E '); strin=strin.replace(/E /gi,'A '); strin=strin.replace(/I /gi,'A '); strin=strin.replace(/O /gi,'A '); strin=strin.replace(/U /gi,'A '); strin=strin.replace(/S /gi,' '); strin=strin.replace(/ LA /gi,''); strin=strin.replace(/ DA /gi,''); strin=strin.replace(/ STA /gi,''); strin=strin.replace(/ A /gi,''); strin=strin.replace(/ Y /gi,''); strin=strin.replace(/B /gi,'BA '); strin=strin.replace(/C /gi,'CA '); strin=strin.replace(/D /gi,'DA '); strin=strin.replace(/F /gi,'FA '); strin=strin.replace(/G /gi,'GA '); strin=strin.replace(/H /gi,'HA '); strin=strin.replace(/J /gi,'JA '); strin=strin.replace(/K /gi,'KA '); strin=strin.replace(/L /gi,'LA '); strin=strin.replace(/M /gi,'MA '); strin=strin.replace(/N /gi,'NA '); strin=strin.replace(/P /gi,'PA '); strin=strin.replace(/Q /gi,'QA '); strin=strin.replace(/R /gi,'RA '); strin=strin.replace(/S /gi,'SA '); strin=strin.replace(/T /gi,'TA '); strin=strin.replace(/V /gi,'VA '); strin=strin.replace(/W /gi,'WA '); strin=strin.replace(/Z /gi,'ZA '); //strin=strin.replace(/ /gi,'A '); strin=trim(strin); return (strin); } function jblockcid(innome) { var itotpal; var strnomelimpo; var strprovincias=''; var invalido; strnomelimpo=jlimpacampo(innome); strnomelimpo=jtrataesp(strnomelimpo); strnomelimpo=','+strnomelimpo+','; //alert(strnomelimpo); itotpal=contapalavras(strnomelimpo); invalido=( (itotpal<2) && (strprovincias.indexOf(strnomelimpo)!=-1) ); return (invalido); } function jblockcid2(sender, args) { var txtBusca=document.form1.txtBusca.value; if ( (txtBusca.length<2) || (jblockcid(txtBusca)) ) { args.IsValid = false; } } function jblockcid3(sender, args) { var txtNombre=document.form1.UcBuscaResultado1_txtNombre.value; if ( (txtNombre.length<2) || (jblockcid(txtNombre)) ) { args.IsValid = false; //alert('invalido'); } } function trim(sString) { while (sString.substring(0,1) == ' ') { sString = sString.substring(1, sString.length); } while (sString.substring(sString.length-1, sString.length) == ' ') { sString = sString.substring(0,sString.length-1); } return (sString); } function tiraespduplo(frase) { var strfrase=frase; while (strfrase.indexOf(' ')!=-1) { strfrase=strfrase.replace(/ /gi,' '); } return (strfrase); } function contapalavras(frase) { var numpal=0; var strfrase=trim(frase); strfrase=tiraespduplo(strfrase); strfrase=' '+strfrase; for (i=0 ;i < strfrase.length; i++) { if (strfrase.charAt(i)==' ') { numpal++; } } return (numpal); } 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); } function jstrclean(strin) { var invalid=",;:.\\\"[](){}<>!&^%#`'?¿!¡/-çÇ*"; var strout=""; for (i=0 ; i < strin.length; i++ ) { var letter=strin.charAt(i); if (invalid.indexOf(letter) == -1) strout=strout+letter; } return trim(strout); } function jweb(web) { if (web.length > 0) { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=W&r="+web; var web2=web.toLowerCase(); if (web2.indexOf("http://")!=0) web="http://"+web; Janela_Centro_Full(web,'webrest','780','590','yes'); } } function jmail(email) { if (email.length > 0) { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=E&r="+email; parent.location="mailto:"+email; } } function jItinerariosyMapas() { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=ITM&r=ItinerariosMapas"; pagina='http://www.qdq.com/contenidos/mappy?Lang=es'; Janela_Centro(pagina,'gmundo',1024,540,'yes'); } function jSEO(url) { if (url.length > 0) { Janela_Centro('http://www.qdq.com//'+url,'PiePagina','1024','768','yes'); } } function jMailEbayOld() { var tag = new Image(); tag.src="http://www.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=EEBAY&r="; parent.location="mailto:sac@qdqmedia.com"; } function jMailEbay() { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=EEBAY&r="; Janela_Centro_NR('http://www.qdq.com//scripts/ebay.aspx?t=1&Lang=es','ebay','474','475','no'); } function jEncuesta() { var tag = new Image(); tag.src="http://www.qdq.com//scripts/anuncio.aspx?Lang=es&p=Q&t=G&r=POPINION"; Janela_Centro_NR('http://survey.novatris.com/wix/p71759821.aspx?s=uvy037luv&tdb=3','encuesta','1024','768','yes'); } function jTiempo() { //Janela_Centro('http://www.qdq.com//scripts/Tiempo.aspx?Lang=es','papel','490','450','yes'); Janela_Centro('http://blancas.qdq.com//scripts/Tiempo.aspx?Lang=es','papel','490','450','yes'); } function jwebcam(pagina,nome) { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=G&r="+nome; pagina='http://www.qdq.com//contenidos/'+pagina; Janela_Centro(pagina,nome,840,600,'yes'); } function jTiempoINM() { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=INM&r="; Janela_Centro('http://www.qdq.com//scripts/TiempoINM.aspx','tiempo','780','712','no'); } function jPublicidad(lang) { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=KFU&r="; Janela_Centro('http://www.qdqungfu.com/info.php?Lang='+lang, 'QDQUNGFU','1024','560','no'); } function j3D() { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=3D&r="; var idioma = 'es'; if (idioma == "vl") {idioma = "ct";} pagina='http://3d.qdq.com/index.' + idioma + '.html'; Janela_Centro(pagina,'3D','1000','740','yes'); } function j3DN() { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=NV&r=3DN"; var idioma = 'es'; if (idioma == "vl") {idioma = "ct";} pagina='http://3d.qdq.com/index.' + idioma + '.html'; Janela_Centro(pagina,'3D','1000','740','yes'); } function jmapaB(cep,end,num,tel) { if ( (cep.length > 0) && (num.length > 0) && (end.length > 0) ) { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=P&r="+cep; Janela_Centro('../scripts/mapaB.aspx?lang=es&cep='+cep+'&end='+end+'&tel='+tel+'&num='+num,'mapaqdq','640','600','no'); } } function jmapa(ref) { if (ref.length > 0) { var tag = new Image(); tag.src="http://www.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=P&r="+ref; Janela_Centro('http://www.qdq.com//scripts/mapa.aspx?Lang=es&Ref='+ref,'mapaqdq','750','768','no'); } } function jfotoB(cep,end,num,tel) { if ( (cep.length > 0) && (num.length > 0) && (end.length > 0) ) { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=F&r="+cep; Janela_Centro('../scripts/fotoB.aspx?lang=es&cep='+cep+'&end='+end+'&tel='+tel+'&num='+num,'fotoqdq','640','600','no'); } } function jmapafotoB(cep,end,num) { if ( (cep.length > 0) && (num.length > 0) && (end.length > 0) ) var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=FOT&r="+cep; Janela_Centro('../scripts/mapafotoB.aspx?lang=es&cep='+cep+'&end='+end+'&num='+num,'mapafoto','850','600','yes'); } function jenviarB(ref) { if (ref.length>0) { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=AGZE&r="+ref; ref='BL'+ref; //Janela_Centro_NR('http://qdq.agendize.com/qdq/inserter/cards/inserter.jsp?lang=es&virtual=true&type=xml&mapping=blenviar&author=qdq&id='+ref+'&btype=contact','enviar','500','500','no'); //Janela_Centro_NR('http://qdq.agendize.com/qdq/inserter/cards/inserter.jsp?lang=es&virtual=true&type=xml&mapping=multimoduloblenviar&author=qdq&id='+ref+'&btype=contact','enviar','500','500','no'); Janela_Centro_NR('http://o1.agendize.com/w1/inserter/box?lang=es&virtual=true&type=xml&mapping=multimoduloblenviar&author=qdq&id='+ref+'&btype=contact','enviar','500','500','no'); } } function jguardarB(ref) { if (ref.length>0) { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=AGZG&r="+ref; ref='BL'+ref; //Janela_Centro_NR('http://qdq.agendize.com/qdq/inserter/cards/inserter.jsp?lang=es&virtual=true&type=xml&mapping=blguardar&author=qdq&id='+ref+'&btype=contact','guardar','500','500','no'); Janela_Centro_NR('http://o1.agendize.com/w1/inserter/box?lang=es&virtual=true&type=xml&mapping=blguardar&author=qdq&id='+ref+'&btype=contact','guardar','500','500','no'); } } function jitinerario(ref) { if (ref.length > 0) { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=IT&r="+ref; Janela_Centro('http://www.qdq.com//scripts/Itinerario.aspx?Lang=es&Ref='+ref,'itinerarioqdq','750','600','yes'); } } function jgoAma(lang) { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=NV&r=AM"; window.location = "http://www.qdq.com//Index.aspx?Lang=" + lang; } function jgoBla(lang) { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=NV&r=BLA"; window.location = "http://blancas.qdq.com//Index.aspx?Lang=" + lang; } function jgoRes(lang) { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=NV&r=RES"; window.location = "http://restaurantes.qdq.com//Index.aspx?Lang=" + lang; } function jgoProx(lang) { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=NV&r=PROX"; window.location = "http://www.qdq.com//scripts/IndexCallejeroProx.aspx?Lang=" + lang; } function jgoInmob(lang) { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=NV&r=INMOB"; window.location = "http://www.qdq.com//scripts/IndexCanalInmobiliario.aspx?Lang=" + lang; } function jgoCallejero(lang) { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=NV&r=CALL"; window.location = "http://www.qdq.com//contenidos/calfoto/index.aspx?Lang=" + lang; } function jgoHot(lang) { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=NV&r=HOT"; window.location = "http://hoteles.qdq.com//Index.aspx?Lang=" + lang; } function Caduca(dias) { var hoy = new Date() //coge la fecha actual var msEnXDias = eval(dias) * 24 * 60 * 60 * 1000 //pasa los dias a mseg. hoy.setTime(hoy.getTime() + msEnXDias) //fecha de caducidad: actual + caducidad return (hoy.toGMTString()) } function jgocat() { caducidad = Caduca(31); document.cookie = "Idioma=ca-ES; expires=" + caducidad + "; path=/;" window.location = "http://blancas.qdq.com//Index.aspx?lang=ct"; } function jgoen() { caducidad = Caduca(31); document.cookie="Idioma=en-GB;expires=" + caducidad + "; path=/;" window.location = "http://blancas.qdq.com//Index.aspx?lang=en"; } function jgoes() { caducidad = Caduca(31); document.cookie="Idioma=es-ES;expires=" + caducidad + "; path=/;" window.location = "http://blancas.qdq.com//Index.aspx?lang=es"; } function jgoek() { caducidad = Caduca(31); document.cookie="Idioma=eu-ES;expires=" + caducidad + "; path=/;" window.location = "http://blancas.qdq.com//Index.aspx?lang=ek"; } function jgofr() { caducidad = Caduca(31); document.cookie="Idioma=fr-FR;expires=" + caducidad + "; path=/;" window.location = "http://blancas.qdq.com//Index.aspx?lang=fr"; } function jgogl() { caducidad = Caduca(31); document.cookie="Idioma=gl-ES;expires=" + caducidad + "; path=/;" window.location = "http://blancas.qdq.com//Index.aspx?lang=gl"; } function jgopt() { caducidad = Caduca(31); document.cookie="Idioma=pt-PT;expires=" + caducidad + "; path=/;" window.location = "http://blancas.qdq.com//Index.aspx?lang=pt"; } function jgova() { caducidad = Caduca(31); document.cookie="Idioma=vi-VN;expires=" + caducidad + "; path=/;" window.location = "http://blancas.qdq.com//Index.aspx?lang=vl"; } function jAyudaBlancas() { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=G&r=HELP"; pagina='http://blancas.qdq.com//contenidos/ayuda/es/Index.aspx'; Janela_Centro(pagina,'Ayuda','575','700','no'); } function jtrabaja(web) { if (web.length > 0) { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=TRABAJA&r="+web; var web2=web.toLowerCase(); var url = "http://www.qdq.com//contenidos/rh/"+web Janela_Centro_Full(url,'webrest','780','590','yes'); } } function jebay(ref) { if (ref.length > 0) { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=EBAY&r="+ref; var jname=(jlimpacampo(ref)); jname=jname.replace(/ /gi,''); Janela_Centro_Full('http://infoplus.qdq.com/'+ref+'/es/ebay.htm',jname,'833','580','yes'); } } function jinfoplus(ref) { if (ref.length > 0) { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=IP&r="+ref; var jname=(jlimpacampo(ref)); jname=jname.replace(/ /gi,''); Janela_Centro_Full('http://infoplus.qdq.com/'+ref,jname,'833','580','yes'); } } function jpapel(ref) { if (ref.length > 0) { Janela_Centro("http://www.qdq.com//scripts/papel.aspx?Lang=es&ref="+ref,"papel", "510", "400", "yes"); } } function jclip(ref) { if (ref.length > 0) { Janela_Centro('../scripts/clip.aspx?ref='+ref,'clip','400','355','yes'); } } function jActividades() { Janela_Centro_NR('../scripts/actividades.aspx?Lang=es','actividades','580','500','yes'); } function jcateg(cat) { Janela_Centro_NR('../scripts/categorias.asp?p='+cat,'categorias','580','500','no'); } function jGadget() { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/Anuncio.aspx?Lang=es&p=B&t=G&r=GADGET"; Janela_Centro_NR('http://www.qdq.com//contenidos/gadget/index_es.html','Gadget','795','565','yes'); } function jgoqdq(partner) { if (partner=='SKYPE') { top.location='http://www.qdq.com//skype.asp?Lang=es'; } else { top.location='http://www.qdq.com/?Lang=es'; } } function jgores(partner) { if (partner=='SKYPE') { top.location='/skype.asp?Lang=es'; } else { top.location='?Lang=es'; } } function jgobla(partner) { if (partner=='SKYPE') { top.location='http://blancas.qdq.com//skype.asp?Lang=es'; } else { top.location='http://blancas.qdq.com/?Lang=es'; } } function jgocalfoto(partner) { if (partner=='SKYPE') { top.location='http://www.qdq.com//skypefotos.asp?Lang=es'; } else { top.location='http://www.qdq.com//indexfotos.asp?Lang=es'; } } function jgonewqdq() { Janela_Centro_Full('http://www.qdq.com/?Lang=es','newqdq','790','590','yes'); } function jgonewres() { Janela_Centro_Full('?Lang=es','newrest','790','590','yes'); } function jgonewbla() { Janela_Centro_Full('http://blancas.qdq.com/?Lang=es','newbla','790','590','yes'); } function jgonewcalfoto() { Janela_Centro_Full('http://www.qdq.com//indexfotos.asp?Lang=es','newcalfot','790','590','yes'); } function jopina() { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=OP&r="; Janela_Centro_NR('http://www.qdq.com//scripts/opinion.aspx?t=1&Lang=es','opina','474','475','no'); } function jtrocaj(pagina) { var tag = new Image(); tag.src="http://www.qdq.com//scripts/anuncio.aspx?Lang=es&p=Q&t=TRC&r="+pagina; window.location=pagina; } function jenviar(ref) { if (ref.length>0) { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=AGZE&r="+ref; ref='RF'+ref; lang = 'es' if (lang=="vl") { Janela_Centro_NR('http://qdq.agendize.com/qdq/inserter/cards/inserter.jsp?lang=ct&virtual=true&type=xml&mapping=multimoduloenviar&author=qdq&id='+ref+'&btype=contact','enviar','500','500','no'); } else { Janela_Centro_NR('http://qdq.agendize.com/qdq/inserter/cards/inserter.jsp?lang=es&virtual=true&type=xml&mapping=multimoduloenviar&author=qdq&id='+ref+'&btype=contact','enviar','500','500','no'); } } } function jguardar(ref) { if (ref.length>0) { var tag = new Image(); tag.src="http://www.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=AGZG&r="+ref; ref='RF'+ref; //Janela_Centro_NR('http://qdq.agendize.com/qdq/inserter/cards/inserter.jsp?lang=es&virtual=true&type=xml&mapping=guardar&author=qdq&id='+ref+'&btype=contact','guardar','500','500','no'); lang = 'es' if (lang=="vl") { Janela_Centro_NR('http://o1.agendize.com/w1/inserter/box?lang=ct&virtual=true&type=xml&mapping=guardar&author=qdq&id='+ref+'&btype=contact','guardar','500','500','no'); } else { Janela_Centro_NR('http://o1.agendize.com/w1/inserter/box?lang=es&virtual=true&type=xml&mapping=guardar&author=qdq&id='+ref+'&btype=contact','guardar','500','500','no'); } } } function jcallgOLD(t) { if (t.length>0) { if (t.substring(0,1)=='+') t=t.substring(1,t.length - 1); if ( (t.substring(0,2)!='34') && (t.substring(0,2)!='33') && (t.substring(0,3)!='351') ) t='34'+t; var tag = new Image(); tag.src="http://www.qdq.com//scripts/anuncio.aspx?Lang=es&p=Q&t=L&r="+t; webVoicePop('AuthorizeURL=http://www.qdq.com/scripts/calla2.asp?phone='+t,'Template=35045'); } } function jcallg(t) { if (t.length>0) { if (t.substring(0,1)=='+') t=t.substring(1,t.length); if ( (t.substring(0,2)!='34') && (t.substring(0,2)!='33') && (t.substring(0,3)!='351') ) t='34'+t; var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=L&r="+t; ref='TL'+t; lang = 'es' if (lang=="vl") { Janela_Centro_NR('http://o1.agendize.com/qdq/inserter/box?lang=ct&virtual=true&type=xml&mapping=clicktocall&author=qdq&id='+ref+'&btype=contact&medias=call','click2call','500','500','no'); } else { Janela_Centro_NR('http://o1.agendize.com/qdq/inserter/box?lang=es&virtual=true&type=xml&mapping=clicktocall&author=qdq&id='+ref+'&btype=contact&medias=call','click2call','500','500','no'); } } } function Alvo(pagina,alvo) { win = this.open(pagina, alvo); if(typeof(win.focus)=="function") win.focus(); } function jguia(pagina,nome) { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=G&r="+nome; pagina='http://www.qdq.com//contenidos/'+pagina; Janela_Centro_Botao(pagina,nome,1024,540,'yes'); } function jguiasmundo() { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=G&r=guiasmundo"; pagina='http://www.qdq.com//contenidos/guiasmundo/es/index.aspx'; Janela_Centro_Botao(pagina,'gmundo',1024,540,'yes'); } function jAvisoLegal(pagina,nome) { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=G&r="+pagina; pagina='http://www.qdq.com//scripts/'+pagina; Janela_Centro_Botao(pagina,nome,800,660,'yes'); } function jcallaboral() { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=G&r=calendariolaboral"; pagina='http://www.qdq.com//contenidos/calendariolaboral/es/index.aspx'; Janela_Centro_Botao(pagina,'gmundo',980,670,'yes'); } function jskype() { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=G&r=skype"; var pagina='http://www.qdq.com//contenidos/skype/index.aspx'; Janela_Centro(pagina,'skype','790','550','no') } function jtiempo(pagina,nome) { var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=G&r="+nome; pagina='http://www.qdq.com//contenidos/'+pagina; Janela_Centro(pagina,nome,840,730,'no'); } function jguiagrande(pagina,nome) { var tag = new Image(); tag.src="http://www.qdq.com//scripts/anuncio.aspx?Lang=es&p=Q&t=G&r="+nome; pagina='http://www.qdq.com//contenidos/'+pagina; Janela_Centro(pagina,nome,800,655,'yes'); } function jguiapeq(pagina,nome) { var tag = new Image(); tag.src="http://www.qdq.com//scripts/anuncio.aspx?Lang=es&p=Q&t=G&r="+nome; pagina='http://www.qdq.com//scripts/'+pagina+'?Lang=es'; Janela_Centro_Botao(pagina,nome,600,250,'no'); } function janunciate() { var tag = new Image(); tag.src="http://www.qdq.com//scripts/anuncio.aspx?Lang=es&p=Q&t=G&r=ANU"; Janela_Centro_NR('http://www.qdq.com//scripts/anunciate.aspx?&Lang=es','anunciate','474','575','no'); } function jfestivaljazz() { var tag = new Image(); tag.src="http://www.qdq.com//scripts/anuncio.aspx?Lang=es&p=Q&t=G&r=JAZZ"; Janela_Centro_NR('http://www.viajazz.com','anunciate','800','800','yes'); } function jtiposanuncios(pagina) { var tag = new Image(); Janela_Centro_NR(pagina,'anuncios','580','675','yes'); } function jcentro(pagina,nome) { var tag = new Image(); tag.src="http://www.qdq.com//scripts/anuncio.aspx?Lang=es&p=Q&t=G&r="+nome; Janela_Centro_Botao(pagina,nome,800,550,'yes'); } 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_Botao(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=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_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 SetTamVCA(w,h) { w=w+40; h=h+58; if (w>800) w=800; if (h>600) h=600; l=(screen.width - w) / 2; t=(screen.height - h) / 2; window.resizeTo(w,h); window.moveTo(l,t); } function click() { if (event.button==2||event.button==3) { alert('Copyright 2006 QDQ.com©'); } } function jcaldire(direccion,ciudad) { var tag = new Image(); tag.src="/scripts/anuncio.aspx?Lang=es&p=Q&t=FOT&r="+direccion+"&c="+ciudad; if (ciudad != 'Otras') { pagina='http://www.qdq.com//contenidos/calfoto/index.aspx?lang=es&direction='+ direccion + '&donde=' + ciudad; } else { pagina='http://www.qdq.com//scripts/indexCallejeroProx.aspx?lang=es&donde=' + ciudad; } Janela_Centro(pagina,'jcaldire',1024,768,'yes'); } function jciudad3D(ciudad) { if (ciudad.length>0) { Janela_Centro('http://3dtest.qdq.com/'+ciudad.toLowerCase() ,'ciudad3d',775,705,'no'); } } var aCities = new Array() aCities[0] = "MADRID" aCities[1] = "BARCELONA" aCities[2] = "VALLADOLID" aCities[3] = "VALENCIA" aCities[4] = "SEVILLA" aCities[5] = "SANTANDER" aCities[6] = "SANTIAGO" var aCodCities = new Array() aCodCities[0] = "03428079" aCodCities[1] = "03408019" aCodCities[2] = "03447186" aCodCities[3] = "03446250" aCodCities[4] = "03441091" aCodCities[5] = "03439075" aCodCities[6] = "03415078" function jbooking(ref,id) { if (id == '') { id = ref; } var tag = new Image(); tag.src="http://blancas.qdq.com//scripts/anuncio.aspx?Lang=es&p=B&t=BOOK&r="+id; var web2=ref.toLowerCase(); if (web2.indexOf("http://")!=0) web2="http://"+ref; Janela_Centro(web2, 'Booking', 775, 705, 'yes'); } function GuardarCookie (nombre, valor, caducidad) { if(!caducidad) caducidad = Caduca(0) //crea la cookie: incluye el nombre, la caducidad y la ruta donde esta guardada //cada valor esta separado por ; y un espacio document.cookie = nombre + "=" + escape(valor) + "; expires=" + caducidad + "; path=/" } function IntroducirCookie(nombre) { //establece la cookie: la caducidad es de 31 dias var _31dias = Caduca(31) //crea la fecha de caducidad si 31 dias if (nombre != "") GuardarCookie("Tiempo", nombre, _31dias) opener.location.href=opener.location.href; window.close(); } function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); var p = ""; for (var i=0;i