// JavaScript Document
var sArr=new Array();
sArr['Owine']=new Array();
sArr['Nwine']=new Array();
sArr['Owine']['france']='<a href="wine_list.php?l=France">法國全區 France</a> - <a href="wine_list.php?l=Alsace">阿爾薩斯 Alsace</a> - <a href="wine_list.php?l=Armagnac">雅馬邑 Armagnac</a> - <a href="wine_list.php?l=Beaujolais">薄酒來 Beaujolais</a> - <a href="wine_list.php?l=Bordeaux">波爾多 Bordeaux</a> - <a href="wine_list.php?l=Burgundy">布根地 Burgundy</a> - <a href="wine_list.php?l=Champagne">香檳 Champagne</a> - <a href="wine_list.php?l=Chablis">夏布利 Chablis</a> - <a href="wine_list.php?l=Cognac">干邑 Cognac</a> - <a href="wine_list.php?l=Cotes du Rhone">隆河丘 Cotes du Rhone</a> - <a href="wine_list.php?l=Languedoc-Roussillon">隆格多克-魯西雍 Languedoc-Roussillon</a> - <a href="wine_list.php?l=Loire">羅亞爾 Loire</a> - <a href="wine_list.php?l=Provence">普羅旺斯 Provence</a> - <a href="wine_list.php?l=Rhone Valley">隆河谷 Rhone Valley</a> - <a href="wine_list.php?l=Sud_Ouest">西南產區 Sud-Ouest</a> - <a href="wine_list.php?r=34">其他法國產區 Other French Regions</a>';

sArr['Owine']['italy']='<a href="wine_list.php?l=Italy">義大利全區 Italy</a>  - <a href="wine_list.php?l=Tuscany">托斯卡尼 Tuscany</a> - <a href="wine_list.php?l=Piedmont">皮蒙 Piedmont</a> - <a href="wine_list.php?l=Veneto">威尼托 Veneto</a> - <a href="wine_list.php?l=Trentino-Alto Adige">特倫蒂諾-上阿迪傑 Trentino-Alto Adige</a> - <a href="wine_list.php?l=Friuli-Venezia Giulia">弗留利-威尼斯朱利亞 Friuli-Venezia Giulia</a> - <a href="wine_list.php?l=Valle d’Aosta">瓦萊達奧斯塔 Valle d’Aosta</a> - <a href="wine_list.php?l=Emilia-Romagna">艾米利亞-羅馬涅 Emilia-Romagna</a> - <a href="wine_list.php?l=Umbria">翁布利亞 Umbria</a> - <a href="wine_list.php?l=Lombardy">倫巴第 Lombardy</a> - <a href="wine_list.php?l=Marches">馬給 Marches</a> - <a href="wine_list.php?l=Sardinia">薩丁尼亞 Sardinia</a> - <a href="wine_list.php?l=Sicily">西西里 Sicily</a> - <a href="wine_list.php?l=Apulia">阿普利亞 Apulia</a> - <a href="wine_list.php?l=Abruzzo">阿布盧佐 Abruzzo</a> - <a href="wine_list.php?r=48">其他義大利產區 Other Italian Regions</a>';

sArr['Owine']['spain']='<a href="wine_list.php?l=Spain">西班牙全區 Spain</a> - <a href="wine_list.php?l=Rioja">里奧哈 Rioja</a> - <a href="wine_list.php?l=Ribera del Duero">斗羅河岸 Ribera del Duero</a> - <a href="wine_list.php?l=Penedes">佩內德斯 Penedes</a> - <a href="wine_list.php?l=Priorat">普里奧拉 Priorat</a> - <a href="wine_list.php?l=Toro">多羅 Toro</a> - <a href="wine_list.php?l=Bullas">布亞斯 Bullas</a> - <a href="wine_list.php?l=Navarra">納瓦拉 Navarra</a> - <a href="wine_list.php?l=Murcia">莫西亞 Murcia</a> - <a href="wine_list.php?l=La Mancha">拉曼恰 La Mancha</a> - <a href="wine_list.php?l=Jerez">赫雷斯 Jerez </a> - <a href="wine_list.php?l=Rias Baixas">下海灣 Rias Baixas</a> - <a href="wine_list.php?r=60">其他西班牙產區 Other Spanish Regions</a>';

sArr['Owine']['germany']='<a href="wine_list.php?l=Germany">德國全區 Germany</a> - <a href="wine_list.php?l=Mosel-Saar-Ruwer">摩澤爾-薩爾-烏沃 Mosel-Saar-Ruwer</a> - <a href="wine_list.php?l=Rheinhessen">萊茵黑森 Rheinhessen</a> - <a href="wine_list.php?l=Rheingau">萊茵高 Rheingau</a> - <a href="wine_list.php?l=Nahe">納赫 Nahe</a> - <a href="wine_list.php?l=Pfalz">普法爾茲 Pfalz</a> - <a href="wine_list.php?r=66">其他德國產區 Other German Regions</a>';

sArr['Owine']['portugal']='<a href="wine_list.php?l=Portugal">葡萄牙全區 Portugal</a> - <a href="wine_list.php?l=Dao">杜奧 Dao</a> - <a href="wine_list.php?l=Douro">斗羅 Douro</a> - <a href="wine_list.php?r=69">其他葡萄牙產區 Other Portuguese Regions</a>';

sArr['Owine']['otherold']='<a href="wine_list.php?l=Old World">舊世界產區全區 Old World</a> - <a href="wine_list.php?l=United Kingdom">英國 United Kingdom</a> - <a href="wine_list.php?l=Ireland">愛爾蘭 Ireland</a> - <a href="wine_list.php?l=Switzerland">瑞士 Switzerland</a> - <a href="wine_list.php?l=Austria">奧地利 Austria</a> - <a href="wine_list.php?l=Hungary">匈牙利 Hungary</a> - <a href="wine_list.php?l=Bulgaria">保加利亞 Bulgaria</a> - <a href="wine_list.php?l=Romania">羅馬尼亞 Romania</a> - <a href="wine_list.php?l=Greece">希臘 Greece</a> - <a href="wine_list.php?l=Slovenia">斯洛維尼亞 Slovenia</a> - <a href="wine_list.php?l=Czech Republic">捷克共和國 Czech Republic</a> - <a href="wine_list.php?l=Israel">以色列 Israel</a> - <a href="wine_list.php?l=Lebanon">黎巴嫩 Lebanon</a> - <a href="wine_list.php?l=Turkey">土耳其 Turkey</a> - <a href="wine_list.php?r=82">其他舊世界產區 Other Old World Regions</a>';

