% M_UAdd = fun_chkRight("Staff","A") M_LAdd = fun_chkRight("Login","A") if M_UAdd = 0 and M_LAdd = 0 then %> <% response.end end if%> <% Set rs = Server.CreateObject("ADODB.Recordset") strSQL = "select rightId, linkNm, rights from rights where display = 'Y' order by linkNm" rs.Open strSQL, con, 3, 3 if not rs.EOF Then rightsArr = rs.GetRows() end if rs.close set rs = nothing con.close set con = nothing %>