function ChagePC(id,id2){ $('#'+id).attr('linkobj',id2); $('#'+id).change(function (){ products_catalog_key(id2,$(this).val(),document.getElementById($(this).attr('linkobj'))); }); } function products_catalog_key(id2,num,st) { var ctr=0;st.selectedIndex=0;st.empty; if( id2 == 'pcid'){st.options[0]=new Option("選擇國家","");ctr=ctr+1;} else if( id2 == 'cid'){st.options[0]=new Option("選擇城市","");ctr=ctr+1;} if(num=="0"){st.options[ctr]=new Option("歐洲","63");ctr=ctr+1;} if(num=="0"){st.options[ctr]=new Option("亞洲","70");ctr=ctr+1;} if(num=="0"){st.options[ctr]=new Option("美洲","64");ctr=ctr+1;} if(num=="0"){st.options[ctr]=new Option("大洋洲","68");ctr=ctr+1;} if(num=="0"){st.options[ctr]=new Option("中東非洲","69");ctr=ctr+1;} if(num=="0"){st.options[ctr]=new Option("遊輪","65");ctr=ctr+1;} if(num=="63"){st.options[ctr]=new Option("德國。瑞士","71");ctr=ctr+1;} if(num=="63"){st.options[ctr]=new Option("奧地利。捷克","122");ctr=ctr+1;} if(num=="63"){st.options[ctr]=new Option("東歐。巴爾幹半島","124");ctr=ctr+1;} if(num=="63"){st.options[ctr]=new Option("北歐","125");ctr=ctr+1;} if(num=="63"){st.options[ctr]=new Option("義大利","131");ctr=ctr+1;} if(num=="63"){st.options[ctr]=new Option("西班牙","132");ctr=ctr+1;} if(num=="63"){st.options[ctr]=new Option("土耳其","134");ctr=ctr+1;} if(num=="70"){st.options[ctr]=new Option("日本","94");ctr=ctr+1;} if(num=="70"){st.options[ctr]=new Option("韓國","95");ctr=ctr+1;} if(num=="68"){st.options[ctr]=new Option("澳洲","90");ctr=ctr+1;} if(num=="68"){st.options[ctr]=new Option("紐西蘭","91");ctr=ctr+1;} if(num=="69"){st.options[ctr]=new Option("肯亞","92");ctr=ctr+1;} if(num=="65"){st.options[ctr]=new Option("皇家精緻千禧號","80");ctr=ctr+1;} if(num=="67"){st.options[ctr]=new Option("航班查詢","136");ctr=ctr+1;} if(num=="67"){st.options[ctr]=new Option("交通部觀光局","137");ctr=ctr+1;} if(num=="67"){st.options[ctr]=new Option("全球天氣","138");ctr=ctr+1;} if(num=="67"){st.options[ctr]=new Option("匯率換算","139");ctr=ctr+1;} if(num=="125"){st.options[ctr]=new Option("芬蘭。瑞典。挪威。丹麥。愛沙尼亞。拉脫維亞。","129");ctr=ctr+1;} if(num=="125"){st.options[ctr]=new Option(" 芬蘭。瑞典。挪威。丹麥。冰島。愛沙尼亞。拉脫維亞","130");ctr=ctr+1;} if(num=="94"){st.options[ctr]=new Option("大阪","100");ctr=ctr+1;} if(num=="94"){st.options[ctr]=new Option("東京","101");ctr=ctr+1;} if(num=="94"){st.options[ctr]=new Option("九州","102");ctr=ctr+1;} if(num=="94"){st.options[ctr]=new Option("東北","111");ctr=ctr+1;} if(num=="64"){st.options[ctr]=new Option("美國","140");ctr=ctr+1;} if(num=="65"){st.options[ctr]=new Option("皇家海洋和悅號","142");ctr=ctr+1;} if(num=="71"){st.options[ctr]=new Option("德國","143");ctr=ctr+1;} if(num=="71"){st.options[ctr]=new Option("瑞士","144");ctr=ctr+1;} if(num=="71"){st.options[ctr]=new Option("德瑞","145");ctr=ctr+1;} if(num=="73"){st.options[ctr]=new Option("法國","146");ctr=ctr+1;} if(num=="122"){st.options[ctr]=new Option("奧捷","147");ctr=ctr+1;} if(num=="122"){st.options[ctr]=new Option("捷克","148");ctr=ctr+1;} if(num=="70"){st.options[ctr]=new Option("大陸","149");ctr=ctr+1;} if(num=="70"){st.options[ctr]=new Option("港澳","150");ctr=ctr+1;} if(num=="150"){st.options[ctr]=new Option("香港","151");ctr=ctr+1;} if(num=="94"){st.options[ctr]=new Option("中國","153");ctr=ctr+1;} if(num=="67"){st.options[ctr]=new Option("珠江客運船班表","154");ctr=ctr+1;} if(num=="67"){st.options[ctr]=new Option("台灣高鐵","155");ctr=ctr+1;} if(num=="67"){st.options[ctr]=new Option("中華民國外交部","156");ctr=ctr+1;} if(num=="67"){st.options[ctr]=new Option("內政部移民署","157");ctr=ctr+1;} if(num=="67"){st.options[ctr]=new Option("桃園機場","158");ctr=ctr+1;} if(num=="67"){st.options[ctr]=new Option("台中航空站","159");ctr=ctr+1;} if(num=="67"){st.options[ctr]=new Option("美國在台協會","160");ctr=ctr+1;} if(num=="67"){st.options[ctr]=new Option("瑞士商務辦事處","161");ctr=ctr+1;} if(num=="67"){st.options[ctr]=new Option("香港旅遊發展局","162");ctr=ctr+1;} if(num=="67"){st.options[ctr]=new Option("澳門旅遊局","163");ctr=ctr+1;} if(num=="67"){st.options[ctr]=new Option("韓國觀光社","164");ctr=ctr+1;} if(num=="67"){st.options[ctr]=new Option("馬來西亞觀光局","165");ctr=ctr+1;} if(num=="67"){st.options[ctr]=new Option("泰國觀光局","166");ctr=ctr+1;} if(num=="67"){st.options[ctr]=new Option("澳洲旅遊局","167");ctr=ctr+1;} if(num=="67"){st.options[ctr]=new Option("紐西蘭觀光局","168");ctr=ctr+1;} if(num=="67"){st.options[ctr]=new Option("福建海峽旅遊網","169");ctr=ctr+1;} if(num=="125"){st.options[ctr]=new Option("北歐五國。冰島。峽灣","170");ctr=ctr+1;} if(num=="132"){st.options[ctr]=new Option("璀璨西班牙。七大名城","171");ctr=ctr+1;} if(num=="131"){st.options[ctr]=new Option("南北義大利。五漁村。卡布里島藍洞。水都威尼斯","173");ctr=ctr+1;} if(num=="70"){st.options[ctr]=new Option("東南亞","176");ctr=ctr+1;} if(num=="176"){st.options[ctr]=new Option("汶萊","177");ctr=ctr+1;} if(num=="69"){st.options[ctr]=new Option("埃及","178");ctr=ctr+1;} if(num=="64"){st.options[ctr]=new Option("中南美洲","180");ctr=ctr+1;} if(num=="176"){st.options[ctr]=new Option("馬來西亞","181");ctr=ctr+1;} if(num=="65"){st.options[ctr]=new Option("海島公主郵輪","182");ctr=ctr+1;} if(num=="70"){st.options[ctr]=new Option("台灣(國內)","183");ctr=ctr+1;} if(num=="184"){st.options[ctr]=new Option("南部","185");ctr=ctr+1;} if(num=="184"){st.options[ctr]=new Option("東部","186");ctr=ctr+1;} if(num=="184"){st.options[ctr]=new Option("離島","187");ctr=ctr+1;} if(num=="184"){st.options[ctr]=new Option("北部","188");ctr=ctr+1;} if(num=="184"){st.options[ctr]=new Option("中部","189");ctr=ctr+1;} if(num=="67"){st.options[ctr]=new Option("澳洲旅遊專家","190");ctr=ctr+1;} if(num=="176"){st.options[ctr]=new Option("越南","191");ctr=ctr+1;} if(num=="65"){st.options[ctr]=new Option("MSC遊輪","192");ctr=ctr+1;} if(num=="69"){st.options[ctr]=new Option("摩洛哥","193");ctr=ctr+1;} if(num=="94"){st.options[ctr]=new Option("四國","194");ctr=ctr+1;} if(num=="176"){st.options[ctr]=new Option("泰國","195");ctr=ctr+1;} if(num=="94"){st.options[ctr]=new Option("北海道","196");ctr=ctr+1;} if(num=="94"){st.options[ctr]=new Option("北陸","197");ctr=ctr+1;} st.length=ctr;$('#'+st.id).change(); }