<%@  page pageEncoding="utf-8" contentType="text/html;charset=utf-8" import="com.novell.webaccess.common.JSPConduit, com.novell.emframe.dev.eMFrameUtils " %>
<%   JSPConduit c = JSPConduit.getJSPConduit(request);
   c.stringTable("DevResources");
   c.stringTable("BaseResources");
   c.stringTable("FwResources"); %>
<HTML>
<HEAD>
<TITLE></TITLE>
<link   rel='stylesheet'
        href='<%= c.getModulesUrl() + "/dev/css/hf_style.css" %>'>

<jsp:include page='<%= c.getPath("dev/eMFrameScripts_inc.jsp") %>' flush="true" />
<jsp:include page='<%= c.getPath("dev/OSScripts_inc.jsp") %>' flush="true" />

<script language="JavaScript">


   /*******************
    * FUNCTION HEADER *
    *******************/
    function onPageLoad()
    {
        document.RightsOtherObjectsForm.RightsToOther$SearchObject.focus();
    }


   /*******************
    * FUNCTION HEADER *
    *******************/
    function onPageSubmit()
    {
        var strInput = document.RightsOtherObjectsForm.RightsToOther$SearchObject.value;
        if ((null == strInput) || (0 == strInput.length))
        {
            alert("<%= c.string("RightsOtherObjects.SelectObject") %>");
            return false;
        }

        var strInput = document.RightsOtherObjectsForm.RightsToOther$SearchContext.value;
        if ((null == strInput) || (0 == strInput.length))
        {
            alert("<%= c.string("RightsOtherObjects.SelectContext") %>");
            return false;
        }

        return true;
    }


</script>
</HEAD>

<BODY   TEXT="#000000" LINK="#000000" VLINK="#000000" ALINK="#000000" bgcolor="#FFFFFF"
        onLoad="returnFromOS();onPageLoad()">

<form   name="RightsOtherObjectsForm"
        method=post
        action="webacc"
        onSubmit="return(onPageSubmit())">


        <input  type=hidden
                name="taskId"
                value="<%= c.var("taskId") %>">

        <input  type=hidden
                name="merge"
                value="">

        <input  type=hidden
                name="error"
                value="dev.GenErr">

        <input  type=hidden
                name="User.context"
                value="<%= c.var("User.context") %>">

        <input  type=hidden
                name="nextState"
                value="searchForObjects">

   <% c.set("TaskHeader.title", c.string("RightsOtherObjects.RightsOtherObjects"));
      c.set("TaskHeader.iconUrl", "dir/rights.gif");
      c.set("TaskHeader.iconAlt", c.string("eDirRights.RightsToOtherObjects"));
      c.set("TaskHeader.helpFile", "base/rightstootherobjectsentryform.html");
      c.set("TaskHeader.HelpWindowWidth", "500");
      c.set("TaskHeader.HelpWindowHeight", "500"); %>


   <jsp:include page='<%= c.getPath("dev/TaskHeader_inc.jsp") %>' flush="true" /><BR>
   <div class="instructions"><%= c.string("eDirRights.RightsToOtherObjectsEntryString") %></div> <BR>

   <div class="mediumtext"><%= c.string("eDirRights.TrusteeNameLabel") %></div>
   <input   type=text
            name="RightsToOther$SearchObject"
            value="<%= eMFrameUtils.toTag(eMFrameUtils.getSingleTarget(request)) %>" size=35>
            <% c.set("OS.TypeFilter", "*,[root]");
               c.set("OS.Mode", "Browse");
               c.set("OS.Control", "RightsToOther$SearchObject");
               c.set("OS.History", "true"); %>
            <jsp:include page='<%= c.getPath("dev/OS_inc.jsp") %>' flush="true" />
   <BR><BR>
   <div class="mediumtext"><%= c.string("RightsOtherObjects.SearchContext") %></div>
   <input   type=text
            name="RightsToOther$SearchContext"
            value="[root]" size=35>
	        <% c.set("OS.TypeFilter", "[root],[containers]");
               c.set("OS.Mode", "Browse");
               c.set("OS.Control", "RightsToOther$SearchContext");
               c.set("OS.History", "true"); %>
            <jsp:include page='<%= c.getPath("dev/OS_inc.jsp") %>' flush="true" />
   <BR><BR>
  <div align="left" class="mediumtext"> <input   type="checkbox"
            name="RightsToOther$SearchSubTree"
            value="">  <%= c.string("RightsOtherObjects.SearchSubTree") %> </div>
   <BR><BR>
   <div class="ruleabove">

   <input   type=image
            name="OkButton"
            alt="<%= c.string("Button.OK.alt") %>"
            src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.OK.image") %>"
            border=0>
            <jsp:include page='<%= c.getPath("dev/Cancel_inc.jsp") %>' flush="true" />
   </div>
</form>
<jsp:include page='<%= c.getPath("dev/OSFooter_inc.jsp") %>' flush="true" />
</BODY></HTML>
