function pop_up(url,an,al){
				an = (an == null) ? 420 : an;
				al = (al == null) ? 150 : al;
				var top = ((screen.height/2)-(al/2));
				var left = ((screen.width/2)-(an/2));
				window.open(url,'','width='+an+',height='+al+',menubar=No, directories=No, toolbar=No, location=No,scrollbars=Auto,status=No,resizable=No,fullscreen =No,top='+top+',left='+left+'');
} 

function verCondiciones_especiales(){
	var $jq = jQuery.noConflict();
	if($jq("#verMenos_esp").is(":hidden")){
		$jq("#specialConditionsImg").removeClass('bt_mas').addClass('bt_menos');
		$jq("#verMenos_esp").css("opacity", 0).slideDown(function(){ if (tooltipValidations) tooltipValidations.repositionAll();}).animate({opacity:1});
    }else{
		$jq("#verMenos_esp").fadeOut('fast');
		$jq("#verMenos_esp").slideUp('fast',function(){ if (tooltipValidations) tooltipValidations.repositionAll(); });
		$jq("#specialConditionsImg").removeClass('bt_menos').addClass('bt_mas');
    }
}

function checkAgrrementTerms(v) {
	var $jq = jQuery.noConflict(); 
	if ($jq("#"+v).is(':checked')) {
		$jq("#agreementTextDiv2").removeClass("alert");
	} else {
		$jq("#agreementTextDiv2").addClass("alert");
	}
}

function verRecupera_explicacion(){
	var $jq = jQuery.noConflict();
    if($jq("#verMenos_recupera").is(":hidden")){
   	 $jq("#recuperaConditionsImg").attr('src', '/skylights/images/SB/-.gif');
   	 $jq("#verMenos_recupera").css("opacity", 0).slideDown().animate({opacity:1});
    }else{
   	 $jq("#verMenos_recupera").fadeOut('slow');   
		 $jq("#verMenos_recupera").slideUp('slow');
		 $jq("#recuperaConditionsImg").attr('src', '/skylights/images/SB/+.gif');
    }
}

function verAniversario_explicacion(){
	var $jq = jQuery.noConflict();
    if($jq("#verMenos_aniversario").is(":hidden")){
   	 $jq("#aniversarioConditionsImg").attr('src', '/skylights/images/SB/-.gif');
   	 $jq("#verMenos_aniversario").css("opacity", 0).slideDown().animate({opacity:1});
    }else{
   	 $jq("#verMenos_aniversario").fadeOut('slow');   
		 $jq("#verMenos_aniversario").slideUp('slow');
		 $jq("#aniversarioConditionsImg").attr('src', '/skylights/images/SB/+.gif');
    }
}
function verRegalo_explicacion(){
	var $jq = jQuery.noConflict();
    if($jq("#verMenos_regalo").is(":hidden")){
   	 $jq("#regaloConditionsImg").attr('src', '/skylights/images/SB/-.gif');
   	 $jq("#verMenos_regalo").css("opacity", 0).slideDown().animate({opacity:1});
    }else{
   	 $jq("#verMenos_regalo").fadeOut('slow');   
		 $jq("#verMenos_regalo").slideUp('slow');
		 $jq("#regaloConditionsImg").attr('src', '/skylights/images/SB/+.gif');
    }
}