sArr['Nwine']['unitedstates']='<a href="wine_list.php?l=United States">美國全區 United States</a> - <a href="wine_list.php?l=California">加州 California</a> - <a href="wine_list.php?l=Oregon">奧勒岡 Oregon</a> - <a href="wine_list.php?l=Washington">華盛頓 Washington</a> - <a href="wine_list.php?l=New York">紐約 New York</a> - <a href="wine_list.php?r=87">其他美國產區 Other US Regions</a>';

sArr['Nwine']['canada']='<a href="wine_list.php?l=Canada">加拿大全區 Canada</a> - <a href="wine_list.php?l=British Columbia">卑詩省 British Columbia</a> - <a href="wine_list.php?l=Ontario">安大略 Ontario</a> - <a href="wine_list.php?r=90">其他加拿大產區 Other Canadian Regions</a>';

sArr['Nwine']['chile']='<a href="wine_list.php?l=Chile">智利全區 Chile</a> - <a href="wine_list.php?l=Casablanca">卡薩布蘭卡 Casablanca</a> - <a href="wine_list.php?l=Maipo">美寶 Maipo</a> - <a href="wine_list.php?l=Rapel">拉佩爾 Rapel</a> - <a href="wine_list.phpCurico">克里科 Curico</a> - <a href="wine_list.php?l=Maule">莫爾 Maule</a> - <a href="wine_list.php?l=Bio-Bio">比奧比奧 Bio-Bio</a> - <a href="wine_list.php?r=97">其他智利產區 Other Chilean Regions</a>';

sArr['Nwine']['argentina']='<a href="wine_list.php?l=Argentina">阿根廷全區 Argentina</a> - <a href="wine_list.php?l=Mendoza">門多薩 Mendoza</a> - <a href="wine_list.php?l=Rio Negro">黑河 Rio Negro</a> - <a href="wine_list.php?l=Neuquen">內烏肯 Neuquen</a> - <a href="wine_list.php?r=101">其他阿根廷產區 Other Argentinian Regions</a>';

sArr['Nwine']['australia']='<a href="wine_list.php?l=Australia">澳洲全區 Australia</a> - <a href="wine_list.php?l=Southern Australia">南澳 Southern Australia</a> - <a href="wine_list.php?l=Western Australia">西澳 Western Australia</a> - <a href="wine_list.php?l=New South Wales">新南威爾斯 New South Wales (NSW)</a> - <a href="wine_list.php?l=Victoria">維多利亞 Victoria</a> - <a href="wine_list.php?r=106">其他澳洲產區 Other Australian Regions</a>';

sArr['Nwine']['newzealand']='<a href="wine_list.php?l=New Zealand">紐西蘭全區 New Zealand</a> - <a href="wine_list.php?l=Marlborough">馬博羅 Marlborough</a> - <a href="wine_list.php?l=Hawke’s Bay">豪克斯灣 Hawke’s Bay</a> - <a href="wine_list.php?l=Gisborne">吉斯本 Gisborne</a> - <a href="wine_list.php?r=110">其他紐西蘭產區 Other New Zealand Regions</a>';

sArr['Nwine']['southafrica']='<a href="wine_list.php?l=South Africa">南非全區 South Africa</a> - <a href="wine_list.php?l=Stellenbosch">斯坦倫布什 Stellenbosch</a> - <a href="wine_list.php?l=Franschhoek">法國角 Franschhoek</a> - <a href="wine_list.php?l=Paarl">帕爾 Paarl</a> - <a href="wine_list.php?r=114">其他南非產區 Other South African Regions</a>';

sArr['Nwine']['china']='<a href="wine_list.php?l=China">中國全區 China</a> - <a href="wine_list.php?l=Xinjiang">新疆 Xinjiang</a> - <a href="wine_list.php?l=Tianjin">天津 Tianjin</a> - <a href="wine_list.php?l=Shandong">山東 Shandong</a> - <a href="wine_list.php?l=Hebei">河北 Hebei</a> - <a href="wine_list.php?l=Henan">河南 Henan</a> - <a href="wine_list.php?l=Yunnan">雲南 Yunnan</a> - <a href="wine_list.php?r=121">其他中國產區 Other Chinese Regions</a>';

sArr['Nwine']['othernew']='<a href="wine_list.php?l=New World">新世界產區全區 New World</a> - <a href="wine_list.php?l=Mexico">墨西哥 Mexico</a> - <a href="wine_list.php?l=Brazil">巴西 Brazil</a> - <a href="wine_list.php?l=Japan">日本 Japan</a> - <a href="wine_list.php?l=Korea">韓國 Korea</a> - <a href="wine_list.php?l=Vietnam">越南 Vietnam</a> - <a href="wine_list.php?r=127">其他新世界產區 Other New World Regions</a>';

sArr['winetype'] = new Array();
sArr['winetype']['grape'] = '<a href="wine_list.php?t=Red">紅酒 Red</a> - <a href="wine_list.php?t=White">白酒 White</a> - <a href="wine_list.php?t=Rose">粉紅酒 Rose</a> - <a href="wine_list.php?t=Champagne">香檳/氣泡酒 Champagne/Sparkling</a> <BR> <a href="wine_list.php?t=Fortified">加烈葡萄酒 Fortified</a> (<a href="wine_list.php?t=Sherry">雪利酒 Sherry</a>, <a href="wine_list.php?t=Port">波特酒 Port</a>, <a href="wine_list.php?t=Other+Fortified">其他 Other Fortified</a>)';

