﻿function TypeSelected(){
	var RentSell=document.form1.bz_type.options[document.form1.bz_type.selectedIndex];

    if (eval(RentSell).value=="scene" )	 {
         ini=1
	select_price('全部','0')
	select_price('遊樂園區','1')	
	select_price('山景','2')
	select_price('爬山路線','3')
	select_price('戲水','4')
	select_price('水景','5')
	select_price('賞花觀景','6')
	select_price('國家公園','7')
	select_price('公園','8')	
	select_price('展覽館','9')	
	select_price('漆彈場、刺激','10')	
	select_price('休閒農場','11')
	select_price('生態','12')
	select_price('採果','13')
	select_price('動物園','14')
	select_price('烤肉區','15')
	select_price('露營區','16')	
	select_price('釣魚','17')					
	select_price('古蹟‧寺廟‧建築','18')	
	select_price('溫泉','19')
	select_price('夜市‧市集','20')
 var all='<INPUT TYPE=\'RADIO\' NAME=\'addtype\' id=\'addtype\' VALUE=\'hotel\'>附加住店<INPUT TYPE=\'RADIO\' NAME=\'addtype\' id=\'addtype\' VALUE=\'food\'>附加美食店';
add_cate.innerHTML=all;
        }

    if (eval(RentSell).value=="hotel" )	 {
	  ini=1
	select_price('全部','0')
	select_price('民宿','1')
	select_price('農場','2')
	select_price('汽車旅館','3')
	select_price('飯店','4')
	select_price('渡假村','5')
	select_price('小木屋','6')
 var all='<INPUT TYPE=\'RADIO\' NAME=\'addtype\' id=\'addtype\' VALUE=\'scene\'>附加景點<INPUT TYPE=\'RADIO\' NAME=\'addtype\' id=\'addtype\' VALUE=\'food\'>附加美食店';
add_cate.innerHTML=all;
	}

   if (eval(RentSell).value=="food" )	 {
	  ini=1
	select_price('全部','0')
	select_price('西餐廳','1')
	select_price('中式餐廳','2')
	select_price('小吃店(攤)','3')
	select_price('農特名產','4')
	select_price('咖啡茶飲','5')
	select_price('景觀餐飲','6')
	select_price('日本料理','7')
	select_price('火鍋店','8')
	select_price('冰飲','8')
 var all='<INPUT TYPE=\'RADIO\' NAME=\'addtype\' id=\'addtype\' VALUE=\'scene\'>附加景點<INPUT TYPE=\'RADIO\' NAME=\'addtype\' id=\'addtype\' VALUE=\'hotel\'>附加住店';
add_cate.innerHTML=all;

	}

}

function select_price(menuName,menukey)
{ 
  document.form1.sub_item.options.length=ini;
  document.form1.sub_item.options[ini-1].text=menuName;
  document.form1.sub_item.options[ini-1].value=menukey;
  ini=ini+1
}