function show_fare_rules(lang){

	var get_select_radio1 = "";
	var get_select_radio2 = "";
	var vars_cond = "";
	var altura_aux= "500px";
	var validata_radio_RT = false;
	var text_error_info = "";
	var text_error_info_ida =false;
	var text_error_info_vuelta = false;

	var get_select_radio1_ok = false;
	for(i=0;i<document.skylightsForm.radioSector1.length;i++){
		if(document.skylightsForm.radioSector1[i].checked){
			aux1 = document.skylightsForm.radioSector1[i].id;
			get_select_radio1 = document.getElementById("aux_"+aux1).value;
			break;
		}
	}

	if (document.skylightsForm.radioSector1.length == undefined && document.skylightsForm.radioSector1.checked != false){
		aux1 = document.skylightsForm.radioSector1.id;
		get_select_radio1 = document.getElementById("aux_"+aux1).value;
	}

	if (get_select_radio1 != ""){
		text_to1 = get_select_radio1.split(":-:");
		fareLabel1 = text_to1[0];
		ruleDivId1 = text_to1[1];
		get_select_radio1_ok = true;
		vars_cond = "&fareLabel1="+fareLabel1+"&ruleDivId1="+ruleDivId1;
	}

	if (document.skylightsForm.radioSector2){

		var get_select_radio2_ok = true;
		for(i=0;i<document.skylightsForm.radioSector2.length;i++){
			if(document.skylightsForm.radioSector2[i].checked){
				aux2 = document.skylightsForm.radioSector2[i].id;
				get_select_radio2 = document.getElementById("aux_"+aux2).value;

				break;
			}
		}

		if (document.skylightsForm.radioSector2.length == undefined && document.skylightsForm.radioSector2.checked != false){
			aux2 = document.skylightsForm.radioSector2.id;
			get_select_radio2 = document.getElementById("aux_"+aux2).value;

		}

		if ( get_select_radio2 != ""){
			text_to2 = get_select_radio2.split(":-:");
			fareLabel2 = text_to2[0];
			ruleDivId2 = text_to2[1];
			vars_cond = vars_cond + "&fareLabel2="+fareLabel2+"&ruleDivId2="+ruleDivId2;
			validata_radio_RT = true;

		}
	}else{
		altura_aux= "300px";
		var get_select_radio2_ok = false;

	}

	vars_cond = vars_cond + "&validata_radio_RT=" + validata_radio_RT+"&get_select_radio2_ok="+get_select_radio2_ok;
	pop_up('/skylights/cgi-bin/skylights.cgi?language='+lang+'&module=SB&page=SHOW_RULES'+vars_cond,'420',altura_aux);

}

function ver_info_flight(id_div){
	doc_id_div = document.getElementById(id_div);
	if (doc_id_div.style.display=="block"){
		doc_id_div.style.display="none";
		document.getElementById('img_'+id_div).src="/skylights/images/+.gif";
	}else{
		doc_id_div.style.display="block";
		document.getElementById('img_'+id_div).src="/skylights/images/-.gif";
	}
}

function verCondicionesMarket(num){
	var $jq = jQuery.noConflict(); 
	if($jq("#verMenos" + num).is(":hidden")){
		$jq("#verMas" + num + " #specialConditionsImg").removeClass('bt_mas').addClass('bt_menos');
		$jq("#verMenos" + num).css("opacity", 0).slideDown(function(){ if (tooltipValidations) tooltipValidations.repositionAll(); }).animate({opacity:1});
		if ( $jq("input[name='radioSector" + num + "']").is(":checked") ) {
			$jq("#labelFareRules" + num).css("display", "none");
			$jq("#fareRule" + num).css("display", "block");
			$jq("#verMensaje" + num).css("display", "none");
		} else {
			$jq("#labelFareRules" + num).css("display", "block");
			$jq("#fareRule" + num).css("display", "none");
			$jq("#verMensaje" + num).css("display", "block");
		}
	} else {
		$jq("#verMenos" + num).fadeOut('fast').slideUp('fast',function(){ if (tooltipValidations) tooltipValidations.repositionAll(); });
		$jq("#verMas" + num + " #specialConditionsImg").removeClass('bt_menos').addClass('bt_mas');
	}
}

function verCondiciones1(){
//FJN IN2 22-09-08 Se agrega control para mostrar el mensaje de condiciones de tarifa, verMensaje
    vercontmsn1 = 1;
  document.getElementById("verMas1").style.display="none";
  divcontent1 = document.getElementById("verContent1");
	if(divcontent1 != null){
		if (isset("verContent1")){
			document.getElementById("verContent1").style.display="block";
			if (varvermsn1 > 0){
				document.getElementById("verMenos1").style.display="block";
			   document.getElementById("verMensaje1").style.display="none";
			}else{
			   document.getElementById("verMenos1").style.display="none";
			   document.getElementById("verMensaje1").style.display="block";
			}
	    }else{
		      document.getElementById("verMenos1").style.display="block";
		}
	}else{
	    document.getElementById("verMenos1").style.display="block";
	}
	if (tooltipValidations) { tooltipValidations.repositionAll();  }
}


function verBasesSorteoPackPacha(){
//GDC-1345 IN2 30-06-10 Se agrega control para mostrar el mensaje de condiciones de bases del sorteo Pack Pacha
	vercontmsn1 = 1;
	document.getElementById("verMas2").style.display="none";
	document.getElementById("verMenos2").style.display="block";
	document.getElementById("verContent2").style.display="block";
}

function esconderBasesSorteoPackPacha(){
//GDC-1345 IN2 30-06-10 Se agrega control para mostrar el mensaje de condiciones de bases del sorteo Pack Pacha
		document.getElementById("verMas2").style.display="block";
		document.getElementById("verContent2").style.display="none";
		document.getElementById("verMenos2").style.display="none";
}



