<%@  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><%= c.var("DisplayNameTitle") %></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()
    {
      // added for Object View
      if ("<%= c.var("OS.ReturningToAnchor") %>"!="true")    //haven't entered a value from OS
      {
         document.GetObjectForm.eDir$target.value = "<%= c.toScript(eMFrameUtils.getSingleTarget(request)) %>";
      }

      document.GetObjectForm.eDir$target.focus();
    }


   /*******************
    * FUNCTION HEADER *
    *******************/
    function onPageSubmit()
    {
        var strInput = document.GetObjectForm.eDir$target.value;
        if ((null == strInput) || (0 == strInput.length))
        {
            alert("<%= c.string("PartitionReplica.EnterValidName") %>");
            return false;
        }
        return true;
    }


</script>
</HEAD>

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

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


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

        <input  type=hidden
                name="merge"
                value="<%= c.var("Merge.Template") %>">

        <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="<%= c.var("Next.State") %>">

    <% c.set("TaskHeader.title", c.var("DisplayNameTitle"));
       if (c.var("GifName").equals(c.var("null")) == false) {
           c.set("TaskHeader.iconUrl", c.plus("dir/", c.var("GifName")));
       }
       if (c.var("helpNameTag").equals(c.var("null")) == false) {
           c.set("TaskHeader.helpFile", c.var("helpNameTag"));
       } %>
    <jsp:include page='<%= c.getPath("dev/TaskHeader_inc.jsp") %>' flush="true" />

    <table cellspacing="0" cellpadding="0">
        <tr>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td class="instructions"><%= c.toHTML(c.var("ObjectNameInstructions")) %></td>
        </tr>
        <tr>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td class="mediumtext"><%= c.toHTML(c.var("ObjectNameTitle")) %></td>
        </tr>
        <tr>
            <td class="mediumtext"><input type="text" name="eDir$target" style="width:<%= c.string("UI.textboxPixel") %>" size="<%= c.string("UI.textboxSize") %>">
                    <% c.set("OS.TypeFilter", c.var("MemberTypeFilter"));
                       c.set("OS.Mode", "Browse");
                       c.set("OS.Control", "eDir$target");
                       c.set("OS.History", "true"); %>
                    <jsp:include page='<%= c.getPath("dev/OS_inc.jsp") %>' flush="true" />
            </td>
        </tr>
        <tr>
            <td>&nbsp;</td>
        </tr>
    </table>
    <jsp:include page='<%= c.getPath("dev/Bar_inc.jsp") %>' flush="true" />
    <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" />
</form>
<jsp:include page='<%= c.getPath("dev/OSFooter_inc.jsp") %>' flush="true" />
</BODY></HTML>
