function set_select_options( select_name, arrayname , selected_option ) { if(select_name==null){ return; } var select_num ; var i ; var array = eval( arrayname ) ; select_num = array.length/2 +1 ; select_name.options.length = select_num ; select_name.selectedIndex = 0 ; select_name.options[0].value=""; select_name.options[0].text = "Phone Brand?"; for( i=1 ; i"; if (tmpSelectModel.options[tmpSelectModel.selectedIndex].value!=null && tmpSelectModel.options[tmpSelectModel.selectedIndex].value!=""){ document.getElementById("id_showModel").innerHTML = tmpURL+''+tmpSelectModel.options[tmpSelectModel.selectedIndex].text+''; }else{ document.getElementById("id_showModel").innerHTML = ''+tmpSelectModel.options[tmpSelectModel.selectedIndex].text+''; } document.getElementById("buynowNotice").innerHTML = ""; } function findModel(find_value){ var tmpSelectModel = document.getElementById('selPhoneModel'); for(i=0;i=0){ tmpSelectModel.selectedIndex =i; break; } } setThinkModel(); } function change_region( state_select, country_name, default_value ) { var state_array ; var state_select_num ; var i ; var city_array ; state_select.selectedIndex = 0 ; if( country_name == "" ) { state_select.options.length = 1 ; }else{ country_name = country_name.replace(" " , "_" ) ; country_name = country_name.replace(" " , "_" ) ; state_array = eval( country_name ) ; state_select_num = state_array.length/2 +1 ; state_select.options.length = state_select_num ; for( i=1 ; i