function esconderMensaje1(){
          document.getElementById("verMas1").style.display="none";
          document.getElementById("verContent1").style.display="block";
	      document.getElementById("verMensaje1").style.display="none";
          document.getElementById("verMenos1").style.display="block";
}
function esconderCondiciones1(){
    divcontent1 = document.getElementById("verContent1");
	if (divcontent1 != null){
		document.getElementById("verMas1").style.display="block";
		document.getElementById("verContent1").style.display="none";
		document.getElementById("verMensaje1").style.display="none";
		document.getElementById("verMenos1").style.display="none";
    }else{
	    document.getElementById("verMas1").style.display="block";
		document.getElementById("verMenos1").style.display="none";
	}
	if (tooltipValidations) { tooltipValidations.repositionAll();  }
 }

function verCondiciones2(){
//FJN IN2 22-09-08 Se agrega control para mostrar el mensaje de condiciones de tarifa, verMensaje
	vercontmsn2 = 1;
	document.getElementById("verMas2").style.display="none";
    divcontent2 = document.getElementById("verContent2");
	if (divcontent2 != null){
		document.getElementById("verContent2").style.display="block";
		if (varvermsn2 > 0){
			document.getElementById("verMenos2").style.display="block";
			document.getElementById("verMensaje2").style.display="none";
			}else{
				document.getElementById("verMenos2").style.display="none";
		       document.getElementById("verMensaje2").style.display="block";
			}
	}else{
	    document.getElementById("verMenos1").style.display="block";
	}
}
function esconderMensaje2(){
          document.getElementById("verMas2").style.display="none";
          document.getElementById("verContent2").style.display="block";
	      document.getElementById("verMensaje2").style.display="none";
          document.getElementById("verMenos2").style.display="block";
}

function esconderCondiciones2(){
    divcontent2 = document.getElementById("verContent2");
	if (divcontent2 != null){
		document.getElementById("verMas2").style.display="block";
		document.getElementById("verContent2").style.display="none";
		document.getElementById("verMensaje2").style.display="none";
		document.getElementById("verMenos2").style.display="none";
	}else{
	    document.getElementById("verMas1").style.display="block";
		document.getElementById("verMenos1").style.display="none";	    
	}
}

function esconderCondiciones3(){
			document.getElementById("condiciones_desp").style.display="none";
			document.getElementById("label_deps_2").style.display="none";
			document.getElementById("label_deps_1").style.display="block";	
}
function verCondiciones3(){
            document.getElementById("condiciones_desp").style.display="block";
			document.getElementById("label_deps_2").style.display="block";
			document.getElementById("label_deps_1").style.display="none";
}

function verCondicionesAB61(){
	document.getElementById("verMasAB61").style.display="none";
	document.getElementById("verMenosAB61").style.display="block";
}
function esconderCondicionesAB61(){
	document.getElementById("verMasAB61").style.display="block";
	document.getElementById("verMenosAB61").style.display="none";
}
function verCondicionesAB62(){
	document.getElementById("verMasAB62").style.display="none";
	document.getElementById("verMenosAB62").style.display="block";
}
function esconderCondicionesAB62(){
	document.getElementById("verMasAB62").style.display="block";
	document.getElementById("verMenosAB62").style.display="none";
}

function check_points_static(markets,adults,childs)
{
	var total_points = 0;
	var total_points_adult = 0;
	var total_points_child = 0;
	var j = 0;
	for( j; j < markets.length; j++)
	{
		var elem = eval('document.skylightsForm.' + 'radioSector' + markets[j].toString());
		var length = elem.length;
		if( length == undefined){ 
			points = document.getElementById(elem.id + "_points").value;
			total_points += parseInt(points);
		}else{
			for (var i=0; i<length; i++ ) {
				if ( elem[i].checked ) {
					points = document.getElementById(elem[i].id + "_points").value;
					total_points += parseInt(points);
					break;
				}
			}
		}
	}
	total_points_adult = total_points * adults;
	total_points_child = total_points * childs;
	total_points = total_points_adult + total_points_child;
	return total_points;
}
function check_points_static_ff(num_markets, adults, children)
{
	var total_points = 0;
	var total_points_adult = 0;
	var total_points_child = 0;
	var i = 1;
	for( i = 1; i <= num_markets; i++)
	{
		bar=searchSelectedBar(i);
		total_points += parseInt(eval('bar.getAttribute("pointsMin")'));
	}
	total_points_adult = total_points * adults;
	total_points_child = total_points * children;
	total_points = total_points_adult + total_points_child;
	return total_points;
}
function selectSeatPassenger(flight_key,pax_num,pax_name)
{
	if (flight_key != '' && pax_num != '' && pax_num != '')
	{
		confirm(flight_key + "\n" + pax_name);
	}
}
function nif(nif_str){
	var letras = 'TRWAGMYFPDXBNJZSQVHLCKE';
	var dni    = nif_str.substring(0,nif_str.length-1)
	var letra  = nif_str.substring(nif_str.length-1,nif_str.length);
	var index  = dni%23;
	var letrap = letras.substring(index,index+1);
	if (letrap==letra && !isNaN(dni) && dni.length < 9)
		return true;
	
	return false;
}

