document.write("");$(function(){function getAirPortCode(m_HTML1,m_HTML2,m_cityName,m_Hide){var airport_split=citystr.split(",");var airportCode_split=citystrcode.split(",");var m_cityName_temp=m_cityName.toUpperCase();for(i=0;iGoing to:")} break case 2:this.onclick=function(){hideAll();$("#fromWhere").show();$("#toWhere").show();$("#startDate").show();$("#endDate").show();$("#textTo").html("Going to:");$("#textRetuenDate").html(" Return:")} break case 3:this.onclick=function(){hideAll();$("#fromWhere").show();$("#toWhere").show();$("#startDate").show();$("#endDate").show();$("#textTo").html(" Fst Arrival:");$("#arrival").show();$("#textRetuenDate").html(" Sec Depart:")} break}});$(".tableResult .allclass").click(function(){var strtmp=$(this).attr("name");var arrstrtmp=strtmp.split("_");var cstar=arrstrtmp[0];var cdest=arrstrtmp[1];var id=arrstrtmp[2];var queryId=arrstrtmp[3];var blsave=arrstrtmp[4];var datapag;var js_Cache="";if($(this).attr("id")=="js_openClass") {$(this).parents("tr").after(js_Cache);$(this).text("Hide Classes").attr("id","js_closeClass").parents("tr").attr("id",$(this).parents("tr").attr("class")).removeClass().addClass("openClass");if($(".tr"+id).length>0) {$(".js_openClass").remove();$(".tr"+id).show();return;} $.post("/include/ajax.asp",{strtemp:"get-other-flight-price",id:id,queryId:queryId,cstar:cstar,cdest:cdest,blsave:blsave},function(data){$(".js_openClass").remove();$(".allclass[name="+strtmp+"]").parents("tr").after(data);});} else {$(this).text("All Classes").attr("id","js_openClass").parents("tr").removeClass().addClass($(this).parents("tr").attr("id"));$(".tr"+id).hide();}});$(".ParamSort").click(function(){if($(this).attr("id")=="OrderByTime") {$("#orderBy_Price").val("");$("#orderBy_Time").val($(this).attr("name"));} else {$("#orderBy_Time").val("");$("#orderBy_Price").val($(this).attr("name"));} $("#flightForm").submit();});$.each($(".flightSort input:visible"),function(){$(this).click(function(){if($(this).attr("checked")) {$("#flightForm").submit();return;}});});$("#js_chooseLowPrice").click(function(){$(this).parents("form").submit();});})