<%@  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("DevResources"); %>

<HTML>
<HEAD>
   <TITLE><%= c.string("ProductName") %></TITLE>

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

   <LINK rel='stylesheet' href='<%= c.getModulesUrl() + "/dev/css/hf_style.css" %>'>
   <jsp:include page='<%= c.getPath("dev/PageScripts_inc.jsp") %>' flush="true" />
   <SCRIPT language="JavaScript">
      function onInit()
      {
         var form=document.forms[0];
         mvLoadFromXml("_Language", "<%= c.var("eDir$target$Language") %>",'item', true );

         <% if (c.var("Task.moo").equals("true") == false) { %>
            MVNetLoadList(form.MV_Network_Address, "<%= c.toScript(c.var("eDir$target$Network_Address")) %>" );
         <% } %>
      }

      function isPageValid()
      {
         var form=document.forms[0];
         form.eDir$target$Language.value = mvGetValuesAsXml("_Language");
         <% if (c.var("Task.moo").equals("true") == false) { %>
            form.eDir$target$Network_Address.value = MVNetGetEntriesAsXml(form.MV_Network_Address);
         <% } %>
         return true;
      }
   </SCRIPT>
</HEAD>

<BODY onLoad="onInit();">
<FORM name="form" method=post action="webacc">
   <jsp:include page='<%= c.getPath("dev/Messagebar_inc.jsp") %>' flush="true" />
	<jsp:include page='<%= c.getPath("dev/BookVars_inc.jsp") %>' flush="true" />

   <!-- UI Created by UiHandlers -->

   <TABLE class="mediumtext" border='0' bgcolor='#FFFFFF' cellpadding='0' cellspacing='0'>
      <!-- Language -->
      <TR>
         <TD align=left>
            <%= c.var("LanguageDisplayName") %>:&nbsp;
         </TD>
      </TR>
      <TR>
         <TD>
            <INPUT name='eDir$target$Language' type=hidden value="<%= c.formatMessage(c.var("toHtml"), new String[]{(c.var("eDir$target$Language"))}) %>">
            <% c.set("MVStringEditor_name", "_Language");
               c.set("MVStringEditor_xml", c.var("eDir$target$Language"));
               c.set("MVStringEditor_enforceUnique", "true");
               if (c.var("eDirRights$target$Language").equals("R") || c.var("eDirRights$target$Language").equals("NONE")) {    c.set("MVStringEditor_readonly", "true");    } %>
            <jsp:include page='<%= c.getPath("dev/MVStringEditor_inc.jsp") %>' flush="true" />
         </TD>
         <TD valign=top>
            <% if (c.var("Task.moo").equals("true")) {    c.set("ModeSelector.name", "_Language_mode"); %>&nbsp;&nbsp;<jsp:include page='<%= c.getPath("dev/ModeSelector_inc.jsp") %>' flush="true" /><% } %>
         </TD>
      </TR>

  <% if (c.var("Task.moo").equals("true") == false) { %>

      <TR><TD height=8></TD></TR>
         <!-- Network Address -->
         <TR>
            <TD align=left>
               <%= c.var("Network_AddressDisplayName") %>:&nbsp;
            </TD>
         </TR>
         <TR>
            <TD>
               <INPUT name='eDir$target$Network_Address' type=hidden value="<%= c.formatMessage(c.var("toHtml"), new String[]{(c.var("eDir$target$Network_Address"))}) %>">
               <% c.set("MVNetworkAddr_name", "MV_Network_Address");
                  if (c.var("eDirRights$target$Network_Address").equals("R") || c.var("eDirRights$target$Network_Address").equals("NONE")) {    c.set("MVNetworkAddr_readonly", "true");    }
                  c.set("MVNetworkAddr_size", "8");
                  c.set("MVNetworkAddr_readonly", "true"); %>
               <jsp:include page='<%= c.getPath("dev/MVNetworkAddr_inc.jsp") %>' flush="true" />
            </TD>
            <TD valign=top>
               <% if (c.var("Task.moo").equals("true")) {    c.set("ModeSelectorMV.name", "_Network_Address_mode"); %>&nbsp;&nbsp;<jsp:include page='<%= c.getPath("dev/ModeSelectorMV_inc.jsp") %>' flush="true" /><% } %>
            </TD>
         </TR>

   <% } %>

   <TR><TD height=8></TD></TR>
   </TABLE>

</FORM>
</BODY>
</HTML>