function nie(nie_str){
	nie_str     = nie_str.toUpperCase();
	var letra1  = nie_str.substring(0,1);
	var letra2  = nie_str.substring(2,1);

	if (letra2 != '0' && nie_str.length == 10)
	{
		return false;
	}
	else if (letra2 == '0' && nie_str.length == 10){
		return true;
	}
	
	if (letra1 == 'Y' && nie_str.length == 9)
	{
		var nif_str = "1" + nie_str.substring(1,nie_str.length);
	}
	else
	{
		var nif_str = nie_str.substring(1,nie_str.length);
	}
	if( (letra1 == 'X' || letra1 == 'T' || letra1 == 'Y') && nif_str.length <= 9 && nif(nif_str) )
		return true;

	return false;
}
function checkDown(e)
{
if(window.event){ 
	if(window.event.keyCode == 17)
	{
		ctrl = true;
	}
	else if(window.event.keyCode == 86 && ctrl)
	{
		if(window.event){ 
		// IE4??
			e = window.event;  
			e.returnValue=false;
			return false;
		 }
		 else if(e){
	 		e.preventDefault(); 
			return false;
	 	}
	}
}
if( e.keyCode == 17 )
{
	ctrl = true;
}
	else if(e.keyCode == 86 && ctrl)
	{
		if(window.event){ 
		// IE4??
			e = window.event;  
			e.returnValue=false;
			return false;
		 }
		 else if(e){
	 		e.preventDefault(); 
			return false;
	 	}
	}
}

function checkUp(e)
{
	if(window.event)
	{
		if(window.event.keyCode == 17)
		{
			ctrl = false;
		}
	}
	else 
	{
		if( e.keyCode == 17 )
		{
			ctrl = false;
		}
	}
}

function getTodayString()
{
	var d = new Date();
	var hoy	= "" + d.getFullYear();
	
	var temp = d.getMonth() + 1;
	if ( temp < 10 ) temp = "0" + temp;
	hoy	= hoy + temp;
	
	temp = d.getDate();
	if ( temp < 10 ) temp = "0" + temp;
	hoy = hoy + temp;	
	
	return hoy;
}

function calculaEdad(fecha1, fecha2)
{
	
	edad = parseInt(fecha2.substring(0,4)) - parseInt(fecha1.substring(0,4));
	if ( fecha2.substring(4,8) < fecha1.substring(4,8) ) edad = edad - 1;
	return edad;
}

function selectAll()
{
for (var i=0;i < document.Pax.elements.length;i++){
	var elemento = document.Pax.elements[i];
	if (elemento.type == "checkbox"){
		if (elemento.checked == false){
			elemento.checked = true;
		}else{
			elemento.checked = false;
		}
	}
}
}

