function GetSearchEngine(){return"8alibaba_noweb.cfg"}function GetSearchName(){return"阿里巴巴-采购商搜索"}function GetSearchID(){return 810}function IsUTF8(){return 0}function GetHttpMethod(){return 1}function CanSearch(){if(document.form.checkSplitCity.checked){var b=document.getElementById("city");var a=b.options.selectedIndex;if(a>0){alert("选择了二级城市的情况下,不用自动拆分");return -1}}var c=document.form.keywords.value;if(c.length>0){return 1}return 0}function GetSearchCount(){searchUrls.length=0;searchTitles.length=0;var f=getBaseSearchUrl();var p=getBaseSearchTitle();var a=new Array();var e=document.getElementById("city");if(document.form.checkSplitCity.checked){var j=e.options.length;if(j<=1||e.disabled){a.push("")}else{for(var d=1;d<j;d++){a.push(e.options[d].value)}}}else{a.push(e.options[e.options.selectedIndex].value)}var h=new Array();var o=new Array();var g=document.getElementById("hy_slt");if(document.form.checkSplitHY.checked){var j=g.options.length;for(var d=1;d<j;d++){h.push(g.options[d].value);o.push(g.options[d].innerText)}}else{h.push(g.options[g.options.selectedIndex].value);o.push(g.options[g.options.selectedIndex].innerText)}for(var c=0;c<a.length;c++){for(var b=0;b<h.length;b++){var m=f+"city="+UrlEncode(a[c])+"&categoryId="+UrlEncode(h[b]);searchUrls.push(m);var n=p+a[c]+"]";n=n+"["+document.form.memberType_Sel.options[document.form.memberType_Sel.options.selectedIndex].innerText+"]";n=n+"["+o[b]+"]";searchTitles.push(n)}}return searchUrls.length}function getBaseSearchUrl(){var e="http://s.1688.com/buyer/buyer_search.htm?n=y&";var b;var d;var f=document.getElementsByTagName("input");for(var c=0;c<f.length;c++){b=f[c].name;d=f[c].value;e=e+b+"="+UrlEncode(d)+"&"}var g=document.getElementsByTagName("select");for(var a=0;a<g.length;a++){b=g[a].name;d=g[a].options[g[a].options.selectedIndex].value;if(b=="city"||b=="searchType"||b=="c"){}else{if(b=="memberType_Sel"){if(d=="pm"){e=e+"memberlevel=pm&pmType=yes&"}else{if(d=="taobao"){e=e+"memberlevel=taobao&"}else{if(d=="free"){e=e+"memberlevel=pm&pmType=no&"}}}}else{e=e+b+"="+UrlEncode(d)+"&"}}}return e}function getBaseSearchTitle(){var a=document.form.keywords.value;a=a+"["+document.form.province.options[document.form.province.options.selectedIndex].innerText+":";return a}function GetSearchUrl(a){return searchUrls[a]}function GetSearchTerm(a){return searchTitles[a]}function changeCity(a){if(a.checked){if(window.external.IsRegisterUser()!=1){alert("试用版用户，不能使用自动拆分功能");a.checked=false}}}function changeHY(a){if(a.checked){if(window.external.IsRegisterUser()!=1){alert("试用版用户，不能使用自动拆分功能");a.checked=false}}};