<!--#include file="../inc/config.asp" -->
<!--#include file="../inc/conn.asp" -->
<!-- #include file="inc/Session.asp" -->
<!--#include file="inc/function.asp" -->
<!-- #include file="inc/checkrole.asp" -->
<%
'''''''''''''''''''''''''''''''''''''''''''''''
call checkPrevilege(Session("Name"),"p01")
'''''''''''''''''''''''''''''''''''''''''''''''
Dim id,savepath
if(request.QueryString("id")<>"") then
	id=Cint(Request.QueryString("id"))
else
	id=0
end if
set rs=server.CreateObject("adodb.recordset")
rs.open "select flag,domainurl from catalogs where id="&id,conn,3,1
if not rs.eof then	
	savepath=rs(1)
	if(rs(0)=0) then
		savepath=savepath&"/index_1.htm"
	end if
end if
rs.close
set rs=nothing
response.Redirect(savepath)
call connclose()
%>