function checkeo(){

var maximo = document.Pax.checkbox;

var arrayx = new Array();
var inpax = 0;
if(!isArray(document.Pax.checkbox)){
	arrayx[inpax] = maximo.value;
}
for(i = 0; i < maximo.length; i++){
	if (maximo[i].checked == true){
		arrayx[inpax] = maximo[i].value;
		inpax += 1;
	 }
}
return (arrayx);
}
function validateSMSPhone(prefs_sms,tel_sms){
			pref=prefs_sms.replace(/^\s*(.*\S+)?\s*$jq/, "$jq1");
			tel=tel_sms.replace(/^\s*(.*\S+)?\s*$jq/, "$jq1");
		
			boolSubmit=pref.match(/^\+\d{1,3}$jq/) && tel.match(/^\d+$jq/);

			return boolSubmit;
}
function sendSMS(sid,errorTelf,idioma){

	var arrayx = checkeo();
	var boolError = false;
	document.Pax.passenger.value = arrayx;
	if(arrayx.length>0 ){
		var arrayw = checkeoSms();
		document.Pax.sms.value = arrayw;
		var arrayTel = new Array();
		for(i = 0; i < arrayw.length; i++){
			id_tel = eval(document.Pax.sms.value.split(',')[i].split('_')[1])-1;
			if(isArray(document.Pax.tel_sms)){
				if(validateSMSPhone(document.Pax.pref_sms[id_tel].value,document.Pax.tel_sms[id_tel].value) == null){
					boolError = true;
					break;
				}else{
					arrayTel[i] = document.Pax.pref_sms[id_tel].value + "-" +document.Pax.tel_sms[id_tel].value;
				}
			}else {
				if(document.Pax.tel_sms.value == ""){
					arrayw = [];
					break;
				}else if(validateSMSPhone(document.Pax.pref_sms.value,document.Pax.tel_sms.value) == null){
					boolError = true;
					break;
				}else{
					arrayTel[i] = document.Pax.pref_sms.value + "-" +document.Pax.tel_sms.value;
				}
			}
		}
		if(!boolError && arrayw.length>0){
			document.Pax.telsms.value = arrayTel;
			nuevoAjax();
		//	showcardDisplay(true);
			callAjax("/skylights/cgi-bin/skylights.cgi?page=MBPAJAX&module=SB&action=sendMBP&sid="+sid+"&pax="+document.Pax.passenger.value+"&sms="+document.Pax.sms.value+"&telsms="+document.Pax.telsms.value+"&language="+idioma,"showMessage","");		
		}else if (arrayw.length > 0){
			alert(errorTelf);
			document.Pax.tel_sms[id_tel].value="";	
			document.Pax.tel_sms[id_tel].focus();
		}else if (arrayw.length == 0) onsubmit();
	}else{
		alert('Selecciona por lo menos un pasajero para poder continuar.');
	}
}
function popupBordingMobile(idioma){
	var condiciones = "/mbp/popup_checkin_movil.php?language="+idioma;
	window.open(condiciones,'popup','width=670,height=450,scrollbars=yes');
}
function showTelf(id,markets,index,fares){
	bdisplay = false;
		if(fares>1){
			var calcIndex = index % 2;
			if(calcIndex != 0) index = index -1;
		}
		if(isArray(document.Pax.checkboxSms)){
			for(i = 0; i <=markets; i++){
				
				if(document.Pax.checkboxSms[index].checked){
					bdisplay = true;
				}
				index = index+1;
			}
		}else{
			if(document.Pax.checkboxSms.checked){
					bdisplay = true;
			}
		}

	if(bdisplay){
		document.getElementById('target_em_'+id).style.display = 'block';
	}else{
		document.getElementById('target_em_'+id).style.display = 'none';
	}
}

function checkeoSms(){

var maximo = document.Pax.checkboxSms;
var arrayx = new Array();
var inpax = 0;
if(!isArray(document.Pax.checkboxSms)){
	arrayx[inpax] = maximo.value;
}
for(i = 0; i < maximo.length; i++){
	if (maximo[i].checked == true){
		arrayx[inpax] = maximo[i].value;
		inpax += 1;
	 }
}
return (arrayx);
}
function showMessage(result){
//	showcardDisplay(false);
	if(result.split("-->")[1] == 1) alert(msg_ok);
	else alert(msg_ko);
	
	onsubmit();
}
function onsubmit(){
	if (typeof(document.Pax)!='undefined'){
		var arrayx = checkeo();
		if (arrayx.length > 0){
			document.Pax.passenger.value = arrayx;
			document.Pax.submit();
		}else{
			alert('Selecciona por lo menos un pasajero para poder continuar.');
		}
	}
}
function isArray(obj) {
   return(typeof(obj.length)=="undefined")?false:true;
}
/*START JS for checkinonline*/
function mostrar_siguiente(opcion){
	if(opcion=='2'){
		document.getElementById('campo_email').style.display='none';
		document.getElementById('boton_cambios').style.display='block';
	}else{
		document.getElementById('boton_cambios').style.display='block';
	}
}

function mostrar_email(){
	document.getElementById('campo_email').style.display='block';
	document.getElementById('boton_cambios').style.display='none';
}

var connclassName = "connFlight";
var ExpandState = 0;
var fadeTimer = 100;
var dayGroupMark1 = new Array();
var dayGroupMark2 = new Array();
var dayGroupSele1 = new Array();
var dayGroupSele2 = new Array();


