  <%
 if issession=0 then
%>
  <!--#include file="inc.asp"-->
  <%
    if boollogin=false then
	response.write "<script language='javascript'>"
	response.write"parent.location.href='login.asp';</SCRIPT>" 
	response.end
	end if
	'-----------------------------------------
 	
else
    if session("globalecmaster")="" and  session("masterflag")="" then 
	response.write "<script language='javascript'>"
	response.write"parent.location.href='login.asp';</SCRIPT>" 
	response.end
    end if
 if   session("masterflag")<>"" then 
   '权限验证--------------------------------------------
  if numid<>"no" then 
  	'权限限制^^^^^^^^^^^^^^^^^^^^
	 dim ishavegantadmin
	 ishavegantadmin=false
	 in_str=split(session("masterflag"),",")
	 for each ins in in_str 
	 if trim(ins)=numid  then 
	 ishavegantadmin=true 
	 end if
	 next 
	 if ishavegantadmin=false then 
	 if dir<>"no" then 
	 response.redirect dir
	 response.end
	 end if
	 end if
  end if
   '--------------------------------------------------
 end if
end if  
%>