//根据URL地址上的参数缩小查询范围
function ProductSearch()
{
   txtKey = $get('ctl00_Main_SoFTextBox1').value;
   //ctlCountry=$get('ctl00_Main_dropCountry');
   ctlProvince=$get('ctl00_Main_dropProvince');
   ctlCity=$get('ctl00_Main_dropCity');
   var txtCountry="",txtProvince="",txtCity="";   
   if(ctlProvince.value !="")
   {
     txtProvince = ctlProvince.value + ":::" + ctlProvince.options[ctlProvince.selectedIndex].text;
   }
   if(ctlCity.value !="")
   {
     txtCity = ctlCity.value + ":::" + ctlCity.options[ctlCity.selectedIndex].text;
   }
   WebSite.Services.UrlService.GetProductSearchUrl(location.href,txtKey,txtProvince,txtCity,OnSuccessed);
}
function CoropationSearch()
{
   txtKey = $get('ctl00_Main_SoFTextBox1').value;
   //ctlCountry=$get('ctl00_Main_dropCountry');
   ctlProvince=$get('ctl00_Main_dropProvince');
   ctlCity=$get('ctl00_Main_dropCity');   
   var txtCountry="",txtProvince="",txtCity="";   
   //txtCountry = "1:::中国";
   
   if(ctlProvince.value !="")
   {
     txtProvince = ctlProvince.value + ":::" + ctlProvince.options[ctlProvince.selectedIndex].text;
   }
   if(ctlCity.value !="")
   {
     txtCity = ctlCity.value + ":::" + ctlCity.options[ctlCity.selectedIndex].text;
   }
   WebSite.Services.UrlService.GetCorporationUrl(location.href,txtKey,txtProvince,txtCity,OnSuccessed);
}
function OnSuccessed(result)
{
    location.href = result;
}


function SearchToProduct()
{
   var txtKey = $get('ProductSerach1_txtKey').value;
   var drpValue=$get('ProductSerach1_Level1').value;
   WebSite.Services.UrlService.GetSearchTypeUrl("product",txtKey,drpValue,OnSuccessed);
}