sArr['winetype']['rice'] = '<a href="wine_list.php?t=Rice+Wines">米酒 RICE WINES</a><br>-  <a href="wine_list.php?t=Rice+Wines+Chinese">中國黃酒 Chinese</a> (<a href="wine_list.php?t=Shao Shing">紹興 Shao Shing</a>, <a href="wine_list.php?t=Hua Diao">花雕 Hua Diao</a>, <a href="wine_list.php?t=Nu Er Gong">女兒紅 Nu Er Gong</a>, <a href="wine_list.php?t=Rice+Other+Chinese">其他 Other</a>)<br>- <a href="wine_list.php?t=Rice+Wines+Japanese">日本米酒 Japanese</a> (<a href="wine_list.php?t=Sake">清酒 Sake</a>, <a href="wine_list.php?t=Shochu">燒酒 Shochu</a>, <a href="wine_list.php?t=Awamori">泡盛 Awamori</a>, <a href="wine_list.php?t=Amazake">甘酒 Amazake</a>, <a href="wine_list.php?t=Rice+Wines+Other+Japanese">其他 Other</a>)<br>- <a href="wine_list.php?t=Rice+Wines+Korean">韓國米酒 Korean</a> ( <a href="wine_list.php?t=Cheongju">淸酒 Cheongju</a>, <a href="wine_list.php?t=Makkoli">農酒 Makkoli</a>, <a href="wine_list.php?t=Soju">燒酒 Soju</a>, <a href="wine_list.php?t=Rice+Wines+Other+Korean">其他 Other</a>)<br>- <a href="wine_list.php?t=Other+Rice+Wines">其他米酒 Other Rice Wines</a>';

sArr['winetype']['wliquors'] = '<a href="wine_list.php?t=Western+Liquors">西方利口酒 WESTERN DISTILLED LIQUORS</a><br>- <a href="wine_list.php?t=Western+Whiskey">威士忌 Whiskey</a> (<a href="wine_list.php?t=Whiskey+Scotch">蘇格蘭威士忌 Scotch</a>,<a href="wine_list.php?t=Whiskey+Irish">愛爾蘭威士忌 Irish</a>,<a href="wine_list.php?t=Whiskey+Bourbon">波旁威士忌 Bourbon</a>,<a href="wine_list.php?t=Whiskey+Other">其他威士忌 Other</a>)<br>- <a href="wine_list.php?t=Western+Brandy">白蘭地 Brandy</a> (<a href="wine_list.php?t=Brandy+Cognac">干邑白蘭地 Cognac</a>,<a href="wine_list.php?t=Brandy+Spanish">西班牙白蘭地 Spanish</a>,<a href="wine_list.php?t=Brandy+Other">其他白蘭地 Other Brandy</a>)<br>- <a href="wine_list.php?t=Grappa">格拉巴酒 Grappa</a> - <a href="wine_list.php?t=Vodka">伏特加 Vodka</a> - <a href="wine_list.php?t=Gin">琴酒 Gin</a> - <a href="wine_list.php?t=Rum">藍姆酒 Rum</a> - <a href="wine_list.php?t=Tequila">龍舌蘭酒 Tequila</a><br> - <a href="wine_list.php?t=Other+Western+Liquors">其他西方利口酒 Other Western Distilled Liquors</a>';

sArr['winetype']['eliquors'] = '<a href="wine_list.php?t=Eastern+Liquors">東方利口酒 EASTERN DISTILLED LIQUORS</a><br>- <a href="wine_list.php?t=Eastern+Whiskey">威士忌 Whiskey</a> - <a href="wine_list.php?t=Eastern+Brandy">白蘭地 Brandy</a> - <a href="wine_list.php?t=Other+Eastern+Liquors">其他東方利口酒 Other Eastern Distilled Liquors</a>';

sArr['winetype']['beers'] = '<a href="wine_list.php?t=Beers">啤酒 Beers</a><br><a href="wine_list.php?t=Beers+Germany">德國啤酒 Germany</a> - <a href="wine_list.php?t=Beers+Belgium">比利時啤酒 Belgium</a> - <a href="wine_list.php?t=Beers+USA">美國啤酒 USA</a> - <a href="wine_list.php?t=Beers+Other">其他啤酒 Other Beers</a>';
sArr['winetype']['cliquors'] = '<a href="wine_list.php?t=Chinese+Liquors">中國白酒 CHINESE DISTILLED LIQUORS</a>';

sArr['foodtype']=new Array();
sArr['foodtype']['meat']='<a href="recipe_list.php?t=1,2,3,4,5,6">全部</a> - <a href="recipe_list.php?t=1">豬肉</a> - <a href="recipe_list.php?t=3">牛肉</a> - <a href="recipe_list.php?t=4">羊肉</a> - <a href="recipe_list.php?t=2">雞肉</a> - <a href="recipe_list.php?t=5">鴨肉</a> -<a href="recipe_list.php?t=6">其他</a>';

sArr['foodtype']['seafood']='<a href="recipe_list.php?t=7,8,9">全部</a> - <a href="recipe_list.php?t=7">魚</a> - <a href="recipe_list.php?t=8">貝類(有殼類)</a>  -<a href="recipe_list.php?t=9">其他</a>';

sArr['foodtype']['starch']='<a href="recipe_list.php?t=10,11,12,13,14">全部</a> - <a href="recipe_list.php?t=10">麵食</a> - <a href="recipe_list.php?t=11">米飯</a> - <a href="recipe_list.php?t=12">馬鈴薯</a> - <a href="recipe_list.php?t=13">麵包</a> - <a href="recipe_list.php?t=14">其他</a>';

sArr['foodtype']['vegetable']='<a href="recipe_list.php?t=15,16">全部</a> - <a href="recipe_list.php?t=15">烹調蔬菜</a> - <a href="recipe_list.php?t=16">沙拉</a>';

sArr['foodtype']['dessert']='<a href="recipe_list.php?t=17,18,19,20">全部</a> - <a href="recipe_list.php?t=17">水果</a> - <a href="recipe_list.php?t=18">蛋糕</a> - <a href="recipe_list.php?t=19">餅乾</a> - <a href="recipe_list.php?t=20">其他</a>';
sArr['foodtype']['drinks']='<a href="recipe_list.php?t=21,22">全部</a> - <a href="recipe_list.php?t=21">無酒精</a> - <a href="recipe_list.php?t=22">含酒精</a>';
sArr['foodtype']['other']='<a href="recipe_list.php?t=23,24,25,26,27">全部</a> - <a href="recipe_list.php?t=23">蛋/乳酪</a> - <a href="recipe_list.php?t=24">三明治</a> - <a href="recipe_list.php?t=25">羹/湯</a> - <a href="recipe_list.php?t=26">調味醬</a> - <a href="recipe_list.php?t=27">其他</a>';

