

<%



 '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'处理种类的id号 
sortid=request("p_z_Z_RootCategory")                                   '第一类
CategoryId=split(request("p_z_Z_CategoryId1"),",")

typeid=CategoryId(0)                                                                 '第二类

if ubound(CategoryId)>=1 then
    typeid_2=CategoryId(1)                                                               '第三类     
else
    typeid_2=0
end if
if typeid="" then
   typeid=0
end if
if typeid_2="" then
   typeid_2=0
end if
brand=request("brandnew")
 Set rs1=Server.CreateObject("adodb.recordSet")
		rs1.Open ("select seller_sort from Websen_worldec_Temp where yx_selected=1"),conn,1,1
		If rs1.Eof Then 
if sortid="--请选择行业大类--" then 
response.write"<SCRIPT language=JavaScript>alert('请选择类别！');"
response.write "javascript:history.go(-1)</SCRIPT>" 
elseif brand<>"" then 

response.Redirect "offerdetail/"&sortid&"-"&typeid&"-"&typeid_2&"-"&brand&".html"
else
response.Redirect "trade/"&sortid&"-"&typeid&".html"    
  
end if
%>

