<%
	set rs=createobject("adodb.recordset")
	sql="select * from company where uname='"&Request.Cookies("admin_company_name")&"'and cname<>'""'"
	rs.open sql,Conn
	if rs.eof or rs.bof then
		response.write"<SCRIPT language=JavaScript>alert('您尚未登录公司资料，请先登录公司资料！');"
		response.write"location.href='register_new.asp';</SCRIPT>" 
		response.end
	end if
	rs.close
	set rs=nothing
%>