sArr['rest']=new Array();
sArr['rest']['tp']='<a href="rest_list.php?l=1">大台北地區</a> - <a href="rest_list.php?l=11">大安區</a> - <a href="rest_list.php?l=12">信義區</a> - <a href="rest_list.php?&l=13">松山區</a> - <a href="rest_list.php?l=14">士林區</a> - <a href="rest_list.php?l=15">板橋區</a> - <a href="rest_list.php?l=16">中永和市</a> - <a href="rest_list.php?l=17">淡水鎮</a>';
sArr['rest']['kh']='<a href="rest_list.php?l=5">高雄全部</a> - <a href="rest_list.php?l=27">苓雅區</a> - <a href="rest_list.php?l=28">鼓山區</a> - <a href="rest_list.php?l=29">三民區</a> - <a href="rest_list.php?l=30">新興區</a> - <a href="rest_list.php?l=31">高雄縣</a>';
sArr['rest']['tc']='<a href="rest_list.php?l=3">台中全部</a> - <a href="rest_list.php?l=21">西區</a> - <a href="rest_list.php?l=22">南屯區</a> - <a href="rest_list.php?l=23">台中縣</a>';
sArr['rest']['ty']='<a href="rest_list.php?l=2">桃園全部</a> - <a href="rest_list.php?l=18">中壢市</a> - <a href="rest_list.php?l=19">桃園市</a> - <a href="rest_list.php?l=20">桃園縣</a>';
sArr['rest']['tn']='<a href="rest_list.php?l=4">台南全部</a> - <a href="rest_list.php?l=24">台南市</a> - <a href="rest_list.php?l=25">永康市</a> - <a href="rest_list.php?l=26">台南縣</a>';
sArr['rest']['other']='<a href="rest_list.php?l=7">南投/彰化</a> - <a href="rest_list.php?l=6">新竹/苗粟</a> - <a href="rest_list.php?l=10">台東/屏東</a> - <a href="rest_list.php?l=9">宜蘭/花蓮</a>';

function changeSubtitle(type,id) {
	if (type!='bestrest') {
		if (type=='Owine') document.getElementById('Odistrict').innerHTML=sArr[type][id];
		else if (type=='Nwine') document.getElementById('Ndistrict').innerHTML=sArr[type][id];
		else document.getElementById('district').innerHTML=sArr[type][id];
	} else changeBestRest(type,id);
}

function changeBestRest(type,id) {
	var el=document.getElementById('bestrestprize');
	if (el!=null) {
		var idname = (id!='western')? '中國':'異國';
		var title = (id!='western')? '<font style="background-color:#cccccc;"> - 最佳'+idname+'餐廳 - </font> <a href="javascript:changeSubtitle(\'bestrest\',\'western\');">最佳異國餐廳</a> ':' <a href="javascript:changeSubtitle(\'bestrest\',\'chinese\');">最佳中國餐廳</a> <font style="background-color:#cccccc;"> - 最佳'+idname+'餐廳 - </font> '
		el.innerHTML= title
		+ '<table width="100%" class="district"><tr>'
		+ '<td ><a href="search.php?q=最佳'+idname+'餐廳+最佳羅曼蒂克&field=review">最佳羅曼蒂克</a> </td>'
		+ '<td ><a href="search.php?q=最佳'+idname+'餐廳+最佳羅曼蒂克&field=review">最佳羅曼蒂克</a> </td>'
		+ '<td><a href="search.php?q=最佳'+idname+'餐廳+最佳物超所值&field=review">最佳物超所值</a> </td>'
		+ '<td><a href="search.php?q=最佳'+idname+'餐廳+最佳酒藏&field=review">最佳酒藏</a> </td>'
		+ '<td><a href="search.php?q=最佳'+idname+'餐廳+最佳攜酒處&field=review">最佳攜酒處</a></td>'
		+ '</tr><tr>'
		+ '<td ><a href="search.php?q=最佳'+idname+'餐廳+最佳飯店餐廳&field=review">最佳飯店餐廳</a></td>'
		+ '<td><a href="search.php?q=最佳'+idname+'餐廳+追星族最佳去處&field=review">追星族最佳去處 </a></td>'
		+ '<td><a href="search.php?q=最佳'+idname+'餐廳+外來客的最佳選擇&field=review">外來客的最佳選擇</a></td>'
		+ '<td><a href="search.php?q=最佳'+idname+'餐廳+最佳消夜&field=review">最佳消夜</a></td>'
		+ ((id!='western')? '' : '</tr><tr>'
			+ '<td><a href="search.php?q=最佳'+idname+'餐廳+最佳餐廳吧台&field=review">最佳餐廳吧台</a></td>'
			+ '<td><a href="search.php?q=最佳'+idname+'餐廳+最佳現場音樂秀&field=review">最佳現場音樂秀</a></td>'
			+ '<td><a href="search.php?q=最佳'+idname+'餐廳+最佳辣味餐廳&field=review">最佳辣味餐廳</a></td>' )
	  + '</tr></table>';
	}
}