function deleteDuplicatesGroup(arr) {
	var i,
	len=arr.length,
	out=[],
	obj={};

	for (i=0;i<len;i++) {
		obj[arr[i]]=0;
	}
	for (i in obj) {
		out.push(i);
	}
	return out;
}

function deleteUnselected(arr, item) {
	var j = 0;
	while (j < arr.length) {
		if (arr[j] == item) {
			arr.splice(j, 1);
		} else { j++; }
	}
	return arr;
}
function expandDesplagableInfoFlight(idMarket){
	var $jq = jQuery.noConflict();	
	if($jq("#plusImage"+idMarket)){
		if($jq("#plusImage"+idMarket).attr("src") == "/skylights/images/SB/+.gif"){
			$jq("#plusImage"+idMarket).attr("src","/skylights/images/SB/-.gif");
			ExpandState = 1;
		} else {
			$jq("#plusImage"+idMarket).attr("src","/skylights/images/SB/+.gif");
			ExpandState = 0;
		}
		
		expandDesplagableInfoFlightGroup(idMarket.substring(idMarket.length,idMarket.length-1), idMarket.substring(0,1), ExpandState);
	}
}

function expandDesplagableInfoFlightGroup(div_id, day_n, ExpandState){
	
	var $jq = jQuery.noConflict();
	if(ExpandState == 1){
		if(div_id == 1){
			dayGroupMark1.push(day_n);
			dayGroupSele1 = deleteDuplicatesGroup(dayGroupMark1);
		} else {
			dayGroupMark2.push(day_n);
			dayGroupSele2 = deleteDuplicatesGroup(dayGroupMark2);
		}
	} else {
		if(div_id == 1){
			deleteUnselected(dayGroupMark1, day_n);
			deleteUnselected(dayGroupSele1, day_n);
		} else {
			deleteUnselected(dayGroupMark2, day_n);
			deleteUnselected(dayGroupSele2, day_n);
		}
	}
	
	var div_id_m = div_id - 1;
	
	if (day_n == "n") {
		resultsN = "resultsRown";
	} else {
		resultsN = "resultsRowp";
	}

	$jq.each($jq('#results'+div_id_m+' table tr'), function(i) {
		
		if($jq(this).attr("class").substring(0,11) == resultsN){
			if(ExpandState == 1){
				if($jq('input[name=checkConnFlight_'+div_id+']').is(':checked') && ($jq(this).attr("class").indexOf(connclassName) != -1)){
					$jq(this).fadeOut(fadeTimer);
				} else {
					$jq(this).fadeIn(fadeTimer);
				}
			} else {
				$jq(this).fadeOut(fadeTimer);
			}
		}
	});
}
function hideConnFlight(market){

	var div_id_m2 = market - 1;
	dayGroupSele1ected = eval("dayGroupSele"+market);
	var $jq = jQuery.noConflict();
	if ($jq('input[name=checkConnFlight_'+market+']').is(':checked')){
		$jq.each(dayGroupSele1ected, function(j) {				
			connGroupclass = connclassName+"_"+market+"G_"+dayGroupSele1ected[j];

			$jq.each($jq('#results'+div_id_m2+' table tr'), function(j) {
				if($jq(this).attr("class").substring($jq(this).attr("class").length-15,$jq(this).attr("class").length) == connGroupclass){
					$jq(this).fadeOut(fadeTimer);
				}
			});
		});
		$jq("."+connclassName+"_"+market).fadeOut(fadeTimer);
	} else {
		$jq.each(dayGroupSele1ected, function(j) {				
			connGroupclass = connclassName+"_"+market+"G_"+dayGroupSele1ected[j];

			$jq.each($jq('#results'+div_id_m2+' table tr'), function(j) {
				if($jq(this).attr("class").substring($jq(this).attr("class").length-15,$jq(this).attr("class").length) == connGroupclass){
					
					$jq(this).fadeIn(fadeTimer);
				}
			});
			
		});
		$jq("."+connclassName+"_"+market).fadeIn(fadeTimer);
	}
}
function bagInfoShowHide(status){
	var $jq = jQuery.noConflict(); 
	if (status=="1") {
		//capa de aceptar condiciones equipaje
		$jq("#infoExtraMaletas").css("display","block");
	}
	if (status=="0") {
		$jq("#infoExtraMaletas").css("display","none");
	}
	if (tooltipValidations) { tooltipValidations.clearSection("bagsError"); tooltipValidations.repositionAll();  }
}

/*FIN JS for checkinonline*/
