
function obj_enlaces(ENLVUELOS,ENLHOTELES,ENLCOCHEALQ,ENLPAQUETEVAC,ENLVUELOHOTEL,ENLVUELOCOCHE,ENLHOTELCOCHE,ENLVUELOHOTELCOCHE){this.ENLVUELOS=ENLVUELOS
this.ENLHOTELES=ENLHOTELES
this.ENLCOCHEALQ=ENLCOCHEALQ
this.ENLPAQUETEVAC=ENLPAQUETEVAC
this.ENLVUELOHOTEL=ENLVUELOHOTEL
this.ENLVUELOCOCHE=ENLVUELOCOCHE
this.ENLHOTELCOCHE=ENLHOTELCOCHE
this.ENLVUELOHOTELCOCHE=ENLVUELOHOTELCOCHE}
var enlaces;function calcularAltura(){var altoIzq=getAbsoluteElementPosition('alturaIzq');var altoDcha=getAbsoluteElementPosition('alturaDcha');var resultado=0;if(altoIzq.top>altoDcha.top){document.getElementById('bannerHomeLargo').style.display="none";document.getElementById('bannerHomeCorto').style.display="block";altoIzq=getAbsoluteElementPosition('alturaIzq');altoDcha=getAbsoluteElementPosition('alturaDcha');resultado=altoIzq.top-altoDcha.top;if(resultado<0){document.getElementById('bannerHomeLargo').style.display="block";document.getElementById('bannerHomeCorto').style.display="none";altoIzq=getAbsoluteElementPosition('alturaIzq');altoDcha=getAbsoluteElementPosition('alturaDcha');resultado=altoIzq.top-altoDcha.top;if(document.getElementById('capaFlex')!=null)
document.getElementById('capaFlex').style.height=resultado+"px";}else{if(document.getElementById('capaFlex')!=null)
document.getElementById('capaFlex').style.height=resultado+"px";}}else{resultado=altoIzq.top-altoDcha.top;if(resultado>0){document.getElementById('bannerHomeLargo').style.display="none";document.getElementById('bannerHomeCorto').style.display="block";}else{document.getElementById('bannerHomeLargo').style.display="block";document.getElementById('bannerHomeCorto').style.display="none";altoIzq=getAbsoluteElementPosition('alturaIzq');altoDcha=getAbsoluteElementPosition('alturaDcha');resultado=altoIzq.top-altoDcha.top;if(resultado<=0){}else{document.getElementById('bannerHomeLargo').style.display="none";document.getElementById('bannerHomeCorto').style.display="block";altoIzq=getAbsoluteElementPosition('alturaIzq');altoDcha=getAbsoluteElementPosition('alturaDcha');resultado=altoIzq.top-altoDcha.top;if(altoIzq.top>altoDcha.top){document.getElementById('bannerHomeLargo').style.display="none";document.getElementById('bannerHomeCorto').style.display="none";}}}
document.getElementById('capaFlex').style.height="0px";}}
function productos(producto,indice){this.producto=producto
this.indice=indice}
function contadorChecks(){if(checkboxes==1){return false;}else{return true;}}
function muestraIconos(numIcono){guardarAccionIcono('muestraIconos('+numIcono+');');var capa="capa_"+numIcono;var icono="icono_"+numIcono;var texto="texto_"+numIcono;var radio=false;var j=0;if(document.getElementById(icono).className!="productoSelecc"){document.getElementById(icono).className="productoSelecc";document.getElementById(texto).className="";var i=0;i=numIcono-1;document.formulario.radio[i].checked=true;capas(numIcono);for(i=0;i<document.formulario.radio.length;i++){if(document.formulario.radio[i].checked!=true){j=i+1;document.getElementById("icono_"+j).className="";document.getElementById("texto_"+j).className="producto";}}}else{for(i=0;i<document.formulario.radio.length;i++){if(document.formulario.radio[i].checked!=true){j=i+1;document.getElementById("icono_"+j).className="";document.getElementById("texto_"+j).className="producto";}}}
calcularAltura(numIcono);}
function capas(numIcono){capaHotelActiva=false;if(numIcono=="1"){display("capa_1","block");display("capa_2","none");display("capa_3","none");checkboxes=1;}else if(numIcono=="2"){display("capa_1","none");display("capa_2","block");display("capa_3","none");capaHotelActiva=true;checkboxes=1;}else if(numIcono=="3"){display("capa_1","none");display("capa_2","none");display("capa_3","block");checkboxes=1;}else if(numIcono=="5"){display("capa_1","block");display("capa_2","block");display("capa_3","none");capaHotelActiva=true;checkboxes=2;}else if(numIcono=="6"){display("capa_1","block");display("capa_3","block");display("capa_2","none");checkboxes=2;}else if(numIcono=="7"){display("capa_1","block");display("capa_2","block");display("capa_3","block");capaHotelActiva=true;checkboxes=3;}else if(numIcono=="8"){display("capa_2","block");display("capa_3","block");display("capa_1","none");capaHotelActiva=true;checkboxes=2;}}
function buscar(idioma){var checksProductos="";if(document.getElementById("icono_1")!=null){if(document.getElementById("icono_1").className=="productoSelecc"){document.getElementById("checkVuelo").value="si";}else{document.getElementById("checkVuelo").value="no";}}
if(document.getElementById("icono_2")!=null){if(document.getElementById("icono_2").className=="productoSelecc"){document.getElementById("checkHotel").value="si";}else{document.getElementById("checkHotel").value="no";}}
if(document.getElementById("icono_3")!=null){if(document.getElementById("icono_3").className=="productoSelecc"){document.getElementById("checkCoche").value="si";}else{document.getElementById("checkCoche").value="no";}}
if(document.getElementById("icono_5")!=null){if(document.getElementById("icono_5").className=="productoSelecc"){document.getElementById("checkVuelo").value="si";document.getElementById("checkHotel").value="si";document.getElementById("checkCoche").value="no";}}
if(document.getElementById("icono_6")!=null){if(document.getElementById("icono_6").className=="productoSelecc"){document.getElementById("checkVuelo").value="si";document.getElementById("checkHotel").value="no";document.getElementById("checkCoche").value="si";}}
if(document.getElementById("icono_7")!=null){if(document.getElementById("icono_7").className=="productoSelecc"){document.getElementById("checkVuelo").value="si";document.getElementById("checkHotel").value="si";document.getElementById("checkCoche").value="si";}}
if(document.getElementById("icono_8")!=null){if(document.getElementById("icono_8").className=="productoSelecc"){document.getElementById("checkVuelo").value="no";document.getElementById("checkHotel").value="si";document.getElementById("checkCoche").value="si";}}
if(document.getElementById("checkVuelo").value=="si"){if(!validarBuscadorVuelo(idioma)){return;}
checksProductos+="1";}else{checksProductos+="0"}
if(document.getElementById("checkHotel").value=="si"){if(!validarBuscadorHotel()){return;}
checksProductos+="1";}else{checksProductos+="0";}
if(document.getElementById("checkCoche").value=="si"){if(!validarBuscadorCoche()){return;}
checksProductos+="1";}else{checksProductos+="0";}
checksProductos+="0";if(!comprobarNumAdultos())
return;document.getElementById("checksProductos").value=checksProductos;document.getElementById("metodo").value="doDisponibilidad";document.getElementById("capaOcultaEnlace").style.display="none";mostrarCargando(1,checksProductos);document.getElementById("formulario").submit();}
function objectEval(text){text=text.replace(/\n/g,' ');text=text.replace(/\r/g,' ');if(text.match(/^\s*\{.*\}\s*$/)){text='['+text+'][0]';}
return eval(text);}
function cerrarCapas(){cerrarDiccionario();cerrarCalendario();}
function abreCapaInfo(){var top="";var left="";var pos=getAbsoluteElementPosition('iconoVac');top=pos.top-130;document.getElementById('capaInfoVac').style.top=top+"px";display('capaInfoVac','block');}
function abrirCapaFlashAyuda(estado){if(estado==2){document.getElementById('capaInfoHome').style.height='17.81em';document.getElementById('capaInfoHome').style.width='25em';}
if(estado==1){document.getElementById('capaInfoHome').style.height='6.56em';document.getElementById('capaInfoHome').style.width='1.73em';}
document.getElementById('capaInfoHome').style.position='absolute';document.getElementById('capaInfoHome').style.left='331px';if(cadena.match(RegExPattern)!=null){document.getElementById('capaInfoHome').style.top='18.12em';}else if(cabecera){document.getElementById('capaInfoHome').style.top='6.56em';}else{document.getElementById('capaInfoHome').style.top='10.8em';}}
function comprobarNumAdultos(){if(document.getElementById("checkHotel").value=="si"&&document.getElementById("checkVuelo").value=="si"){var contadorHotel=0;for(var i=1;i<=document.getElementById("hotelNumHabs").value;i++){contadorHotel+=parseInt(document.getElementById("hotelNumAdulto"
+i).value);}
if(document.getElementById("vueloNumAdultos").value!=contadorHotel){return confirm(obtenerTextoIdioma("ALERTNUMADULTOSDIFF"));}}
return true;}
function enviarDatos(codSite,rutaSegura,descSite){var formulario=document.registro;if((formulario.TXTEMAIL.value==""||formulario.TXTEMAIL.value=="Introduce tu mail")){alertTextoIdioma('SPNEMAILOK');formulario.TXTEMAIL.focus;return;}
if(formulario.TXTNOMBRE.value==""){alertTextoIdioma('ALENOMBRE');focusSel(formulario.TXTNOMBRE);return;}
if(formulario.TXTAPELLIDO1.value==""){alertTextoIdioma('ALAPELL1');focusSel(formulario.TXTAPELLIDO1);return;}
if(formulario.TXTAPELLIDO2.value==""){alertTextoIdioma('ALAPELL2');focusSel(formulario.TXTAPELLIDO2);return;}
if(formulario.TXTPASSWORD.value==""||formulario.TXTPASSWORD.value.length<5){alertTextoIdioma('TXTPASSWORD');return;}
if(formulario.chkboletin.checked==true){formulario.chkboletin.value="S";}else{alertTextoIdioma('SPNCONDICIONESCOMPRA');return;}
if(formulario.chkinformacion.checked==true){formulario.chkinformacion.value="S";}else{formulario.chkboletin.value="N";}
var esCliente=false;dwr.engine.setAsync(false);AjaxMultiproducto.existeCliente(formulario.TXTEMAIL.value,codSite,'altaUsuario',function(data){if(data){var texto=obtenerTextoIdioma('SPNEMAILEXISTE');alert(texto+" "+descSite);esCliente=true;}});dwr.engine.setAsync(true);if(esCliente==false){formulario.action=rutaSegura;formulario.metodo.value="insertarUsuario";alert("ENVIADO");formulario.submit();}}
function dianAntSig(dato,tipo){var str1=document.getElementById("vueloFechaIda").value;var str2=document.getElementById("vueloFechaVuelta").value;var dt1=parseInt(str1.substring(0,2),10);var mon1=parseInt(str1.substring(3,5),10)-1;var yr1=parseInt(str1.substring(6,10),10);var dt2=parseInt(str2.substring(0,2),10);var mon2=parseInt(str2.substring(3,5),10)-1;var yr2=parseInt(str2.substring(6,10),10);var masMenos=(dato*(1000*60*60*24));var nuevaFecha=new Date();var miliseg;var date1=new Date(yr1,mon1,dt1);var date2=new Date(yr2,mon2,dt2);var nuevaBusqueda=true;if(tipo=="IDA"){miliseg=date1.getTime();}else{miliseg=date2.getTime();}
nuevaFecha.setTime(miliseg+masMenos);var dia=parseInt(nuevaFecha.getDate());var mes=parseInt(nuevaFecha.getMonth()+1);var anio=nuevaFecha.getFullYear();if(dia<10)
dia="0"+dia;if(mes<10)
mes="0"+mes;if(tipo=="IDA"){if(!document.getElementById("vueloSoloIda").checked){if(date2>=nuevaFecha){document.getElementById("vueloFechaIda").value=dia+"/"
+mes+"/"+anio;}else{nuevaBusqueda=false;}}else{document.getElementById("vueloFechaIda").value=dia+"/"+mes
+"/"+anio;}}else{if(!document.getElementById("vueloSoloIda").selected){if(nuevaFecha>=date1){document.getElementById("vueloFechaVuelta").value=dia+"/"
+mes+"/"+anio;}else{nuevaBusqueda=false;}}else{document.getElementById("vueloFechaVuelta").value=dia+"/"+mes
+"/"+anio;}}
var idioma=document.formTextoMultiidioma.idioma.value;if(nuevaBusqueda)
buscar(idioma);else
alert(obtenerTextoIdioma('ALERFECHASVUE'));}
function pintarIcono_4(ref,contextPath,ALTIMGFILTROINF){var str='<div class="flota_izda" style="display:none;"><input name="radio" type="radio" value="radiobutton" style="display:none;"';if(ref==''){str+='onclick="window.location.href=\'#\'">';}else{str+='onclick="window.location.href=\''+ref+'\'">';}
str+='</div><div id="texto_4" class="producto_a" style="display:none;"><span id="icono_4">';if(ref==''){str+='<a href=\'#\'>'
+enlaces.ENLPAQUETEVAC
+'&nbsp;&nbsp;<img id="iconoVac"    class="informacion_a"src="'
+contextPath
+'/appBase/images/HAL/icono-i.gif" alt ="'
+ALTIMGFILTROINF
+'" onmouseover="javascript: abreCapaInfo();" onmouseout="display(\'capaInfoVac\',\'none\');" ></a>';}else{str+='<a href=\''
+ref
+'\'>'
+enlaces.ENLPAQUETEVAC
+'&nbsp;&nbsp;<img id="iconoVac"    class="informacion_a"src="'
+contextPath
+'/appBase/images/HAL/icono-i.gif" alt ="'
+ALTIMGFILTROINF
+'" onmouseover="javascript: abreCapaInfo();" onmouseout="display(\'capaInfoVac\',\'none\');" ></a>';}
str+='</span></div>';str+='<div class="limpiar"></div>';escribe("function_pintarIcono",str);}
function pintarIcono_5(ref,contextPath,ALTIMGFILTROINF){var str='<div class="flota_izda" style="display:block;"><input name="radio" type="radio" value="radiobutton" style="display:block;"';str+="onclick=\"window.location.href='"+ref+"'\"";str+='"></div><div id="texto_4" class="producto_a" style="display:block;"><span id="icono_4">';str+='<a href='
+ref
+'>'
+enlaces.ENLPAQUETEVAC
+'&nbsp;&nbsp;<img id="iconoVac" class="informacion_a" src="'
+contextPath
+'/appBase/images/HAL/icono-i.gif" alt ="'
+ALTIMGFILTROINF
+'" onmouseover="javascript: abreCapaInfo();" onmouseout="display(\'capaInfoVac\',\'none\');"></a>';str+='</span></div>';str+='<div class="limpiar"></div>';escribe("function_pintarIcono",str);}
function pintarCajaBuscadorIzda(numIcono){var str='<div class="flota_izda"><input name="radio" type="radio" value="radiobutton"';if(numIcono==1){str+=' checked onclick="javascript:muestraIconos_a(\'1\');"></div><div id="texto_1"><span id="icono_1"  class="productoSelecc_a">';}else{str+='   onclick="javascript:muestraIconos_a(\'1\')"></div><div id="texto_1"><span id="icono_1" class="producto_a">';}
str+="<a href=\"javascript:muestraIconos_a('1')\">";str+=enlaces.ENLVUELOS;str+="</a>";str+='</span></div>';str+='<div class="limpiar"></div>';str+='<div class="flota_izda"><input name="radio" type="radio" value="radiobutton"  ';if(numIcono==2){str+=' checked   onclick="javascript:muestraIconos_a(\'2\')"></div><div id="texto_2"><span id="icono_2" class="productoSelecc_a">';}else{str+=' onclick="javascript:muestraIconos_a(\'2\');"></div><div id="texto_2" class="producto_a"><span id="icono_2">';}
str+="<a href=\"javascript:muestraIconos_a('2')\" >";str+=enlaces.ENLHOTELES;str+="</a>";str+='</span></div> ';str+='<div class="limpiar"></div>';str+='<div class="flota_izda"><input name="radio" type="radio" value="radiobutton"  ';if(numIcono==3){str+=' checked  onclick="javascript:muestraIconos_a(\'3\')"></div><div id="texto_3"><span id="icono_3" class="productoSelecc_a">';}else{str+='  onclick="javascript:muestraIconos_a(\'3\');"></div><div id="texto_3" class="producto_a"><span id="icono_3">';}
str+="<a href=\"javascript:muestraIconos_a('3')\">"
+enlaces.ENLCOCHEALQ+"</a>";str+='</span></div>';str+='<div class="limpiar"></div>';escribe("function_pintarCajaBuscadorIzda",str);}
function pintarCajaBuscadorIzdaSoloCoche(){var str='<div class="flota_izda" style="display:none"><input name="radio" type="radio" value="radiobutton"';str+='   onclick="javascript:muestraIconos_a(\'1\')"></div><div id="texto_1" style="display:none"><span id="icono_1" class="producto_a">';str+="<a href=\"javascript:muestraIconos_a('1')\">";str+=obtenerTextoIdioma("ENLVUELOS");str+="</a>";str+='</span></div>';str+='<div class="limpiar"></div>';str+='<div class="flota_izda" style="display:none"><input name="radio" type="radio" value="radiobutton"  ';str+=' onclick="javascript:muestraIconos_a(\'2\');"></div><div id="texto_2" class="producto_a" style="display:none"><span id="icono_2">';str+="<a href=\"javascript:muestraIconos_a('2')\" >";str+=obtenerTextoIdioma("ENLHOTELES");str+="</a>";str+='</span></div> ';str+='<div class="limpiar"></div>';str+='<div class="flota_izda"><input name="radio" type="radio" value="radiobutton"  ';str+=' checked  onclick="javascript:muestraIconos_a(\'3\')"></div><div id="texto_3"><span id="icono_3" class="productoSelecc_a">';str+="<a href=\"javascript:muestraIconos_a('3')\">"
+obtenerTextoIdioma("ENLCOCHEALQ")+"</a>";str+='</span></div>';str+='<div class="limpiar"></div>';escribe("function_pintarCajaBuscadorIzda",str);}
function pintarCajaBuscadorIzda_1(numIcono){var str='<div class="flota_izda" style="display:none;"><input name="radio" type="radio" value="radiobutton"';if(numIcono==1){str+=' checked onclick="javascript:muestraIconos_a(\'1\');"></div><div id="texto_1" style="display:none;"><span id="icono_1"  class="productoSelecc_a">';}else{str+='   onclick="javascript:muestraIconos_a(\'1\')"></div><div id="texto_1" style="display:none;"><span id="icono_1" class="producto_a">';}
str+='</span></div>';str+='<div class="limpiar"></div>';str+='<div class="flota_izda"><input name="radio" type="radio" value="radiobutton"  ';if(numIcono==2){str+=' checked   onclick="javascript:muestraIconos_a(\'2\')"></div><div id="texto_2"><span id="icono_2" class="productoSelecc_a">';}else{str+=' onclick="javascript:muestraIconos_a(\'2\');"></div><div id="texto_2" class="producto_a"><span id="icono_2">';}
str+="<a href=\"javascript:muestraIconos_a('2')\" >";str+=obtenerTextoIdioma("ENLHOTELES");str+="</a>";str+='</span></div> ';str+='<div class="limpiar"></div>';str+='<div class="flota_izda"><input name="radio" type="radio" value="radiobutton"  ';if(numIcono==3){str+=' checked  onclick="javascript:muestraIconos_a(\'3\')"></div><div id="texto_3"><span id="icono_3" class="productoSelecc_a">';}else{str+='  onclick="javascript:muestraIconos_a(\'3\');"></div><div id="texto_3" class="producto_a"><span id="icono_3">';}
str+="<a href=\"javascript:muestraIconos_a('3')\">"
+obtenerTextoIdioma("ENLCOCHEALQ")+"</a>";str+='</span></div>';str+='<div class="limpiar"></div>';escribe("function_pintarCajaBuscadorIzda",str);}
function pintarCajaBuscadorIzda_2(){var str='<div class="flota_izda"><input name="radio" type="radio" value="radiobutton"';str+='  onclick="javascript:muestraIconos_a(\'1\');"></div><div id="texto_1"><span id="icono_1"  class="producto_a">';str+="<a href=\"javascript:muestraIconos_a('1')\">";str+=obtenerTextoIdioma("ENLVUELOS");str+="</a>";str+='</span></div>';str+='<div class="limpiar"></div>';str+='<div class="flota_izda"><input name="radio" type="radio" value="radiobutton"  ';str+='    onclick="javascript:muestraIconos_a(\'2\')"></div><div id="texto_2"><span id="icono_2" class="producto_a">';str+="<a href=\"javascript:muestraIconos_a('2')\" >";str+=obtenerTextoIdioma("ENLHOTELES");str+="</a>";str+='</span></div> ';str+='<div class="limpiar"></div>';str+='<div class="flota_izda"><input name="radio" type="radio" value="radiobutton"  ';str+='    onclick="javascript:actualizarSisresCoches();muestraIconos_a(\'3\')"></div><div id="texto_3"><span id="icono_3" class="producto_a">';str+="<a href=\"javascript:actualizarSisresCoches();muestraIconos_a('3')\">";str+=obtenerTextoIdioma("ENLCOCHEALQ");str+="</a>";str+='</span></div>';escribe("function_pintarCajaBuscadorIzda",str);}
function actualizarSisresCoches(){var paginaInclude='/appMultiproducto/jsp/actualizarSisres.jsp?sisres='+'COCHES';forwardGetSincrono('',paginaInclude);}
function pintarCajaBuscadorDcha(){var str='<div class="flota_izda"><input name="radio" type="radio" value="radiobutton"  onclick="javascript:muestraIconos_a(\'5\');"></div><div id="texto_5" class="producto_a"><span id="icono_5">';str+="<a href=\"javascript:muestraIconos_a('5');\">";str+=enlaces.ENLVUELOHOTEL;str+="</a>";str+='</span></div>';str+='<div class="limpiar"></div>';str+='<div class="flota_izda"><input name="radio" type="radio" value="radiobutton"  onclick="javascript:muestraIconos_a(\'6\');"></div><div id="texto_6" class="producto_a"><span id="icono_6">';str+="<a href=\"javascript:muestraIconos_a('6');\">";str+=enlaces.ENLVUELOCOCHE;str+="</a>";str+='</span></div>';str+='<div class="flota_izda"><input name="radio" type="radio" value="radiobutton" onclick="javascript:muestraIconos_a(\'7\');"></div><div id="texto_7" class="producto_a"><span id="icono_7"> ';str+="<a href=\"javascript:muestraIconos_a('7');\">";str+=enlaces.ENLVUELOHOTELCOCHE;str+="</a>";str+='</span></div>';str+='<div class="limpiar"></div>';str+='<div class="flota_izda"><input name="radio" type="radio" value="radiobutton" onclick="javascript:muestraIconos_a(\'8\');"></div><div id="texto_8" class="producto_a"><span id="icono_8">';str+="<a href=\"javascript:muestraIconos_a('8');\">";str+=enlaces.ENLHOTELCOCHE;str+="</a>";str+='</span></div> <div class="limpiar"></div>';escribe("function_pintarCajaBuscadorDcha",str);}
function pintarCajaBuscadorDcha_1(){var str='<div class="flota_izda" style="display:none;"><input name="radio" type="radio" value="radiobutton"  onclick="javascript:muestraIconos_a(\'5\');"></div><div id="texto_5" style="display:none;" class="producto_a"><span id="icono_5">';str+='</span></div>';str+='<div class="flota_izda" style="display:none;"><input name="radio" type="radio" value="radiobutton"  onclick="javascript:muestraIconos_a(\'6\');"></div><div id="texto_6" style="display:none;" class="producto_a"><span id="icono_6">';str+='</span></div>';str+='<div class="flota_izda" style="display:none;"><input name="radio" type="radio" value="radiobutton" onclick="javascript:muestraIconos_a(\'7\');"></div><div id="texto_7" style="display:none;" class="producto_a"><span id="icono_7"> ';str+='</span></div>';str+='<div class="limpiar"></div>';str+='<div class="flota_izda"><input name="radio" type="radio" value="radiobutton" onclick="javascript:muestraIconos_a(\'8\');"></div><div id="texto_8" class="producto_a"><span id="icono_8">';str+="<a href=\"javascript:muestraIconos_a('8');\">";str+=enlaces.ENLHOTELCOCHE;str+="</a>";str+='</span></div> <div class="limpiar"></div>';escribe("function_pintarCajaBuscadorDcha",str);}
function pintarCajaBuscadorDcha_2(){var str='<div class="flota_izda"><input name="radio" type="radio" checked value="radiobutton"  onclick="javascript:muestraIconos_a(\'5\');"></div><div id="texto_5" class="productoSelecc_a"><span id="icono_5">';str+="<a href=\"javascript:muestraIconos_a('5');\">";str+=enlaces.ENLVUELOHOTEL;str+="</a>";str+='</span></div>';str+='<div class="limpiar"></div>';str+='<div class="flota_izda" style="display:none;"><input name="radio" type="radio" value="radiobutton"  onclick="javascript:muestraIconos_a(\'6\');"></div><div id="texto_6" style="display:none;" class="producto_a"><span id="icono_6">';str+='</span></div>';str+='<div class="flota_izda" style="display:none;"><input name="radio" type="radio" value="radiobutton" onclick="javascript:muestraIconos_a(\'7\');"></div><div id="texto_7" style="display:none;" class="producto_a"><span id="icono_7"> ';str+='</span></div>';str+='<div class="limpiar"></div>';str+='<div class="flota_izda" style="display:none;"><input name="radio" type="radio" value="radiobutton" onclick="javascript:muestraIconos_a(\'8\');"></div><div id="texto_8" style="display:none;" class="producto_a"><span id="icono_8">';str+='</span></div> <div class="limpiar"></div>';escribe("function_pintarCajaBuscadorDcha",str);}
function pintarBotBuscar(idioma,ENLACEBUSCARHOME){var str="<a href=\"javascript:buscar_a('"+idioma
+"')\" id=\"ENLACEBUSCARHOME\" class=\"bot07_a\">"
+ENLACEBUSCARHOME+"</a>";escribe("function_pintarBotBuscar",str);}
function pintarBotBolet(DIVSUBSCRIBIRME){var str="<a class=\"texto_27_a\" href=\"javascript:mostrarCapa()\">"
+DIVSUBSCRIBIRME+"</a>";escribe("function_pintarBotBolet",str);}
function pintarOcultarCapa(){var str="<span class=\"botactivo_a\"><a href=\"javascript:ocultarCapa();\">X</a></span>";escribe("function_pintarOcultarCapa",str);}
function pintarSolicitarDatos(site,contextPath,desSite,SPNSOLICITAR){var str="<div class=\"bot03\"><a class=\"texto_15_a\" title=\"Solicitar\" href=\"javascript:enviarDatos('"+site+"','"+contextPath+"','"+desSite+"')\"><span id=\"SPNSOLICITAR\">"+SPNSOLICITAR+"</span></a></div>";escribe("function_pintarSolicitarDatos",str);}
function buscar_a(idioma){var checksProductos="";if(document.getElementById("icono_1")!=null){if(document.getElementById("icono_1").className=="productoSelecc_a"){document.getElementById("checkVuelo").value="si";}else{document.getElementById("checkVuelo").value="no";}}
if(document.getElementById("icono_2")!=null){if(document.getElementById("icono_2").className=="productoSelecc_a"){document.getElementById("checkHotel").value="si";}else{document.getElementById("checkHotel").value="no";}}
if(document.getElementById("icono_3")!=null){if(document.getElementById("icono_3").className=="productoSelecc_a"){document.getElementById("checkCoche").value="si";}else{document.getElementById("checkCoche").value="no";}}
if(document.getElementById("icono_5")!=null){if(document.getElementById("icono_5").className=="productoSelecc_a"){document.getElementById("checkVuelo").value="si";document.getElementById("checkHotel").value="si";document.getElementById("checkCoche").value="no";}}
if(document.getElementById("icono_6")!=null){if(document.getElementById("icono_6").className=="productoSelecc_a"){document.getElementById("checkVuelo").value="si";document.getElementById("checkHotel").value="no";document.getElementById("checkCoche").value="si";}}
if(document.getElementById("icono_7")!=null){if(document.getElementById("icono_7").className=="productoSelecc_a"){document.getElementById("checkVuelo").value="si";document.getElementById("checkHotel").value="si";document.getElementById("checkCoche").value="si";}}
if(document.getElementById("icono_8")!=null){if(document.getElementById("icono_8").className=="productoSelecc_a"){document.getElementById("checkVuelo").value="no";document.getElementById("checkHotel").value="si";document.getElementById("checkCoche").value="si";}}
if(document.getElementById("checkVuelo").value=="si"){if(!validarBuscadorVuelo(idioma)){return;}
checksProductos+="1";}else{checksProductos+="0"}
if(document.getElementById("checkHotel").value=="si"){if(!validarBuscadorHotel()){return;}
checksProductos+="1";}else{checksProductos+="0";}
if(document.getElementById("checkCoche").value=="si"){if(!validarBuscadorCoche()){return;}
checksProductos+="1";}else{checksProductos+="0";}
checksProductos+="0";if(!comprobarNumAdultos())
return;if(document.getElementById("login")!=null)
{var login=document.getElementById("login").value;mostrarCargando(1,checksProductos,login);}
else
{mostrarCargando(1,checksProductos);}
var parametrosd='';var paginaInclude='/servlet/multiproducto';document.formulario.metodo.value="ajaxComprobarZonas";forwardPostSincrono('capaValizacionZonas',paginaInclude,"formulario");if(document.getElementById("validacionZona").value!=""){ocultarCargando();alert(document.getElementById("mensajeAplicacion").value);return;}
document.getElementById("checksProductos").value=checksProductos;document.getElementById("capaOcultaEnlace").style.display="none";document.formulario.metodo.value="doDisponibilidad";document.getElementById("formulario").submit();}
function muestraIconos_a(numIcono){guardarAccionIcono('muestraIconos_a('+numIcono+');');var capa="capa_"+numIcono;var icono="icono_"+numIcono;var texto="texto_"+numIcono;var radio=false;var j=0;if(document.getElementById(icono).className!="productoSelecc_a"){document.getElementById(icono).className="productoSelecc_a";document.getElementById(texto).className="";var i=0;i=numIcono-1;document.formulario.radio[i].checked=true;capas(numIcono);for(i=0;i<document.formulario.radio.length;i++){if(document.formulario.radio[i].checked!=true){j=i+1;document.getElementById("icono_"+j).className="";document.getElementById("texto_"+j).className="producto_a";}}}else{for(i=0;i<document.formulario.radio.length;i++){if(document.formulario.radio[i].checked!=true){j=i+1;document.getElementById("icono_"+j).className="";document.getElementById("texto_"+j).className="producto_a";}}}
calcularAltura(numIcono);}
function pintarBusIzdaOferta(tipoProducto){var str='';if(tipoProducto=="VUELO"){str+='<div><input name="radio" type="radio" value="radiobutton" style="float:left" checked onclick="javascript:muestraIconos_a(\'1\')"></div><div id="texto_1"><span id="icono_1" class="productoSelecc_a"><a href="javascript:muestraIconos_a(\'1\')" >'+enlaces.ENLVUELOS+'</a></span></div>';str+='<div class="limpiar"></div>';str+='<div><input name="radio" type="radio" value="radiobutton" style="float:left" onclick="javascript:muestraIconos_a(\'2\')"></div><div id="texto_2" class="producto_a"><span id="icono_2"><a href="javascript:muestraIconos_a(\'2\')" >'+enlaces.ENLHOTELES+'</a></span></div>';}else if(tipoProducto=="HOTEL"){str+='<div><input name="radio" type="radio" value="radiobutton" style="float:left" onclick="javascript:muestraIconos_a(\'1\')"></div><div id="texto_1"><span id="icono_1" class="producto_a"><a href="javascript:muestraIconos_a(\'1\')" >'+enlaces.ENLVUELOS+'</a></span></div>';str+='<div class="limpiar"></div>';str+='<div><input name="radio" type="radio" value="radiobutton" style="float:left" checked onclick="javascript:muestraIconos_a(\'2\')"></div><div id="texto_2"><span id="icono_2" class="productoSelecc_a"><a href="javascript:muestraIconos_a(\'2\')" >'+enlaces.ENLHOTELES+'</a></span></div>';}
escribe("function_pintarBusIzdaOferta",str);}
function pintarBusIzdaOferta_2(){var str='<div><input name="radio" type="radio" value="radiobutton" style="float:left" onclick="javascript:muestraIconos_a(\'3\')"></div><div id="texto_3" class="producto_a"><span id="icono_3"><a href="javascript:muestraIconos_a(\'3\')" >'+enlaces.ENLCOCHEALQ+'</a></span></div>';escribe("function_pintarBusIzdaOferta_2",str);}
function pintarOriVueloOferta(descripcionOrigen,origen,codigo){var str='<input autocomplete="off" type="text" ';if(origen==true){str+='class="texto_formu_8_a" ';}else{str+='class="texto_formu_8_a" ';}
str+='name="descripcionOrigen" id="descripcionOrigen" value="'+descripcionOrigen+'" ';if(origen==true){str+="onFocus=\"javascript:abrirDiccionarioOferta(\'VUELO_ORIGEN\','"
+codigo+"','',\'vueloOrigen\',\'descripcionOrigen\');vaciarPagRes();\"";}
str+='readOnly>';str+='<div class="page_name_auto_complete" id="listaOrigen" style="display:none;"></div> ';escribe("function_pintarOriVueloOferta",str);}
function pintarLupaIdaOferta(contextPath,codigo,carpetaImg){var str='<div class="lupita">';str+="<a href=\"javascript:abrirDiccionarioOferta(\'VUELO_ORIGEN\','"
+codigo+"','',\'vueloOrigen\',\'descripcionOrigen\');vaciarPagRes();\" tabIndex=9999>";str+='<img id=\"lupaVueloIda\" src="'+contextPath+'/appBase/images/'+carpetaImg+'/lupa.gif" border="0"></a></div>';escribe("function_pintarLupaIdaOferta",str);}
function pintarDestVueloOferta(destino,descripcionDestino,codigo){var str='<input autocomplete="off" type="text" ';if(destino==true){str+='class="texto_formu_8_a';}else{str+='class="texto_formu_8_a"';}
str+='name="descripcionDestino" id="descripcionDestino" value="'+descripcionDestino+'" ';if(destino==true){str+="onFocus=\"javascript:abrirDiccionarioOferta(\'VUELO_DESTINO\','"
+codigo
+"',document.getElementById(\'vueloOrigen\').value,\'vueloDestino\',\'descripcionDestino\');vaciarPagRes();\"";}
str+='readOnly/> <div class="page_name_auto_complete" id="listaDestino" style="display:none"></div> ';escribe("function_pintarDestVueloOferta",str);}
function pintarLupaVueOferta(contextPath,Codigo,carpetaImg){var str='<div class="lupita">';str+="<a href=\"javascript:abrirDiccionarioOferta(\'VUELO_DESTINO\','"
+Codigo
+"',document.getElementById(\'vueloOrigen\').value,\'vueloDestino\',\'descripcionDestino\');vaciarPagRes();\"";str+=' title="\&Iacute;ndice Geogr&aacute;fico de Pa&iacute;ses\" tabIndex=9999><img border="0" id=\"lupaVueloVuelta\" src="'+contextPath+'/appBase/images/'+carpetaImg+'/lupa.gif"></a></div>';escribe("function_pintarLupaVueOferta",str);}
function pintarFecIdaOferta(){var str='<input type="text" class="texto_formu_1_a" name="vueloFechaIda" id="vueloFechaIda" value="" readonly ';str+="onFocus=\"javascript:cerrarCapas();javascript:abrirFechasIda();\">";escribe("function_pintarFecIdaOferta",str);}
function pintarFecVueltaOferta(idaVue){var str='<input type="text" class="texto_formu_1_a" name="vueloFechaVuelta" id="vueloFechaVuelta" value="" readonly ';if(idaVue==true){str+=' disabled ';}
str+="onFocus=\"javascript:firstIdaVuelo();\">";escribe("function_pintarFecVueltaOferta",str);}
function pintarIconoResidente(contextPath,ALTIMGFILTROINF){var str='<img id="iconoResidente" alt ="'
+ALTIMGFILTROINF
+'" class="informacion_a" onmouseover="javascript:abreCapaInfoResidente();" onmouseout="cerrarCapaInfoResidente();" src="'
+contextPath+'/appBase/images/HAL/informacion01.gif">';escribe("function_pintarIconoResidente",str);}
function pintarCajaBuscadorIzda_3(){var str='<div class="flota_izda" style="display:block;"><input name="radio" type="radio" value="radiobutton"';str+=' checked onclick="javascript:muestraIconos_a(\'1\')"></div><div id="texto_1" style="display:block;"><span id="icono_1" class="producto_a">';str+="<a href=\"javascript:muestraIconos_a('1')\">";str+=obtenerTextoIdioma("ENLVUELOS");str+="</a>";str+='</span></div>';str+='<div class="limpiar"></div>';escribe("function_pintarCajaBuscadorIzda",str);}
function pintarCajaBuscadorIzda_4(numIcono){var str='<div class="flota_izda"><input name="radio" type="radio" value="radiobutton"';if(numIcono==1){str+=' checked onclick="javascript:muestraIconos_a(\'1\');"></div><div id="texto_1"><span id="icono_1"  class="productoSelecc_a">';}else{str+='   onclick="javascript:muestraIconos_a(\'1\')"></div><div id="texto_1"><span id="icono_1" class="producto_a">';}
str+="<a href=\"javascript:muestraIconos_a('1')\">";str+=obtenerTextoIdioma("ENLVUELOS");str+="</a>";str+='</span></div>';str+='<div class="limpiar"></div>';str+='<div class="flota_izda" style="display:none;"><input name="radio" type="radio" value="radiobutton" onclick="javascript:muestraIconos_a(\'2\');"></div><div id="texto_2" style="display:none;" class="producto_a"><span id="icono_2"> ';str+='</span></div>';str+='<div class="limpiar"></div>';str+='<div class="flota_izda"><input name="radio" type="radio" value="radiobutton"  ';if(numIcono==3){str+='  checked  onclick="javascript:muestraIconos_a(\'3\')"></div><div id="texto_3"><span id="icono_3" class="productoSelecc_a">';}else{str+='   onclick="javascript:muestraIconos_a(\'3\')"></div><div id="texto_3"><span id="icono_3" class="producto_a">';}
str+="<a href=\"javascript:muestraIconos_a('3')\">";str+=obtenerTextoIdioma("ENLCOCHEALQ");str+="</a>";str+='</span></div>';escribe("function_pintarCajaBuscadorIzda",str);}
function pintarCajaBuscadorDcha_3(){var str='<div class="flota_izda" style="display:none;"><input name="radio" type="radio" value="radiobutton"  onclick="javascript:muestraIconos_a(\'5\');"></div><div id="texto_5" style="display:none;" class="producto_a"><span id="icono_5">';str+='</span></div>';str+='<div class="limpiar"></div>';str+='<div class="flota_izda"><input name="radio" type="radio" value="radiobutton"  onclick="javascript:muestraIconos_a(\'6\');"></div><div id="texto_6"><span id="icono_6" class="producto_a">';str+="<a href=\"javascript:muestraIconos_a('6');\">";str+=obtenerTextoIdioma("ENLVUELOCOCHE");str+="</a>";str+='</span></div>';str+='<div class="limpiar"></div>';str+='<div class="flota_izda" style="display:none;"><input name="radio" type="radio" value="radiobutton" onclick="javascript:muestraIconos_a(\'7\');"></div><div id="texto_7" style="display:none;" class="producto_a"><span id="icono_7">';str+='</span></div> <div class="limpiar"></div>';str+='<div class="flota_izda" style="display:none;"><input name="radio" type="radio" value="radiobutton" onclick="javascript:muestraIconos_a(\'8\');"></div><div id="texto_8" style="display:none;" class="producto_a"><span id="icono_8">';str+='</span></div> <div class="limpiar"></div>';escribe("function_pintarCajaBuscadorDcha",str);}
function pintarBusIzdaOferta_1(tipoProducto){var str='';if(tipoProducto=="VUELO"){str+='<div><input name="radio" type="radio" value="radiobutton" style="float:left" checked onclick="javascript:muestraIconos_a(\'1\')"></div><div id="texto_1"><span id="icono_1" class="productoSelecc_a"><a href="javascript:muestraIconos_a(\'1\')" >'+enlaces.ENLVUELOS+'</a></span></div>';str+='<div class="limpiar"></div>';}
str+='<div style="display:none;"><input name="radio" type="radio" value="radiobutton" style="float:left" onclick="javascript:muestraIconos_a(\'2\')"></div><div id="texto_2" style="display:none;" class="producto_a"><span id="icono_2"></span></div>';str+='<div class="flota_izda"><input name="radio" type="radio" value="radiobutton"  ';str+='   onclick="javascript:muestraIconos_a(\'3\')"></div><div id="texto_3"><span id="icono_3" class="producto_a">';str+="<a href=\"javascript:muestraIconos_a('3')\">";str+=obtenerTextoIdioma("ENLCOCHEALQ");str+="</a>";str+='</span></div>';escribe("function_pintarBusIzdaOferta",str);}
function newMuestraIconos(numIcono){guardarAccionIcono('muestraIconos_a('+numIcono+');');var capa="capa_"+numIcono;var icono="icono_"+numIcono;var texto="texto_"+numIcono;var radio=false;var j=0;if(document.getElementById(icono).className!="productoSelecc_a"){document.getElementById(icono).className="productoSelecc_a";document.getElementById(texto).className="";var i=0;for(i=0;i<document.formulario.radio.length;i++){if(document.formulario.radio[i].id=="Radio_buscador_"+numIcono){document.formulario.radio[i].checked=true;}}
try{capas(numIcono);}catch(e){}
for(i=0;i<document.formulario.radio.length;i++){if(document.formulario.radio[i].checked!=true){j=i+1;document.getElementById("icono_"+document.formulario.radio[i].value).className="";document.getElementById("texto_"+document.formulario.radio[i].value).className="producto_a";}}}else{for(i=0;i<document.formulario.radio.length;i++){if(document.formulario.radio[i].checked!=true){j=i+1;document.getElementById("icono_"+document.formulario.radio[i].value).className="";document.getElementById("texto_"+document.formulario.radio[i].value).className="producto_a";}}}
calcularAltura(numIcono);}
function enviarMail(site,contextPath,descSite){var formulario=document.registro;formulario.TXTEMAIL.value=document.getElementById("email").value;formulario.TXTNOMBRE.value="NOT AVAILABLE";formulario.TXTAPELLIDO1.value="NOT AVAILABLE";formulario.TXTAPELLIDO2.value="NOT AVAILABLE";formulario.TXTPASSWORD.value="NOT AVAILABLE";formulario.chkboletin.checked=true;formulario.chkinformacion.checked=true;enviarDatos(codSite,contextPath,descSite);}
function vaciarPagRes(){if(document.getElementById("pagRes")!=null){document.getElementById("pagRes").value="No";}}