function Buildkey(num) {
	var ctr=1;
	document.searchmoreformw.q_t2.selectedIndex=0;
	document.searchmoreformw.q_t2.options[0]=new Option("選擇葡萄酒種類細項","");
	/*
	定義二階選單內容
	if(num=="第一階下拉選單的值") {	document.searchmoreformw.subtype.options[ctr]=new Option("第二階下拉選單的顯示名稱","第二階下拉選單的值");	ctr=ctr+1;	}
	*/	
	/*葡萄酒*/  
	if(num=="1") {	document.searchmoreformw.q_t2.options[ctr]=new Option("紅酒 Red","14");	ctr=ctr+1;	}
	if(num=="1") {	document.searchmoreformw.q_t2.options[ctr]=new Option("白酒 White","15");	ctr=ctr+1;	}
	if(num=="1") {	document.searchmoreformw.q_t2.options[ctr]=new Option("粉紅酒 Rose","16");	ctr=ctr+1;	}
	if(num=="1") {	document.searchmoreformw.q_t2.options[ctr]=new Option("香檳/氣泡酒 Champagne/Sparkling","17");	ctr=ctr+1;	}
	if(num=="1") {	document.searchmoreformw.q_t2.options[ctr]=new Option("加烈葡萄酒 Fortified, 雪利酒 Sherry","19");	ctr=ctr+1;	}
	if(num=="1") {	document.searchmoreformw.q_t2.options[ctr]=new Option("加烈葡萄酒 Fortified, 波特酒 Port","20");	ctr=ctr+1;	}
	if(num=="1") {	document.searchmoreformw.q_t2.options[ctr]=new Option("加烈葡萄酒 Fortified, 其他 Other Fortified","21");	ctr=ctr+1;	}
	/*西方利口酒*/  
	if(num=="2") {	document.searchmoreformw.q_t2.options[ctr]=new Option("威士忌 Whiskey","39");	ctr=ctr+1;	}
	if(num=="2") {	document.searchmoreformw.q_t2.options[ctr]=new Option("蘇格蘭威士忌 Scotch","40");	ctr=ctr+1;	}
	if(num=="2") {	document.searchmoreformw.q_t2.options[ctr]=new Option("波旁威士忌 Bourbo","41");	ctr=ctr+1;	}
	if(num=="2") {	document.searchmoreformw.q_t2.options[ctr]=new Option("其他威士忌 Other Whiskey","42");	ctr=ctr+1;	}
	if(num=="2") {	document.searchmoreformw.q_t2.options[ctr]=new Option("白蘭地 Brandy","43");	ctr=ctr+1;	}
	if(num=="2") {	document.searchmoreformw.q_t2.options[ctr]=new Option("干邑白蘭地 Cognac","44");	ctr=ctr+1;	}
	if(num=="2") {	document.searchmoreformw.q_t2.options[ctr]=new Option("西班牙白蘭地 Spanish","45");	ctr=ctr+1;	}
	if(num=="2") {	document.searchmoreformw.q_t2.options[ctr]=new Option("其他白蘭地 Other Brandy","46");	ctr=ctr+1;	}
	if(num=="2") {	document.searchmoreformw.q_t2.options[ctr]=new Option("格拉巴酒 Grappa","47");	ctr=ctr+1;	}
	if(num=="2") {	document.searchmoreformw.q_t2.options[ctr]=new Option("伏特加 Vodka","48");	ctr=ctr+1;	}
	if(num=="2") {	document.searchmoreformw.q_t2.options[ctr]=new Option("琴酒 Gin","49");	ctr=ctr+1;	}
	if(num=="2") {	document.searchmoreformw.q_t2.options[ctr]=new Option("藍姆酒 Rum","50");	ctr=ctr+1;	}
	if(num=="2") {	document.searchmoreformw.q_t2.options[ctr]=new Option("龍舌蘭酒 Tequila","51");	ctr=ctr+1;	}
	if(num=="2") {	document.searchmoreformw.q_t2.options[ctr]=new Option("其他西方利口酒 Other Western Distilled Liquors","52");	ctr=ctr+1;	}
	
	/*東方利口酒*/
	if(num=="6") {	document.searchmoreformw.q_t2.options[ctr]=new Option("威士忌 Whiskey","58");	ctr=ctr+1;	}
	if(num=="6") {	document.searchmoreformw.q_t2.options[ctr]=new Option("白蘭地 Brandy","59");	ctr=ctr+1;	}
	if(num=="6") {	document.searchmoreformw.q_t2.options[ctr]=new Option("其他東方利口酒 Other Eastern Distilled Liquors","60");	ctr=ctr+1;	}
	
	/*米酒*/  
	if(num=="3") {	document.searchmoreformw.q_t2.options[ctr]=new Option("中國黃酒 Chinese","22");	ctr=ctr+1;	} 
	if(num=="3") {	document.searchmoreformw.q_t2.options[ctr]=new Option("中國黃酒 Chinese, 紹興 Shao Shing","23");	ctr=ctr+1;	} 
	if(num=="3") {	document.searchmoreformw.q_t2.options[ctr]=new Option("中國黃酒 Chinese, 花雕 Hua Diao","24");	ctr=ctr+1;	} 
	if(num=="3") {	document.searchmoreformw.q_t2.options[ctr]=new Option("中國黃酒 Chinese, 女兒紅 Nu Er Gong","25");	ctr=ctr+1;	} 
	if(num=="3") {	document.searchmoreformw.q_t2.options[ctr]=new Option("其他中國黃酒 Other Chinese","26");	ctr=ctr+1;	} 
	if(num=="3") {	document.searchmoreformw.q_t2.options[ctr]=new Option("日本米酒 Japanese","27");	ctr=ctr+1;	} 
	if(num=="3") {	document.searchmoreformw.q_t2.options[ctr]=new Option("日本米酒 Japanese, 清酒 Sake","28");	ctr=ctr+1;	} 
	if(num=="3") {	document.searchmoreformw.q_t2.options[ctr]=new Option("日本米酒 Japanese, 燒酒 Shochu","29");	ctr=ctr+1;	} 
	if(num=="3") {	document.searchmoreformw.q_t2.options[ctr]=new Option("日本米酒 Japanese, 泡盛 Awamori","30");	ctr=ctr+1;	} 
	if(num=="3") {	document.searchmoreformw.q_t2.options[ctr]=new Option("日本米酒 Japanese, 甘酒 Amazake","31");	ctr=ctr+1;	} 
	if(num=="3") {	document.searchmoreformw.q_t2.options[ctr]=new Option("其他日本米酒 Other Japanese","32");	ctr=ctr+1;	} 
	if(num=="3") {	document.searchmoreformw.q_t2.options[ctr]=new Option("韓國米酒 Korean","33");	ctr=ctr+1;	} 
	if(num=="3") {	document.searchmoreformw.q_t2.options[ctr]=new Option("清酒 Cheongju","34");	ctr=ctr+1;	} 
	if(num=="3") {	document.searchmoreformw.q_t2.options[ctr]=new Option("農酒 Makkoli","35");	ctr=ctr+1;	} 
	if(num=="3") {	document.searchmoreformw.q_t2.options[ctr]=new Option("燒酒 Soju","36");	ctr=ctr+1;	} 
	if(num=="3") {	document.searchmoreformw.q_t2.options[ctr]=new Option("其他韓國米酒 Other Korean","37");	ctr=ctr+1;	} 
	if(num=="3") {	document.searchmoreformw.q_t2.options[ctr]=new Option("其他米酒 Other Rice Wines","38");	ctr=ctr+1;	} 
	/*啤酒*/
	if(num=="4") {	document.searchmoreformw.q_t2.options[ctr]=new Option("啤酒","54");	ctr=ctr+1;	} 
	/*中国白酒*/
	if(num=="5") {	document.searchmoreformw.q_t2.options[ctr]=new Option("中國白酒 Chinese Distilled Liquors","53");	ctr=ctr+1;	} 
	document.searchmoreformw.q_t2.length=ctr;
	document.searchmoreformw.q_t2.options[0].selected=true;
}


