obj_form_search=document.forms.form_search_shop; function select_category_search() { //alert (obj_form); obj_podcat_search=obj_form_search.spodcat_is; id_cat_select_search=obj_form_search.scat_is.value; if (id_cat_select_search>0) { obj_podcat_search.disabled=false; obj_podcat_search.length=1; n=1; for (i=0;i0) { //data_send="id_adv="+decodeURIComponent(id)+"&passwrd_adv="+decodeURIComponent(password); url="../moduls/shop/include/data_region_city_adv.php"; url+="?id_select="+id_select+"&type="+type_select_adv; HTTPload.open("post",url,true); HTTPload.onreadystatechange=ob_select_country_region_adv; //HTTPload.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); //obj_div_message_connect_start_edit.style.display="block"; HTTPload.send(null); } if (type_select_adv=="country") { obj_form_data_adv_search.s_adv_region.disabled=true; obj_form_data_adv_search.s_adv_region.options[0].selected=true; } obj_form_data_adv_search.s_adv_city.disabled=true; obj_form_data_adv_search.s_adv_city.options[0].selected=true; } function ob_select_country_region_adv() { //alert (HTTPload.readyState); if (HTTPload.readyState!=4) return; //obj_div_message_connect_start_edit.style.display="none"; if (HTTPload.status != 200) { alert ("Произошла неизвестная ошибка!"); alert (HTTPload.responseText); return; } answer=HTTPload.responseText; //alert (answer); answer=eval("("+answer+")"); if (answer.error.code==1) { alert (answer.error.text); return; } data_select=answer.data; if (search_type_select_adv == "country") { obj_select=obj_form_data_adv_search.s_adv_region; obj_form_data_adv_search.s_adv_region.disabled=false; } else { obj_select=obj_form_data_adv_search.s_adv_city; obj_form_data_adv_search.s_adv_city.disabled=false; } obj_select.options.length=1; for (i=0;i