<%@  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.string("CreateUser.CreateUserTitle") %></TITLE>
<LINK href="<%= c.getModulesUrl() + "/dev/css/hf_style.css" %>" rel="styleSheet" type="text/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 addOption(controlName, result)
   {
      alert("result = " + result);
   }

   function checkCreateUserNullInput()
   {
      var strContainerInput = document.CreateUserForm.CreateUserContext.value;
      var strUserNameInput = document.CreateUserForm.CreateUserName.value;
      var strSurnameInput = document.CreateUserForm.CreateUserSurName.value;
      if ((null == strContainerInput) || (0 == strContainerInput.length))
      {
         alert("<%= c.string("CreateUser.InvalidContext") %>");
         return false;
      }
      if ((null == strUserNameInput) || (0 == strUserNameInput.length))
      {
         alert("<%= c.string("CreateUser.InvalidUserName") %>");
         return false;
      }
      if ((null == strSurnameInput) || (0 == strSurnameInput.length))
      {
         alert("<%= c.string("CreateUser.InvalidSurName") %>");
         return false;
      }
      return true;
   }


   function setFocusToFormElement()
   {
      document.CreateUserForm.CreateUserName.focus();
   }


</script>
</HEAD>

<BODY TEXT="#000000" LINK="#000000" VLINK="#000000" ALINK="#000000" bgcolor="#FFFFFF" onLoad="setFocusToFormElement()">
<form name="CreateUserForm" method=post action="webacc" onSubmit="return(checkCreateUserNullInput())">
   <input type=hidden name="taskId" value="<%= c.var("taskId") %>">
   <input type=hidden name="merge" value="dev.GenConf">
   <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="doCreateUser">
   <input type=hidden name="SelectedClass" value="<%= c.var("SelectedClass") %>">
   <input type=hidden name="TranslatedClass" value="<%= c.var("TranslatedClass") %>">
   <input type=hidden name="GifName" value="<%= c.var("GifName") %>">

   <% c.set("TaskHeader.title", c.formatMessage(c.string("Creator.Create"), new String[]{c.var("TranslatedClass")}));
      c.set("TaskHeader.iconUrl", c.plus("dir/", c.var("GifName")));

      c.set("TaskHeader.iconAlt", "{VAR TranslatedClass}"); %>
   <jsp:include page='<%= c.getPath("dev/TaskHeader_inc.jsp") %>' flush="true" /><BR>

   <FONT face="Helvetica,Arial" size=-1><NOBR><BR>
	<%= c.string("CreateUser.UserName") %></NOBR><BR>
   <input type=text name="CreateUserName" value="" size=<%= c.string("UI.textboxSize") %> maxlength=64><BR><BR><NOBR>
   <%= c.string("CreateUser.LastName") %></NOBR><BR>
   <input type=text name="CreateUserSurName" value="" size=<%= c.string("UI.textboxSize") %> maxlength=64><BR><BR>
   <%= c.string("Creator.Context") %><NOBR><BR>
   <input type=text name="CreateUserContext" value="" size=<%= c.string("UI.textboxSize") %>>
   <% c.set("OS.TypeFilter", "Organization,Organizational Unit");
      c.set("OS.Control", "CreateUserContext"); %>
   <jsp:include page='<%= c.getPath("dev/OS_inc.jsp") %>' flush="true" />
   </NOBR><BR><BR>

   <INPUT type=image name="Create" alt="<%= c.string("Button.Create.alt") %>" src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.OK.image") %>" border=0><jsp:include page='<%= c.getPath("dev/Cancel_inc.jsp") %>' flush="true" />
   </FONT>
   	<hr size=2 color=#458ab9>
   </form>
<jsp:include page='<%= c.getPath("dev/OSFooter_inc.jsp") %>' flush="true" />
</BODY></HTML>