function Buildkey_l(num) {
	var ctr=1;
	document.searchmoreformw.q_l2.selectedIndex=0;
	document.searchmoreformw.q_l2.options[0]=new Option("選擇產地","");
	/*
	定義二階選單內容
	if(num=="第一階下拉選單的值") {	document.searchmoreformw.subtype.options[ctr]=new Option("第二階下拉選單的顯示名稱","第二階下拉選單的值");	ctr=ctr+1;	}
	*/	
	/*阿根廷*/
	if(num=="1") {	document.searchmoreformw.q_l2.options[ctr]=new Option("門多薩 Mendoza","98");	ctr=ctr+1;	}
    if(num=="1") {	document.searchmoreformw.q_l2.options[ctr]=new Option("黑河 Rio Negro","99");	ctr=ctr+1;	}
    if(num=="1") {	document.searchmoreformw.q_l2.options[ctr]=new Option("內烏肯 Neuquen","100");	ctr=ctr+1;	}
    if(num=="1") {	document.searchmoreformw.q_l2.options[ctr]=new Option("其他阿根廷產區 Other Argentinian Regions","101");	ctr=ctr+1;	}
	/*澳洲*/
	if(num=="2") {	document.searchmoreformw.q_l2.options[ctr]=new Option("南澳 Southern Australia","102");	ctr=ctr+1;	}
    if(num=="2") {	document.searchmoreformw.q_l2.options[ctr]=new Option("西澳 Western Australia","103");	ctr=ctr+1;	}
    if(num=="2") {	document.searchmoreformw.q_l2.options[ctr]=new Option("新南威爾斯 New South Wales (NSW)","104");	ctr=ctr+1;	}
    if(num=="2") {	document.searchmoreformw.q_l2.options[ctr]=new Option("維多利亞 Victoria","105");	ctr=ctr+1;	}
	if(num=="2") {	document.searchmoreformw.q_l2.options[ctr]=new Option("維多利亞 Victoria, 亞拉河谷 Yarra Valley","130");	ctr=ctr+1;	}
    if(num=="2") {	document.searchmoreformw.q_l2.options[ctr]=new Option("其他澳洲產區 Other Australian Regions","106");	ctr=ctr+1;	}
	if(num=="3") {	document.searchmoreformw.q_l2.options[ctr]=new Option("奧地利 Austri","72");	ctr=ctr+1;	} 
	if(num=="4") {	document.searchmoreformw.q_l2.options[ctr]=new Option("比利時 Belgium","124");	ctr=ctr+1;	}
	if(num=="5") {	document.searchmoreformw.q_l2.options[ctr]=new Option("巴西 Brazil","123");	ctr=ctr+1;	}
	if(num=="6") {	document.searchmoreformw.q_l2.options[ctr]=new Option("保加利亞 Bulgaria","74");	ctr=ctr+1;	}
	/*加拿大*/
	if(num=="7") {	document.searchmoreformw.q_l2.options[ctr]=new Option("卑詩省 British Columbia","88");	ctr=ctr+1;	} 
    if(num=="7") {	document.searchmoreformw.q_l2.options[ctr]=new Option("安大略 Ontario","89");	ctr=ctr+1;	} 
    if(num=="7") {	document.searchmoreformw.q_l2.options[ctr]=new Option("其他加拿大產區 Other Canadian Regions","90");	ctr=ctr+1;	} 
	/*智利*/
	if(num=="8") {	document.searchmoreformw.q_l2.options[ctr]=new Option("卡薩布蘭卡 Casablanca","91");	ctr=ctr+1;	}
    if(num=="8") {	document.searchmoreformw.q_l2.options[ctr]=new Option("美寶 Maipo","92");	ctr=ctr+1;	}
    if(num=="8") {	document.searchmoreformw.q_l2.options[ctr]=new Option("拉佩爾 Rapel","93");	ctr=ctr+1;	}
    if(num=="8") {	document.searchmoreformw.q_l2.options[ctr]=new Option("克里科 Curico","94");	ctr=ctr+1;	}
    if(num=="8") {	document.searchmoreformw.q_l2.options[ctr]=new Option("莫爾 Maule","95");	ctr=ctr+1;	}
    if(num=="8") {	document.searchmoreformw.q_l2.options[ctr]=new Option("比奧比奧 Bio-Bio","96");	ctr=ctr+1;	}
    if(num=="8") {	document.searchmoreformw.q_l2.options[ctr]=new Option("其他智利產區 Other Chilean Regions","97");	ctr=ctr+1;	}
	/*中國*/
	if(num=="9") {	document.searchmoreformw.q_l2.options[ctr]=new Option("新疆 Xinjiang","115");	ctr=ctr+1;	}
    if(num=="9") {	document.searchmoreformw.q_l2.options[ctr]=new Option("天津 Tianjin","116");	ctr=ctr+1;	}
    if(num=="9") {	document.searchmoreformw.q_l2.options[ctr]=new Option("山東 Shandong","117");	ctr=ctr+1;	}
    if(num=="9") {	document.searchmoreformw.q_l2.options[ctr]=new Option("河北 Hebei","118");	ctr=ctr+1;	}
    if(num=="9") {	document.searchmoreformw.q_l2.options[ctr]=new Option("河南 Henan","119");	ctr=ctr+1;	}
    if(num=="9") {	document.searchmoreformw.q_l2.options[ctr]=new Option("雲南 Yunnan","120");	ctr=ctr+1;	}
    if(num=="9") {	document.searchmoreformw.q_l2.options[ctr]=new Option("其他中國產區 Other Chinese Regions","121");	ctr=ctr+1;	}
	if(num=="10") {	document.searchmoreformw.q_l2.options[ctr]=new Option("捷克共和國 Czech Republic","78");	ctr=ctr+1;	} 
	/*法國*/  
	if(num=="11") {	document.searchmoreformw.q_l2.options[ctr]=new Option("波爾多 Bordeaux","26");	ctr=ctr+1;	}
	if(num=="11") {	document.searchmoreformw.q_l2.options[ctr]=new Option("布根地 Burgundy","27");	ctr=ctr+1;	}
	if(num=="11") {	document.searchmoreformw.q_l2.options[ctr]=new Option("隆河谷 Rhone Valley","28");	ctr=ctr+1;	}
	if(num=="11") {	document.searchmoreformw.q_l2.options[ctr]=new Option("香檳 Champagne","29");	ctr=ctr+1;	}
	if(num=="11") {	document.searchmoreformw.q_l2.options[ctr]=new Option("羅亞爾河谷 Loire Valley","30");	ctr=ctr+1;	}
	if(num=="11") {	document.searchmoreformw.q_l2.options[ctr]=new Option("阿爾薩斯 Alsace","31");	ctr=ctr+1;	}
	if(num=="11") {	document.searchmoreformw.q_l2.options[ctr]=new Option("普羅旺斯 Provence","32");	ctr=ctr+1;	}
    if(num=="11") {	document.searchmoreformw.q_l2.options[ctr]=new Option("夏布利 Chablis","131");	ctr=ctr+1;	}
	if(num=="11") {	document.searchmoreformw.q_l2.options[ctr]=new Option("薄酒來 Beaujolais","132");	ctr=ctr+1;	}
	if(num=="11") {	document.searchmoreformw.q_l2.options[ctr]=new Option("干邑 Cognac","133");	ctr=ctr+1;	}
	if(num=="11") {	document.searchmoreformw.q_l2.options[ctr]=new Option("雅馬邑 Armagnac","134");	ctr=ctr+1;	}
	if(num=="11") {	document.searchmoreformw.q_l2.options[ctr]=new Option("隆河丘 Cotes du Rhone","135");	ctr=ctr+1;	}
	if(num=="11") {	document.searchmoreformw.q_l2.options[ctr]=new Option("隆格多克-魯西雅 Languedoc-Roussillon","136");	ctr=ctr+1;	}
	if(num=="11") {	document.searchmoreformw.q_l2.options[ctr]=new Option("西南產區 Sud_Ouest","137");	ctr=ctr+1;	}
    if(num=="11") {	document.searchmoreformw.q_l2.options[ctr]=new Option("其他法國產區 Other French Regions","34");	ctr=ctr+1;	}
	/*德國*/
	if(num=="12") {	document.searchmoreformw.q_l2.options[ctr]=new Option("摩澤爾-薩爾-烏沃 Mosel-Saar-Ruwer","61");	ctr=ctr+1;	} 
	if(num=="12") {	document.searchmoreformw.q_l2.options[ctr]=new Option("萊茵黑森 Rheinhessen","62");	ctr=ctr+1;	} 
	if(num=="12") {	document.searchmoreformw.q_l2.options[ctr]=new Option("萊茵高 Rheingau","63");	ctr=ctr+1;	} 
	if(num=="12") {	document.searchmoreformw.q_l2.options[ctr]=new Option("納赫 Nahe","64");	ctr=ctr+1;	} 
    if(num=="12") {	document.searchmoreformw.q_l2.options[ctr]=new Option("普法爾茲 Pfalz","65");	ctr=ctr+1;	} 
    if(num=="12") {	document.searchmoreformw.q_l2.options[ctr]=new Option("其他德國產區 Other German Regions","66");	ctr=ctr+1;	} 
	if(num=="13") {	document.searchmoreformw.q_l2.options[ctr]=new Option("希臘 Greece","76");	ctr=ctr+1;	} 
	if(num=="14") {	document.searchmoreformw.q_l2.options[ctr]=new Option("匈牙利 Hungary","73");	ctr=ctr+1;	} 
	if(num=="15") {	document.searchmoreformw.q_l2.options[ctr]=new Option("以色列 Israel","79");	ctr=ctr+1;	} 
	/*義大利*/  
	if(num=="16") {	document.searchmoreformw.q_l2.options[ctr]=new Option("托斯卡尼 Tuscany","35");	ctr=ctr+1;	}
	if(num=="16") {	document.searchmoreformw.q_l2.options[ctr]=new Option("皮蒙 Piedmont","36");	ctr=ctr+1;	}
	if(num=="16") {	document.searchmoreformw.q_l2.options[ctr]=new Option("威尼托 Veneto","37");	ctr=ctr+1;	}
	if(num=="16") {	document.searchmoreformw.q_l2.options[ctr]=new Option("特倫蒂諾-上阿迪傑 Trentino-Alto Adige","38");	ctr=ctr+1;	}
	if(num=="16") {	document.searchmoreformw.q_l2.options[ctr]=new Option("弗留利-威尼斯朱利亞 Friuli-Venezia Giulia","39");	ctr=ctr+1;	}
	if(num=="16") {	document.searchmoreformw.q_l2.options[ctr]=new Option("瓦萊達奧斯塔 Valle d'Aosta","40");	ctr=ctr+1;	}
	if(num=="16") {	document.searchmoreformw.q_l2.options[ctr]=new Option("艾米利亞-羅馬涅 Emilia-Romagna","41");	ctr=ctr+1;	}
	if(num=="16") {	document.searchmoreformw.q_l2.options[ctr]=new Option("翁布利亞 Umbria","42");	ctr=ctr+1;	}
	if(num=="16") {	document.searchmoreformw.q_l2.options[ctr]=new Option("倫巴第 Lombardy","43");	ctr=ctr+1;	}
	if(num=="16") {	document.searchmoreformw.q_l2.options[ctr]=new Option("馬給 Marches","44");	ctr=ctr+1;	}
	if(num=="16") {	document.searchmoreformw.q_l2.options[ctr]=new Option("薩丁尼亞 Sardinia","45");	ctr=ctr+1;	}
	if(num=="16") {	document.searchmoreformw.q_l2.options[ctr]=new Option("西西里 Sicily","46");	ctr=ctr+1;	}
	if(num=="16") {	document.searchmoreformw.q_l2.options[ctr]=new Option("阿普利亞 Apulia","47");	ctr=ctr+1;	}
	if(num=="16") {	document.searchmoreformw.q_l2.options[ctr]=new Option("阿布盧佐 Abruzzo","138");	ctr=ctr+1;	}
	if(num=="16") {	document.searchmoreformw.q_l2.options[ctr]=new Option("其他義大利產區 Other Italian Regions","48");	ctr=ctr+1;	}
	if(num=="17") {	document.searchmoreformw.q_l2.options[ctr]=new Option("日本 Japan","128");	ctr=ctr+1;	}
	if(num=="18") {	document.searchmoreformw.q_l2.options[ctr]=new Option("韓國 Korea","125");	ctr=ctr+1;	}
	if(num=="19") {	document.searchmoreformw.q_l2.options[ctr]=new Option("黎巴嫩 Lebanon","80");	ctr=ctr+1;	} 
	if(num=="20") {	document.searchmoreformw.q_l2.options[ctr]=new Option("墨西哥 Mexico","122");	ctr=ctr+1;	}
	/*新西蘭*/
	if(num=="21") {	document.searchmoreformw.q_l2.options[ctr]=new Option("馬博羅 Marlborough","107");	ctr=ctr+1;	}
    if(num=="21") {	document.searchmoreformw.q_l2.options[ctr]=new Option("豪克斯灣 Hawke's Bay","108");	ctr=ctr+1;	}
    if(num=="21") {	document.searchmoreformw.q_l2.options[ctr]=new Option("吉斯本 Gisborne","109");	ctr=ctr+1;	}
    if(num=="21") {	document.searchmoreformw.q_l2.options[ctr]=new Option("其他紐西蘭產區 Other New Zealand Regions","110");	ctr=ctr+1;	}
	if(num=="22") {	document.searchmoreformw.q_l2.options[ctr]=new Option("波蘭 Poland","129");	ctr=ctr+1;	}
	/*葡萄牙*/
	if(num=="23") {	document.searchmoreformw.q_l2.options[ctr]=new Option("杜奧 Dao","67");	ctr=ctr+1;	} 
	if(num=="23") {	document.searchmoreformw.q_l2.options[ctr]=new Option("斗羅 Douro","68");	ctr=ctr+1;	} 
	if(num=="23") {	document.searchmoreformw.q_l2.options[ctr]=new Option("其他葡萄牙產區 Other Portuguese Regions","69");	ctr=ctr+1;	} 
	if(num=="24") {	document.searchmoreformw.q_l2.options[ctr]=new Option("羅馬尼亞 Romania","75");	ctr=ctr+1;	} 
    if(num=="25") {	document.searchmoreformw.q_l2.options[ctr]=new Option("斯洛維尼亞 Slovenia","77");	ctr=ctr+1;	} 
	/*南非*/
	if(num=="26") {	document.searchmoreformw.q_l2.options[ctr]=new Option("斯坦倫布什 Stellenbosch","111");	ctr=ctr+1;	}
    if(num=="26") {	document.searchmoreformw.q_l2.options[ctr]=new Option("法國角 Franschhoek","112");	ctr=ctr+1;	}
    if(num=="26") {	document.searchmoreformw.q_l2.options[ctr]=new Option("帕爾 Paarl","113");	ctr=ctr+1;	}
    if(num=="26") {	document.searchmoreformw.q_l2.options[ctr]=new Option("其他南非產區 Other South African Regions","114");	ctr=ctr+1;	}
	/*西班牙*/  
	if(num=="27") {	document.searchmoreformw.q_l2.options[ctr]=new Option("里奧哈 Rioja","49");	ctr=ctr+1;	} 
	if(num=="27") {	document.searchmoreformw.q_l2.options[ctr]=new Option("斗羅河岸 Ribera del Duero","50");	ctr=ctr+1;	} 
	if(num=="27") {	document.searchmoreformw.q_l2.options[ctr]=new Option("佩內德斯 Penedes","51");	ctr=ctr+1;	} 
	if(num=="27") {	document.searchmoreformw.q_l2.options[ctr]=new Option("普里奧拉 Priorat","52");	ctr=ctr+1;	} 
	if(num=="27") {	document.searchmoreformw.q_l2.options[ctr]=new Option("多羅 Toro","53");	ctr=ctr+1;	} 
	if(num=="27") {	document.searchmoreformw.q_l2.options[ctr]=new Option("布亞斯 Bullas","54");	ctr=ctr+1;	} 
	if(num=="27") {	document.searchmoreformw.q_l2.options[ctr]=new Option("納瓦拉 Navarra","55");	ctr=ctr+1;	} 
	if(num=="27") {	document.searchmoreformw.q_l2.options[ctr]=new Option("莫西亞 Murcia","56");	ctr=ctr+1;	} 
	if(num=="27") {	document.searchmoreformw.q_l2.options[ctr]=new Option("拉曼恰 La Mancha","57");	ctr=ctr+1;	} 
	if(num=="27") {	document.searchmoreformw.q_l2.options[ctr]=new Option("赫雷斯 Jerez","58");	ctr=ctr+1;	} 
	if(num=="27") {	document.searchmoreformw.q_l2.options[ctr]=new Option("下海灣 Rias Baixas","59");	ctr=ctr+1;	} 
	if(num=="27") {	document.searchmoreformw.q_l2.options[ctr]=new Option("其他西班牙產區 Other Spanish Regions","60");	ctr=ctr+1;	} 
	if(num=="28") {	document.searchmoreformw.q_l2.options[ctr]=new Option("瑞士 Switzerland","71");	ctr=ctr+1;	} 
    if(num=="29") {	document.searchmoreformw.q_l2.options[ctr]=new Option("土耳其 Turkey","81");	ctr=ctr+1;	} 
	if(num=="30") {	document.searchmoreformw.q_l2.options[ctr]=new Option("英國 United Kingdom","70");	ctr=ctr+1;	} 
    /*美國*/
	if(num=="31") {	document.searchmoreformw.q_l2.options[ctr]=new Option("加州 California","83");	ctr=ctr+1;	} 
    if(num=="31") {	document.searchmoreformw.q_l2.options[ctr]=new Option("奧勒岡 Oregon","84");	ctr=ctr+1;	} 
    if(num=="31") {	document.searchmoreformw.q_l2.options[ctr]=new Option("華盛頓 Washington","85");	ctr=ctr+1;	} 
    if(num=="31") {	document.searchmoreformw.q_l2.options[ctr]=new Option("紐約 New York","86");	ctr=ctr+1;	} 
    if(num=="31") {	document.searchmoreformw.q_l2.options[ctr]=new Option("其他美國產區 Other US Regions","87");	ctr=ctr+1;	}
    if(num=="32") {	document.searchmoreformw.q_l2.options[ctr]=new Option("越南 Vietnam","126");	ctr=ctr+1;	}
	document.searchmoreformw.q_l2.length=ctr;
	document.searchmoreformw.q_l2.options[0].selected=true;
}