//Javascript //country var enNum = new Array(); var enVal = new Array(),enInd = new Array(); enNum[0]=1; enVal[0]=new Array(),enInd[0]=new Array(); enVal[0][0]="0",enInd[0][0]="指定なし"; enNum["0400"]=4; enVal["0400"]=new Array(),enInd["0400"]=new Array(); enVal["0400"][0]="0",enInd["0400"][0]="指定なし"; enVal["0400"][1]="FJ",enInd["0400"][1]="フィジー"; enVal["0400"][2]="NC",enInd["0400"][2]="ニューカレドニア"; enVal["0400"][3]="31",enInd["0400"][3]="タヒチ"; //city var enNum2 = new Array(); var enVal2 = new Array(),enInd2 = new Array(); enNum2[0]=1; enVal2[0]=new Array(),enInd2[0]=new Array(); enVal2[0][0]="0",enInd2[0][0]="指定なし"; enNum2["FJ"]=14; enVal2["FJ"]=new Array(),enInd2["FJ"]=new Array(); enVal2["FJ"][0]="0",enInd2["FJ"][0]="指定なし"; enVal2["FJ"][1]="MNF",enInd2["FJ"][1]="マナ島"; enVal2["FJ"][2]="YAS",enInd2["FJ"][2]="ヤサワ諸島エリア"; enVal2["FJ"][3]="06T",enInd2["FJ"][3]="ママヌザ諸島エリア"; enVal2["FJ"][4]="B50",enInd2["FJ"][4]="バヌアレブ島エリア"; enVal2["FJ"][5]="TVU",enInd2["FJ"][5]="タベウニ島エリア"; enVal2["FJ"][6]="KDV",enInd2["FJ"][6]="カンダブ島エリア"; enVal2["FJ"][7]="07T",enInd2["FJ"][7]="その他の離島エリア"; enVal2["FJ"][8]="NAN",enInd2["FJ"][8]="ビチレブ島(ナンディ&その周辺)エリア"; enVal2["FJ"][9]="XCC",enInd2["FJ"][9]="ビチレブ島(コーラルコースト)エリア"; enVal2["FJ"][10]="08T",enInd2["FJ"][10]="ビチレブ島(サンシャインコースト)エリア"; enVal2["FJ"][11]="PHR",enInd2["FJ"][11]="ビチレブ島(パシフィックハーバー)エリア"; enVal2["FJ"][12]="SUV",enInd2["FJ"][12]="ビチレブ島(スバ)エリア"; enVal2["FJ"][13]="B09",enInd2["FJ"][13]="フィジー"; enNum2["NC"]=7; enVal2["NC"]=new Array(),enInd2["NC"]=new Array(); enVal2["NC"][0]="0",enInd2["NC"][0]="指定なし"; enVal2["NC"][1]="NOU",enInd2["NC"][1]="ヌメア(グランドテール島)"; enVal2["NC"][2]="ILP",enInd2["NC"][2]="イル・デ・パン"; enVal2["NC"][3]="UVE",enInd2["NC"][3]="ウベア島"; enVal2["NC"][4]="LIF",enInd2["NC"][4]="リフー島"; enVal2["NC"][5]="MEE",enInd2["NC"][5]="マレ島"; enVal2["NC"][6]="B15",enInd2["NC"][6]="メットル島"; enNum2["31"]=11; enVal2["31"]=new Array(),enInd2["31"]=new Array(); enVal2["31"][0]="0",enInd2["31"][0]="指定なし"; enVal2["31"][1]="PPT",enInd2["31"][1]="タヒチ島(パペーテ)"; enVal2["31"][2]="MOZ",enInd2["31"][2]="モーレア島"; enVal2["31"][3]="BOB",enInd2["31"][3]="ボラボラ島"; enVal2["31"][4]="RFP",enInd2["31"][4]="ライアテア島"; enVal2["31"][5]="TYH",enInd2["31"][5]="タハア島"; enVal2["31"][6]="HUH",enInd2["31"][6]="フアヒネ島"; enVal2["31"][7]="RGI",enInd2["31"][7]="ランギロア島"; enVal2["31"][8]="TIH",enInd2["31"][8]="ティケハウ島"; enVal2["31"][9]="XMH",enInd2["31"][9]="マニヒ島"; enVal2["31"][10]="09T",enInd2["31"][10]="マルケサス諸島"; function setDefault( area, country, city, dpm, dpd, dppc, al ) { var now = new Date(); var day = now.getDate(); var month = now.getMonth(); var get = getRequest();//日付の調整で使う。dpm,dpdがなければ出発日のセットはしない if(get['dpm'] != false || get['dpd'] != false){ //日本出発日 now.setDate(day+14); day = now.getDate(); month = now.getMonth(); month++; if(month > 12) { month = 1; } //月 for(i = 0;i < document.getElementById("dpm").options.length; i++) { if( dpm ) { if( dpm == document.getElementById("dpm").options[i].text ) { document.getElementById("dpm").selectedIndex = i; } } else if( document.getElementById("dpm").options[i].text == (month) ) { document.getElementById("dpm").selectedIndex = i; } } //日 if(get['dpd'] || !get){ for(i = 0;i < document.getElementById("dpd").options.length; i++) { if( dpd ) { if( dpd == document.getElementById("dpd").options[i].text ) { document.getElementById("dpd").selectedIndex = i; } } else if( document.getElementById("dpd").options[i].text == (day) ) { document.getElementById("dpd").selectedIndex = i; } } } } //Deptport document.getElementById("dppc").options[0]=new Option('指定なし',''); document.getElementById("dppc").options[1]=new Option('札幌','SPK'); if( dppc ) { if( dppc == document.getElementById("dppc").options[1].value ) { document.getElementById("dppc").selectedIndex = 1; } } document.getElementById("dppc").options[2]=new Option('仙台','SDJ'); if( dppc ) { if( dppc == document.getElementById("dppc").options[2].value ) { document.getElementById("dppc").selectedIndex = 2; } } document.getElementById("dppc").options[3]=new Option('成田','NRT'); if( dppc ) { if( dppc == document.getElementById("dppc").options[3].value ) { document.getElementById("dppc").selectedIndex = 3; } } document.getElementById("dppc").options[4]=new Option('羽田','HND'); if( dppc ) { if( dppc == document.getElementById("dppc").options[4].value ) { document.getElementById("dppc").selectedIndex = 4; } } document.getElementById("dppc").options[5]=new Option('名古屋','NGO'); if( dppc ) { if( dppc == document.getElementById("dppc").options[5].value ) { document.getElementById("dppc").selectedIndex = 5; } } document.getElementById("dppc").options[6]=new Option('関西','KIX'); if( dppc ) { if( dppc == document.getElementById("dppc").options[6].value ) { document.getElementById("dppc").selectedIndex = 6; } } document.getElementById("dppc").options[7]=new Option('伊丹','ITM'); if( dppc ) { if( dppc == document.getElementById("dppc").options[7].value ) { document.getElementById("dppc").selectedIndex = 7; } } document.getElementById("dppc").options[8]=new Option('福岡','FUK'); if( dppc ) { if( dppc == document.getElementById("dppc").options[8].value ) { document.getElementById("dppc").selectedIndex = 8; } } document.getElementById("dppc").options[9]=new Option('新潟','KIJ'); if( dppc ) { if( dppc == document.getElementById("dppc").options[9].value ) { document.getElementById("dppc").selectedIndex = 9; } } document.getElementById("dppc").options[10]=new Option('岡山','OKJ'); if( dppc ) { if( dppc == document.getElementById("dppc").options[10].value ) { document.getElementById("dppc").selectedIndex = 10; } } document.getElementById("dppc").options[11]=new Option('広島','HIJ'); if( dppc ) { if( dppc == document.getElementById("dppc").options[11].value ) { document.getElementById("dppc").selectedIndex = 11; } } document.getElementById("dppc").options[12]=new Option('静岡','FSZ'); if( dppc ) { if( dppc == document.getElementById("dppc").options[12].value ) { document.getElementById("dppc").selectedIndex = 12; } } document.getElementById("dppc").options.length=13; //Airline1 document.getElementById("al1").options[0]=new Option('指定なし',''); document.getElementById("al1").options[1]=new Option('エア・パシフィック航空','FJ'); if( al ) { if( al == document.getElementById("al1").options[1].value ) { document.getElementById("al1").selectedIndex = 1; } } document.getElementById("al1").options[2]=new Option('キャセイパシフィック航空','CX'); if( al ) { if( al == document.getElementById("al1").options[2].value ) { document.getElementById("al1").selectedIndex = 2; } } document.getElementById("al1").options[3]=new Option('コンチネンタル航空','CO'); if( al ) { if( al == document.getElementById("al1").options[3].value ) { document.getElementById("al1").selectedIndex = 3; } } document.getElementById("al1").options[4]=new Option('大韓航空','KE'); if( al ) { if( al == document.getElementById("al1").options[4].value ) { document.getElementById("al1").selectedIndex = 4; } } document.getElementById("al1").options[5]=new Option('ニューギニア航空','PX'); if( al ) { if( al == document.getElementById("al1").options[5].value ) { document.getElementById("al1").selectedIndex = 5; } } document.getElementById("al1").options[6]=new Option('エア・カラン','SB'); if( al ) { if( al == document.getElementById("al1").options[6].value ) { document.getElementById("al1").selectedIndex = 6; } } document.getElementById("al1").options[7]=new Option('エア・タヒチ・ヌイ','TN'); if( al ) { if( al == document.getElementById("al1").options[7].value ) { document.getElementById("al1").selectedIndex = 7; } } document.getElementById("al1").options.length=8; //Area document.getElementById("ar").options[0]=new Option('指定なし',''); document.getElementById("ar").options[1]=new Option('南太平洋','0400'); if( area == '0400' ) { document.getElementById("ar").options[1].selected = true; } document.getElementById("ar").options.length=2; if( area ) { var n = area; for( i=0; i 1) { var get = new Object(); var ret = location.search.substr(1).split("&"); for(var i = 0; i < ret.length; i++) { var r = ret[i].split("="); get[r[0]] = r[1]; } return get; } else { return false; } }