var all_brand_list = Array();
var brand_state_list = Array();
var brand_city_list = Array();
var brand_district_list = Array();
all_brand_list.push(['上海', '上海市', 'é•¿å®åŒº', '百盛优客城市广场', '天山路889å·ç™¾ç››ä¼˜å®¢åŸŽå¸‚广场西楼-1F(娄山关路)', '0']);
brand_state_list.push('上海');
brand_city_list.push(['上海', '上海市']);
brand_district_list.push(['上海市', 'é•¿å®åŒº']);
function draw_state(){
var str = '';
$("brand_state_container").innerHTML = str;
$("brand_state").options.selectedIndex = 0;
draw_city();
}
function draw_city(){
var str = '';
$("brand_city_container").innerHTML = str;
$("brand_city").options.selectedIndex = 0;
draw_district();
}
function draw_district(){
var str = '';
$("brand_district_container").innerHTML = str;
$("brand_district").options.selectedIndex = 0;
}
function choose_district(){
var str = "";
for(var i = 0; i < all_brand_list.length; i ++){
if(all_brand_list[i][2] == $("brand_district").value){
if(all_brand_list[i][5] != 0){
str += ("" + all_brand_list[i][4] + "," + all_brand_list[i][3] + all_brand_list[i][5] + "层");
}
else{
if(all_brand_list[i][3] != ""){
str += ("" + all_brand_list[i][4] + "," + all_brand_list[i][3] + "");
}
else{
str += ("" + all_brand_list[i][4] + "");
}
}
}
}
if(str == ""){
str = "抱æ‰ï¼Œè¯¥åŒºåŸŸæ²¡æœ‰æ‰¾åˆ°è¯¥å“牌的门店";
}
$("brand_li").innerHTML = str;
}
draw_state();