
function confirmarCambioVuelo(soloIda,indicePrecio,indiceBloque,monoproducto){document.formularioVuelo.metodo.value="ajaxSeleccionar";document.formularioVuelo.indiceBloque.value=indiceBloque;document.getElementById("indicePrecio").value=indicePrecio;var valor=dwr.util.getValue("radioIda"+indiceBloque);if(isNaN(parseInt(valor))&&valor==false){alertTextoIdioma('ALER_VUELOS2');return;}
if(!soloIda){valor=dwr.util.getValue("radioVuelta"+indiceBloque);if(((isNaN(parseInt(valor)))&&valor==false)){alertTextoIdioma('ALER_VUELOS3');return;}}
var capa='bloqueContenido';var paginaInclude='/servlet/multiproducto';forwardPostSincrono(capa,paginaInclude,'formularioVuelo');if(monoproducto!='SI'){cambiarPestana('0');actualizarPrecios();}
if(monoproducto=='SI'){mostrarCargando(2,"1000");document.formSeleccion.submit();}}
function volverAtras(){var nPag=document.getElementById("nPag").value;if(nPag=="-2"){window.history.go(-2);}
else{window.history.back();}}
function verBotonConfirmarVuelo(producto,hasta,idaVuelta){for(i=0;i<hasta;i++){if(document.getElementById("capaBotonConfirmar"+i)&&producto!=i){if(document.getElementById("capaBotonConfirmar"+i)){document.getElementById("capaBotonConfirmar"+i).style.display='none';if(eval('document.formularioVuelo.radioIda'+i+'.length')){for(j=0;j<eval('document.formularioVuelo.radioIda'+i+'.length');j++){eval("document.formularioVuelo.radioIda"+i+"["+j+"].checked=false");}}else{if(eval('document.formularioVuelo.radioIda'+i)){eval("document.formularioVuelo.radioIda"+i+".checked=false");}}
if(!idaVuelta){if(eval('document.formularioVuelo.radioVuelta'+i+'.length')){for(j=0;j<eval('document.formularioVuelo.radioVuelta'+i+'.length');j++){eval("document.formularioVuelo.radioVuelta"+i+"["+j+"].checked=false");}}else{if(eval('document.formularioVuelo.radioVuelta'+i)){eval("document.formularioVuelo.radioVuelta"+i+".checked=false");}}}}}}
document.getElementById("capaBotonConfirmar"+producto).style.display='block';}
function filtroVueltas(recomendacion,indice,numPagina){var vueltas=eval('document.formularioVuelo.radioVuelta'+indice);var numVueltas=document.getElementById('numVueltas_'+numPagina+'_'+indice).value;if(vueltas!=undefined){for(var i=0;i<vueltas.length;i++){vueltas[i].checked=false;}
for(var a=0;a<parseInt(numVueltas);a++){var aux="";try{aux=document.getElementById('array_'+numPagina+'_'+indice+'_'+a).value;}catch(e){}
if(recomendacion.indexOf('-')>-1&&aux.indexOf('-')>-1){var cadRec,cadAux=new Array();cadRec=recomendacion.split('-');cadAux=aux.split('-');var existe=false;for(var b=0;b<cadRec.length;b++){for(var c=0;c<cadAux.length;c++){if(cadRec[b]==cadAux[c])existe=true;}}
if(existe)display(numPagina+"_"+indice+"_"+a+"_"+aux,'block');else display(numPagina+"_"+indice+"_"+a+"_"+aux,'none');}else{var encontrado=false;if(aux.indexOf("-")>-1){var arrayVueltas=new Array();arrayVueltas=aux.split("-");for(var j=0;j<arrayVueltas.length;j++){if(recomendacion==arrayVueltas[j]){encontrado=true;}}}else{if(recomendacion.indexOf("-")>-1){var arrayIdas=new Array();arrayIdas=recomendacion.split("-");for(var j=0;j<arrayIdas.length;j++){if(aux==arrayIdas[j]){encontrado=true;}}}else if(aux==recomendacion)encontrado=true;}
if(encontrado){try{display(numPagina+"_"+indice+"_"+a+"_"+aux,'block');}catch(e){}}else{try{display(numPagina+"_"+indice+"_"+a+"_"+aux,'none');}catch(e){}}}}}}
function masInfoVuelo(idaVuelta,indicePrecio,indiceBloque,monoproducto,producto,tipoVuelo,posicion,verPreciosMasInfo){document.formularioVuelo.metodo.value="ajaxMasInfo";document.formularioVuelo.productoMasInfo.value=producto;document.formularioVuelo.precioMasInfo.value=indicePrecio;document.getElementById("indicePrecio").value=indicePrecio;document.formularioVuelo.tipoVueloMasInfo.value=tipoVuelo;document.formularioVuelo.verPreciosMasInfo.value=verPreciosMasInfo;document.formularioVuelo.indiceBloque.value=indiceBloque;if(verPreciosMasInfo=="SI"){var valor=dwr.util.getValue("radioIda"+indiceBloque);if(isNaN(parseInt(valor))&&valor==false){alertTextoIdioma('ALER_VUELOS2');return;}
if(!idaVuelta){valor=dwr.util.getValue("radioVuelta"+indiceBloque);if(((isNaN(parseInt(valor)))&&valor==false)){alertTextoIdioma('ALER_VUELOS3');return;}}}
escribe('capaMasInfo','');var capa='capaMasInfo';var paginaInclude='/servlet/multiproducto';forwardPost(capa,paginaInclude,'formularioVuelo');document.getElementById('capaMasInfo').style.display='block';var pos=getAbsoluteElementPosition(posicion);document.getElementById('capaMasInfo').style.top=pos.top+'px';document.getElementById('capaMasInfo').style.left=(pos.left-350)+'px';document.getElementById('capaMasInfo').style.width="345px";WCH.Apply('capaMasInfo');if(document.getElementById('WCHhidercapaMasInfo'))document.getElementById('WCHhidercapaMasInfo').style.height="200px";}
function actualizaResidente(valor){if(!valor){document.getElementById("esVueloResidente").value="";document.getElementById("tipoDescuentoResidente").value="";document.getElementById("descripcionDescuentoResidente").value="";}}
function firstIdaVuelo(login){cerrarDiccionario();if(document.getElementById("vueloFechaIda").value==""){alertTextoIdioma('ALERT_SELECT_FEC_SAL_VUELO');return;}
abrirCalendario(login,'vueloFechaVuelta',obtenerTextoIdioma('CAPAREGRESOVUELO'),'2',document.getElementById('vueloFechaIda').value,document.getElementById('vueloFechaVuelta').value,0,'vueloSelDiaVuelta','VUE');}
function validarBuscadorVuelo(idioma){var formu=document.getElementById('formulario');var numAdultos=parseInt(document.getElementById("vueloNumAdultos").value);var numNinos=parseInt(document.getElementById("vueloNumNinos").value);var numBebes=parseInt(document.getElementById("vueloNumBebes").value);if(document.getElementById("descripcionOrigen").value.length<3){alertTextoIdioma('ALERT_ZONA_VUELO_ORIGEN');document.getElementById("descripcionOrigen").focus();return b25.Suggest.handleActivity(document.getElementById("descripcionOrigen"),'VUELO_ORIGEN',document.getElementById('vueloOrigen'));}
if(!document.getElementById("vueloSoloIda").checked){if(document.getElementById("descripcionDestino").value.length<3){alertTextoIdioma('ALERT_ZONA_VUELO_DESTINO');document.getElementById("descripcionDestino").focus();return b25.Suggest.handleActivity(document.getElementById("descripcionDestino"),'VUELO_DESTINO',document.getElementById('vueloDestino'));}}
if(numAdultos+numNinos+numBebes>9){alertTextoIdioma('ALERT_SELECT_PASAJEROS_VUELO');document.getElementById("vueloNumAdultos").focus();return false;}
if(document.getElementById("vueloFechaIda").value==""){alertTextoIdioma('ALERT_SELECT_FEC_SAL_VUELO');document.getElementById("vueloFechaIda").focus();return false;}
else if(!document.getElementById('vueloFechaVuelta').disabled&&document.getElementById("vueloFechaVuelta").value==""){alertTextoIdioma('ALERT_SELECT_FEC_RET_VUELO');document.getElementById("vueloFechaVuelta").focus();return false;}
return true;}
function comprobarResidente(login){var ida="";var vuelta="";var desIda="";var desVuelta="";var seleccionado=false;if(document.getElementById("vueloResidente").checked){var residente=false;var parametros='metodo=ajaxDescuentoResidente&checkVuelo=si&vueloResidente=on&codigoIda='+document.getElementById("vueloOrigen").value+'&codigoVuelta='+document.getElementById("vueloDestino").value+'&login='+document.getElementById("login").value;+'';var paginaInclude='/servlet/multiproducto?'+parametros;forwardGetSincrono('capaDescuentosResidentes',paginaInclude);var swiResidente=document.getElementById("swiResidenteIda").value;if(swiResidente=="S"){ida=document.getElementById("tipoResidenteIda").value;vuelta=document.getElementById("tipoResidenteVuelta").value;desIda=document.getElementById("descResidenteIda").value;desVuelta=document.getElementById("descResidenteVuelta").value;document.getElementById('descripcionDescuentoResidenteIda').value=desIda;document.getElementById('descripcionDescuentoResidenteVuelta').value=desVuelta;if(ida==vuelta){document.getElementById('tipoDescuentoResidente').value=ida;document.getElementById('descripcionDescuentoResidente').value=desIda;return true;}else if(ida!="idaVacia"&&vuelta=="vueltaVacia"){document.getElementById('tipoDescuentoResidente').value=ida;document.getElementById('descripcionDescuentoResidente').value=desIda;return true;}else if(vuelta!="vueltaVacia"&&ida=="idaVacia"){document.getElementById('tipoDescuentoResidente').value=vuelta;document.getElementById('descripcionDescuentoResidente').value=desVuelta;return true;}else if((ida!=vuelta)&&(ida!="idaVacia"&&vuelta!="vueltaVacia")){if(document.getElementById('tipoDescuentoResidente').value!="")return true;var txtIda="<input type=\"radio\" name=\"TipoResPax\" id=\"TipoResPax\" value=\""+ida+"\" />"+desIda;var txtVuelta="<input type=\"radio\" name=\"TipoResPax\" id=\"TipoResPax\" value=\""+vuelta+"\" />"+desVuelta;escribe('descuentoResidenteIda',txtIda);escribe('descuentoResidenteVuelta',txtVuelta);display('vueloResidenteDoble','block');}}else{display('vueloNoResidente','block');WCH.Apply('vueloNoResidente');return false;}
return false;}
return true;}
function seleccionarResidente(){var marcado=false;for(var i=0;i<document.formulario.TipoResPax.length;i++){if(document.formulario.TipoResPax[i].checked){marcado=true;document.getElementById('tipoDescuentoResidente').value=document.formulario.TipoResPax[i].value;if(marcado&&i==0)document.getElementById('descripcionDescuentoResidente').value=document.getElementById('descripcionDescuentoResidenteIda').value;else if(marcado&&i==1)document.getElementById('descripcionDescuentoResidente').value=document.getElementById('descripcionDescuentoResidenteVuelta').value;}}
if(!marcado){document.getElementById('tipoDescuentoResidente').value="";alertTextoIdioma('ALERT_SELECT_DESC_RESIDENTE_VUELO');return;}else{display('vueloResidenteDoble','none');}}
function vueloSelDiaIda(fecha){var formu=document.getElementById("formulario");formu.vueloFechaIda.value=fecha;if(comparaFechasString(formu.vueloFechaIda.value,formu.vueloFechaVuelta.value)&&!formu.vueloSoloIda.checked){formu.vueloFechaVuelta.value=formu.vueloFechaIda.value;}
try{if(formu.hotelFechaIni.value!=undefined){formu.hotelFechaIni.value=fecha;if(formu.hotelFechaFin.value!=""&&comparaFechasString(formu.hotelFechaIni.value,formu.hotelFechaFin.value)){var fechaNueva=incrementaDiasString(formu.hotelFechaIni.value,1);var diaNew=fechaNueva.getDate();var mesNew=fechaNueva.getMonth()+1;var anioNew=fechaNueva.getFullYear();if(diaNew<10)diaNew="0"+diaNew;if(mesNew<10)mesNew="0"+mesNew;var fechaNuevaStr=diaNew+"/"+mesNew+"/"+anioNew;formu.hotelFechaFin.value=fechaNuevaStr;}
if(formu.hotelFechaFin.value!=""&&formu.hotelFechaFin.value!="")ponNumNoches();}}catch(e){}
try{if(formu.cochesFechaIni.value!=undefined){formu.cochesFechaIni.value=fecha;if(formu.cochesFechaFin.value!=""&&comparaFechasString(formu.cochesFechaIni.value,formu.cochesFechaFin.value)){formu.cochesFechaFin.value=fecha;}}}catch(e){}
cerrarCalendario();pintarListaHoras();}
function vueloSelDiaVuelta(fecha){var formu=document.getElementById('formulario');formu.vueloFechaVuelta.value=fecha;if(document.getElementById("hotelFechaFin")){if(formu.vueloFechaVuelta.value!=formu.hotelFechaIni.value)
formu.hotelFechaFin.value=formu.vueloFechaVuelta.value;else{var fechaNueva=incrementaDiasString(formu.vueloFechaVuelta.value,1);var diaNew=fechaNueva.getDate();var mesNew=fechaNueva.getMonth()+1;var anioNew=fechaNueva.getFullYear();var fechaNuevaStr=diaNew+"/"+mesNew+"/"+anioNew;formu.hotelFechaFin.value=fechaNuevaStr;}
ponNumNoches();}
if(document.getElementById("cochesFechaFin")){formu.cochesFechaFin.value=formu.vueloFechaVuelta.value;}
cerrarCalendario();pintarListaHoras();}
function soloIda(){var formu=document.getElementById('formulario');formu.vueloFechaVuelta.disabled=formu.vueloSoloIda.checked;if(formu.vueloFechaVuelta.disabled){formu.vueloFechaVuelta.value="";}
formu.vueloHoraRegreso.disabled=formu.vueloSoloIda.checked;}
function abreCapaInfoResidente(){var pos=getAbsoluteElementPosition('iconoResidente');var top=150;var left=200;document.getElementById('capaInfoResidente').style.top="265px";document.getElementById('capaInfoResidente').style.left="400px";display('capaInfoResidente','block');WCH.Apply('capaInfoResidente');}
function cerrarCapaInfoResidente(){display('capaInfoResidente','none');WCH.Discard('capaInfoResidente');}
function pintarLupaVueloDesactivada(contextPath,TEXTOLUPAVUELO,dirImages){var str='<div class="filabuscador_3"><div class="lupita"><a href="javascript:alert(\''+TEXTOLUPAVUELO+'\');  tabIndex=9999><img id="lupaVueloVuelta" src="'+contextPath+'/appBase/images/'+dirImages+'/lupa.gif" border="0"></a></div></div>';escribe("funtion_pintarLupaVueloDes",str);}
function pintarLupaVueloDes(contextPath,TITLECAPALUPAVUELO,dirImages){var str='<div class="filabuscador_3"><div class="lupita"><a href="javascript:abrirDiccionario(\'VUELO_DESTINO\',\'\',\'\',\'\',\'vueloDestino\',\'descripcionDestino\',\'\');vaciarPagRes();" title="'+TITLECAPALUPAVUELO+'" tabIndex=9999><img id="lupaVueloVuelta" src="'+contextPath+'/appBase/images/'+dirImages+'/lupa.gif" border="0"></a></div></div>';escribe("funtion_pintarLupaVueloDes",str);}
function pintarDestinoVuelo(vueloDestino){var str='<input type="hidden" class="texto_formu_a"name="vueloDestino" id="vueloDestino" value="'+vueloDestino+'">';escribe("funtion_pintarDestinoVuelo",str);}
function pintarDesVuelo_1(descripcionDestino,TITLECAPAORIGENVUELO){var str='<input autocomplete="off" type="text" class="texto_formu_8_a"';str+='onfocus="javascript:cerrarCapas();javascript:abrirDiccionario(\'VUELO_DESTINO\',\'\',\'\',\'\',\'vueloDestino\',\'descripcionDestino\',\'\');vaciarPagRes();"';str+='name="descripcionDestino" id="descripcionDestino" title="'+TITLECAPAORIGENVUELO+'" value="'+descripcionDestino+'">';escribe("funtion_pintarDesVuelo",str);}
function pintarDesVuelo_2(descripcionDestino,TITLECAPAORIGENVUELO,login){var str='<input onkeyup="return b25.Suggest.handleActivity(this,\'VUELO_DESTINO\',document.getElementById(\'vueloDestino\'),document.getElementById(\'login\').value);vaciarPagRes();"';str+='onkeydown="return b25.Suggest.handleKeyNav(event||window.event)" onfocus="javascript:cerrarCapas();b25.Suggest.handleActivity(this,\'VUELO_DESTINO\',document.getElementById(\'vueloDestino\'),document.getElementById(\'login\').value);vaciarPagRes();" onblur="b25.Suggest.__hidePopup()"';str+='autocomplete="off" type="text" class="texto_formu_8_a"';str+='name="descripcionDestino" id="descripcionDestino" title="'+TITLECAPAORIGENVUELO+'" value="'+descripcionDestino+'">';escribe("funtion_pintarDesVuelo",str);}
function pintarLupaVueloIda(contextPath,TITLECAPALUPAVUELO,dirImages){var str='<div class="filabuscador_3"><div class="lupita">';str+='<a href="javascript:abrirDiccionario(\'VUELO_ORIGEN\',\'\',\'\',\'\',\'vueloOrigen\',\'descripcionOrigen\',\'\');vaciarPagRes();" title="'+TITLECAPALUPAVUELO+'" tabIndex=9999>';str+='<img id="lupaVueloIda" src="'+contextPath+'/appBase/images/'+dirImages+'/lupa.gif" border="0"></a></div></div>';escribe("funtion_pintarLupaVueloIda",str);}
function pintarvueloFechaIda(login,vueloFechaIda,diasAntelacionVuelo,TITLECAPAFECSALVUELO,CAPASALIDAVUELO){var str='<input type="text" class="texto_formu_1_a" name="vueloFechaIda" title="'+TITLECAPAFECSALVUELO+'" id="vueloFechaIda" value="'+vueloFechaIda+'" readonly ';str+="onFocus=\"javascript:cerrarDiccionario();javascript:abrirCalendario('"+login+"',this.id,'"+CAPASALIDAVUELO+"',\'2\',\'\',this.value,'"+diasAntelacionVuelo+"',\'vueloSelDiaIda\',\'VUE\');\">";escribe("funtion_pintarvueloFechaIda",str);}
function pintarvueloFechaIda(login,vueloFechaIda,diasAntelacionVuelo){var str='<input type="text" class="texto_formu_1_a" name="vueloFechaIda" title="'+obtenerTextoIdioma("TITLECAPAFECSALVUELO",false)+'" id="vueloFechaIda" value="'+vueloFechaIda+'" readonly ';str+="onFocus=\"javascript:cerrarDiccionario();javascript:abrirCalendario('"+login+"',this.id,'"+obtenerTextoIdioma("CAPASALIDAVUELO",false)+"',\'2\',\'\',this.value,'"+diasAntelacionVuelo+"',\'vueloSelDiaIda\',\'VUE\');\">";escribe("funtion_pintarvueloFechaIda",str);}
function pintarvueloFechaVuelta(login,vueloFechaVuelta,vueloSoloIda,TITLECAPAFECRETVUELO){var str='<input type="text" class="texto_formu_1_a" name="vueloFechaVuelta" id="vueloFechaVuelta" title="'+TITLECAPAFECRETVUELO+'" value="'+vueloFechaVuelta+'" readonly ';if(vueloSoloIda!=null&&vueloSoloIda=="Si"){str+='disabled';}
str+="onFocus=\"javascript:firstIdaVuelo('"+login+"');\">";escribe("funtion_pintarvueloFechaVuelta",str);}
function pintarOrigenVuelo(descripcionOrigen,TITLECAPAORIGENVUELO,login){var str='<input onkeyup="return b25.Suggest.handleActivity(this,\'VUELO_ORIGEN\',document.getElementById(\'vueloOrigen\'),document.getElementById(\'login\').value);vaciarPagRes();" onkeydown="return b25.Suggest.handleKeyNav(event||window.event)"';str+='onfocus="javascript:cerrarCapas();b25.Suggest.handleActivity(this,\'VUELO_ORIGEN\',document.getElementById(\'vueloOrigen\'),document.getElementById(\'login\').value);vaciarPagRes();" ';str+='onblur="b25.Suggest.__hidePopup()" autocomplete="off" type="text" class="texto_formu_8_a"'
str+='name="descripcionOrigen" id="descripcionOrigen" title="'+TITLECAPAORIGENVUELO+'" value="'+descripcionOrigen+'">'
escribe("funtion_pintarOrigenVuelo",str);}
function verBotonConfirmarVuelo2(producto,hasta,idaVuelta){for(i=0;i<hasta;i++){if(document.getElementById("capaBotonConfirmar"+i)&&producto!=i){if(document.getElementById("capaBotonConfirmar"+i)){document.getElementById("capaBotonConfirmar"+i).style.display='block';if(eval('document.formularioVuelo.radioIda'+i+'.length')){for(j=0;j<eval('document.formularioVuelo.radioIda'+i+'.length');j++){eval("document.formularioVuelo.radioIda"+i+"["+j+"].checked=false");}}else{if(eval('document.formularioVuelo.radioIda'+i)){eval("document.formularioVuelo.radioIda"+i+".checked=false");}}
if(!idaVuelta){if(eval('document.formularioVuelo.radioVuelta'+i+'.length')){for(j=0;j<eval('document.formularioVuelo.radioVuelta'+i+'.length');j++){eval("document.formularioVuelo.radioVuelta"+i+"["+j+"].checked=false");}}else{if(eval('document.formularioVuelo.radioVuelta'+i)){eval("document.formularioVuelo.radioVuelta"+i+".checked=false");}}}}}}
document.getElementById("capaBotonConfirmar"+producto).style.display='block';}
function filtroVueltas2(recomendacion,indice,numPagina){var vueltas=eval('document.formularioVuelo.radioVuelta'+indice);var numVueltas=document.getElementById('numVueltas_'+numPagina+'_'+indice).value;if(vueltas!=undefined){for(var i=0;i<vueltas.length;i++){vueltas[i].checked=false;}
for(var a=0;a<parseInt(numVueltas);a++){var aux="";try{aux=document.getElementById('array_'+numPagina+'_'+indice+'_'+a).value;}catch(e){}
if(recomendacion.indexOf('-')>-1&&aux.indexOf('-')>-1){var cadRec,cadAux=new Array();cadRec=recomendacion.split('-');cadAux=aux.split('-');var existe=false;for(var b=0;b<cadRec.length;b++){for(var c=0;c<cadAux.length;c++){if(cadRec[b]==cadAux[c])existe=true;}}
if(existe)display(numPagina+"_"+indice+"_"+a+"_"+aux,'block');else display(numPagina+"_"+indice+"_"+a+"_"+aux,'none');}else{var encontrado=false;if(aux.indexOf("-")>-1){var arrayVueltas=new Array();arrayVueltas=aux.split("-");for(var j=0;j<arrayVueltas.length;j++){if(recomendacion==arrayVueltas[j]){encontrado=true;}}}else{if(recomendacion.indexOf("-")>-1){var arrayIdas=new Array();arrayIdas=recomendacion.split("-");for(var j=0;j<arrayIdas.length;j++){if(aux==arrayIdas[j]){encontrado=true;}}}else if(aux==recomendacion)encontrado=true;}
if(encontrado){try{display(numPagina+"_"+indice+"_"+a+"_"+aux,'block');}catch(e){}}else{try{display(numPagina+"_"+indice+"_"+a+"_"+aux,'none');}catch(e){}}}}}}
function vaciarPagRes(){if(document.getElementById("pagRes")!=null){document.getElementById("pagRes").value="No";}}
function updatePrecioVuelo(){importeTotalInicial=$j('#importeTotalInicial').val();tipoTarjetaSeleccionado=$j(this).val();feeTarjeta=0.0;if(tipoTarjetaSeleccionado!="-1"){valores=tipoTarjetaSeleccionado.split("#");codigoTarjeta=valores[0];feeTarjetaIda=parseFloat(valores[1]);feeTarjeta=feeTarjeta+feeTarjetaIda;if(valores[2]!=undefined){feeTarjetaVuelta=valores[2];feeTarjeta=feeTarjeta+parseFloat(feeTarjetaVuelta);}
importeNuevo=parseFloat(importeTotalInicial,10)+parseFloat(feeTarjeta,10);$j('span.importeTotal').html(importeNuevo.toFixed(2)+'&euro;');$j('div.importeTotal').html(importeNuevo.toFixed(2)+'&euro;');$j('#gastosTarjetaCredito').html(parseFloat(feeTarjeta,10).toFixed(2)+'&euro;');$j('#divGastosTarjeta').show();}else{$j('span.importeTotal').html(parseFloat(importeTotalInicial,10).toFixed(2)+'&euro;');$j('#divGastosTarjeta').hide();}}
function comprobarHorario(){if($j('#vueloFechaIda').val()==$j('#vueloFechaVuelta').val()){$j('#vueloHoraRegreso option').each(function(){$j(this).remove();});for(var i=0;i<listaHorarios.length;i++){if(parseInt(listaHorarios[i])>parseInt($j('#vueloHoraSalida').val())){$j('#vueloHoraRegreso').append('<option value="'+listaHorarios[i]+'">'+listaTextosHorarios[i]+'</option>');}}
if($j('#vueloHoraSalida').val()=='2400'){$j('#vueloHoraRegreso').append('<option value="'+listaHorarios[listaHorarios.length-1]+'">'+listaTextosHorarios[listaHorarios.length-1]+'</option>');}}}
function pintarListaHoras(){var selected='';if(typeof(listaHorarios)!="undefined"){$j('#vueloHoraSalida option').each(function(){$j(this).remove();});$j('#vueloHoraRegreso option').each(function(){$j(this).remove();});for(var i=0;i<listaHorarios.length;i++){if(i==0)
selected='selected="selected"';else
selected='';$j('#vueloHoraSalida').append('<option value="'+listaHorarios[i]+'" '+selected+'>'+listaTextosHorarios[i]+'</option>');$j('#vueloHoraRegreso').append('<option value="'+listaHorarios[i]+'" '+selected+'>'+listaTextosHorarios[i]+'</option>');}}}
