﻿function TypeSelected(){
	var RentSell=document.frm1.bz_type.options[document.frm1.bz_type.selectedIndex];
    if (eval(RentSell).value=="h" )	 {
	  ini=1
	select_price('全部','')
	select_price('民宿','民宿')
	select_price('農場','農場')
	select_price('汽車旅館','汽車旅館')
	select_price('飯店','飯店')
	select_price('渡假村','渡假村')
	select_price('小木屋','小木屋')

	}

    if (eval(RentSell).value=="s" )	 {
         ini=1
	select_price('全部','')
	select_price('遊樂園區','遊樂園區')	
	select_price('山景','山景')
	select_price('爬山路線','爬山路線')
	select_price('戲水','戲水')
	select_price('水景','水景')
	select_price('賞花觀景','賞花觀景')
	select_price('國家公園','國家公園')
	select_price('公園','公園')	
	select_price('展覽館','展覽館')	
	select_price('漆彈場','漆彈場')	
	select_price('休閒農場','休閒農場')
	select_price('生態','生態')
	select_price('採果','採果')
	select_price('動物園','動物園')
	select_price('烤肉區','烤肉區')
	select_price('露營區','露營區')	
	select_price('釣魚','釣魚')					
	select_price('古蹟‧寺廟‧建築','古蹟寺廟建築')	
	select_price('溫泉','溫泉')
	select_price('夜市‧市集','夜市')
        }

    if (eval(RentSell).value=="f" )	 {
	  ini=1
	select_price('全部','')
	select_price('西餐廳','西餐廳')
	select_price('中式餐廳','中式餐廳')
	select_price('小吃店(攤)','小吃店(攤)')
	select_price('農特名產','農特名產')
	select_price('咖啡茶飲','咖啡茶飲')
	select_price('景觀餐飲','景觀餐飲')
	select_price('日本料理','日本料理')
	select_price('火鍋店','火鍋店')
	select_price('冰飲','冰飲')
	}

}

function select_price(menuName,menukey)
{ 
  document.frm1.spot.options.length=ini;
  document.frm1.spot.options[ini-1].text=menuName;
  document.frm1.spot.options[ini-1].value=menukey;
  ini=ini+1
}
