var counter = 20; function fn_count_down() { var time_out = 1000; if(counter > 0) { counter --; setTimeout("fn_count_down()", time_out); }else if(counter == 0){ fn_show_bt_scan_page(); obj_div_dev.contentWindow.fn_bt_list_info(1); } } function fn_bt_search_info() { var td_id_1; var td_id_2; td_id_1 = document.getElementById("td_message1"); td_id_2 = document.getElementById("td_message2"); td_id_1.innerHTML = "

" + obj_bt.bt_dev_scan + "

"; td_id_2.innerHTML = "

" + obj_conn.waiting + "

"; }