<%@  page pageEncoding="utf-8" contentType="text/html;charset=utf-8" import="
																				com.novell.emframe.dev.MUtils 
																				,com.novell.webaccess.common.JSPConduit 
																				" %>

<%JSPConduit c = JSPConduit.getJSPConduit(request); %>

<%@ taglib uri="/WEB-INF/iman.tld" prefix="iman" %>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/x.tld" prefix="x" %>
   <iman:stringtable  bundle="DevResources" />
   <iman:stringtable bundle="BaseResources" />
   <iman:stringtable bundle="FwResources" />


<HTML>
<HEAD>
<TITLE><iman:string key="CreateUser.CreateUserTitle" /></TITLE>
<LINK href="<%= MUtils.getModulesUrl(request) %>/dev/css/hf_style.css" rel="styleSheet" type="text/css" />
<iman:include page="dev/OSScripts_inc.jsp" />

<iman:uihandlerTools/>
<iman:pageScripts/>
<iman:eMFrameScripts/>
<iman:validateNumberScripts/>
<iman:mvedScripts mode="mvsel"/><%-- Always include for the description field --%>
<c:if test="${DeviceType=='browser'}">
      <iman:mvedScripts mode="mvie"/>
</c:if>
<iman:dialogScripts/>

<SCRIPT language="JavaScript" src="<%= c.getModulesUrl() + "/dev/javascripts/" %>ParseFileSystemString.js"></script>

<script language="JavaScript">

var ENABLED_COLOR = "white";
var DISABLED_COLOR = "#EFEEE9";

/************************************************
************ partWizard functions ***************
*************************************************/
<%-- should now be done by participantWizardFrameset
      function init()
      {
         parent.setFooterButtons(parent.nextButton | parent.backDisabledButton | parent.cancelButton);
         parent.setHeader("<iman:string key='WizardExample.Page1Title'/>", 
         		"<iman:string key='WizardExample.Page1SubTitle'/>", "fw/studio_getobjecttype.html");
      }
--%>      
      
      function isPageValid()
      {
      	return checkCreateUserNullInput();
      }
      
// ********** End partWizard functions ************      
      
      function parseHomeDirectory(controlName, resultsArray)
      {
      		var volumeObject = getVolumeObject(resultsArray[0]);
            document.CreateUserForm.elements[controlName].value = volumeObject;
      	  	var fileSystemPath = getFileSystemPath(resultsArray[0]);
      	  	var pathName = document.CreateUserForm.CreateUserName.value
      	  	
      	  	if((fileSystemPath.length ==  0) && (pathName.length ==  0))
      	  	{
      	  		fileSystemPath = "\\";
      	  	}
      	  	else
      	  	{
      	  		if(fileSystemPath.length ==  0)
      	  		{
      	  			fileSystemPath = pathName;
      	  		}
      	  		else
      	  		{
      	  			fileSystemPath = fileSystemPath + "\\" + pathName;
      	  		}
      	  	}
      	  	
      	  	document.CreateUserForm.elements["pathname"].value = fileSystemPath;
      }

	function setMultiValues()
	{
      document.CreateUserForm.p_title.value = mvGetValuesAsPack("title");
      document.CreateUserForm.p_location.value = mvGetValuesAsPack("location");
      document.CreateUserForm.p_department.value = mvGetValuesAsPack("department");
      document.CreateUserForm.p_telephone.value = mvGetValuesAsPack("telephone");
      document.CreateUserForm.p_faxnumber.value = mvGetValuesAsPack("faxnumber");
      document.CreateUserForm.p_emailaddress.value = mvGetValuesAsPack("emailaddress");
      document.CreateUserForm.p_description.value = mvGetValuesAsPack("description");
   }

   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("<iman:string key="CreateUser.InvalidContext" />");
         return false;
      }
      if ((null == strUserNameInput) || (0 == strUserNameInput.length))
      {
         alert("<iman:string key="CreateUser.InvalidUserName" />");
         return false;
      }
      if ((null == strSurnameInput) || (0 == strSurnameInput.length))
      {
         alert("<iman:string key="CreateUser.InvalidSurName" />");
         return false;
      }
      if (document.CreateUserForm.edirpassword.value != document.CreateUserForm.retypepassword.value)
	   {
	  	   alert("<iman:string key="CreateUser.PassDontMatch" />");
		   document.CreateUserForm.edirpassword.focus();
		   return false;
	   }
      if (document.CreateUserForm.simplepassword.value != document.CreateUserForm.retypesimplepassword.value)
	   {
	  	   alert("<iman:string key="SimplePassword.SimplePassDontMatch" />");
		   document.CreateUserForm.simplepassword.focus();
		   return false;
	   }

      if (document.CreateUserForm.enablecreatedir.checked == true)
      {
         if ((null == document.CreateUserForm.volumename.value) || (0 == document.CreateUserForm.volumename.value.length))
         {
            alert("<iman:string key="CreateUser.InvalidVolume" />");
            return false;
         }
         if ((null == document.CreateUserForm.pathname.value) || (0 == document.CreateUserForm.pathname.value.length))
         {
            alert("<iman:string key="CreateUser.InvalidPath" />");
            return false;
         }
      }

      if (document.CreateUserForm.edirpassword.value.length == 0)
	   {
         activateImanDialog('checkPassword');
         return false;

         <%--  var message = "<%= c.toScript(c.string("CreateUser.PasswordAlert")) %>";--%>
         <%--  if (!confirm(message))--%>
         <%--  {--%>
         <%--     document.CreateUserForm.edirpassword.focus();--%>
         <%--     return false;--%>
         <%--  }--%>
	   }

      <%-- Must setMultiValues here since ParticipantWizard submits form directly after this. --%>
      setMultiValues();
      return true;
   }


   function setFocusToFormElement()
   {
      // added for Object View
      if ("<c:out value='${requestScope["OS.ReturningToAnchor"]}' />"!="true")    //haven't entered a value from OS
      {
         document.CreateUserForm.CreateUserContext.value = "<iman:toScript><c:out value='${targetNames}'/></iman:toScript>";
      }

      if ((document.CreateUserForm.copyfromusername.value.length > 0))
      {
    	  	document.CreateUserForm.enablecopyfromuser.checked = true;
	  	   document.CreateUserForm.copyfromusername.disabled = false;
	  	   document.CreateUserForm.copyfromusername.style.backgroundColor = ENABLED_COLOR;
      }
      else
      {
  	  	   document.CreateUserForm.enablecopyfromuser.checked = false;
	  	   document.CreateUserForm.copyfromusername.disabled = true;
	  	   document.CreateUserForm.copyfromusername.style.backgroundColor = DISABLED_COLOR;
      }

      if ((document.CreateUserForm.volumename.value.length > 0))
      {
    	  	document.CreateUserForm.enablecreatedir.checked = true;
	  	   document.CreateUserForm.volumename.disabled = false;
	  	   document.CreateUserForm.volumename.style.backgroundColor = ENABLED_COLOR;
	  	   document.CreateUserForm.pathname.disabled = false;
	  	   document.CreateUserForm.pathname.style.backgroundColor = ENABLED_COLOR;
      }
      else
      {
  	  	   document.CreateUserForm.enablecreatedir.checked = false;
	  	   document.CreateUserForm.volumename.disabled = true;
	  	   document.CreateUserForm.volumename.style.backgroundColor = DISABLED_COLOR;
	  	   document.CreateUserForm.pathname.disabled = true;
	  	   document.CreateUserForm.pathname.style.backgroundColor = DISABLED_COLOR;
      }

		document.CreateUserForm.CreateUserName.focus();

      // added for simple password
      if (document.CreateUserForm.CreateUserContext.value.length == 0)
      {
         document.CreateUserForm.enableUniversalPassword.value = 'false';
         document.CreateUserForm.enableUniversalPassword.disabled = true;
         document.CreateUserForm.enableUniversalPassword.style.backgroundColor = DISABLED_COLOR;
      }
   }

   function setTheValue(control)
   {
   	with(document.CreateUserForm)
		{
  			control = eval(control);
   	  		if (control.checked == true)
	  		{
				control.value = 'true';
			}
			else
			{
				control.value = 'false';
			}
		}
   }

   function enableTemplate(control)
   {
   	with(document.CreateUserForm)
		{
  			control = eval(control);
         if (control.checked == true)
	  		{
				control.value = 'true';
		  		copyfromusername.disabled = false;
				copyfromusername.style.backgroundColor = ENABLED_COLOR;
			}
			else
			{
				//assume if the template name is there, we need to
				//clear out the values populated by the template
            if(copyfromusername.value.length != 0)
            {
               mvLoadFromPack("description", pack(new Array()));
               mvLoadFromPack("title", pack(new Array()));
               mvLoadFromPack("location", pack(new Array()));
               mvLoadFromPack("department", pack(new Array()));
               mvLoadFromPack("telephone", pack(new Array()));
               mvLoadFromPack("faxnumber", pack(new Array()));
               mvLoadFromPack("emailaddress", pack(new Array()));
            }
				control.value = 'false';
			  	copyfromusername.disabled = true;
				copyfromusername.value = "";
				copyfromusername.style.backgroundColor = DISABLED_COLOR;
			}
		}
   }

	function checkDefaultKey(evt)
   {
   	<c:if test="${requestScope['Browser.name'] == 'NSN'}" >
         return true;
	</c:if>

      var keyCode = evt.which ? evt.which : evt.keyCode;
      // 13 is the Enter key code
      if (keyCode == 13)
      {
         if (checkCreateUserNullInput())
         {
            submitForm();
            return false;
         }
      }
      return true;
   }

   function CopyCheckedOS()
   {
      return document.CreateUserForm.enablecopyfromuser.checked;
   }

   function CreateDirCheckedOS()
   {
      return document.CreateUserForm.enablecreatedir.checked;
   }

   function enableDirectory(control)
   {
   	with(document.CreateUserForm)
		{
  			control = eval(control);
         if (control.checked == true)
	  		{
				control.value = 'true';
		  		volumename.disabled = false;
				volumename.style.backgroundColor = ENABLED_COLOR;

		  		pathname.disabled = false;
				pathname.style.backgroundColor = ENABLED_COLOR;
            document.CreateUserForm.pathname.value = document.CreateUserForm.CreateUserName.value;
			}
			else
			{
				control.value = 'false';
			  	volumename.disabled = true;
				volumename.value = "";
				volumename.style.backgroundColor = DISABLED_COLOR;

            pathname.disabled = true;
				pathname.value = "";
				pathname.style.backgroundColor = DISABLED_COLOR;
			}
		}
   }

   function enableSimplePassword(control)
   {
      with(document.CreateUserForm)
		{
  			control = eval(control);
         if (control.value != " " && control.value.length>0)
	  		{
				enableUniversalPassword.value = 'true';
		  		enableUniversalPassword.disabled = false;
				enableUniversalPassword.style.backgroundColor = ENABLED_COLOR;
         }
      }
   }

   function enableSimplePasswordCallBack(control, results)
   {
      with(document.CreateUserForm)
		{
         control = eval(control);
         control.value = results[0];
         enableSimplePassword(control);
      }
   }


   // this is called from GetTemplateHomeDirectoryExchanger.jsp
   function getTemplateHomeDirectory(error, volume, path, title, location, department, telephone, faxnumber, emailaddress, description)
   {
      // if there is an error don't do anything with it, we don't care if there is no home directory
      if(error != '')
      {
         return;
      }

      if (volume.length != 0)
      {
         document.CreateUserForm.volumename.value = volume;
         document.CreateUserForm.enablecreatedir.checked = true;
         enableDirectory(document.CreateUserForm.enablecreatedir);
      }
      if (path.length != 0)
      {
         document.CreateUserForm.pathname.value = "\\" + path + "\\" + document.CreateUserForm.CreateUserName.value;
      }

      if(description.length != 0)
      {
      	 mvLoadFromPack("description",description);
      }

      if(title.length != 0)
      {
       	 mvLoadFromPack("title",title);
      }

      if(location.length != 0)
      {
         mvLoadFromPack("location",location);
      }

      if(department.length != 0)
      {
         mvLoadFromPack("department",department);
      }

      if(telephone.length != 0)
      {
         mvLoadFromPack("telephone",telephone);
      }

      if(faxnumber.length != 0)
      {
      	mvLoadFromPack("faxnumber",faxnumber);
      }

      if(emailaddress != 0)
      {
         mvLoadFromPack("emailaddress",emailaddress);
      }

   }


   function goGetTemplateHomeDirectory(controlName, templateObj)
   {
      // The callback from search
      if ((null == templateObj[0]) || (0 == templateObj[0].length))
      {
         return;
      }
      document.CreateUserForm.copyfromusername.value = toScript(templateObj[0]);

      // this will call into the java code GetTemplateHomeDirectoryTask.java to send data back to exchanger
      window.upExchanger = new exchanger("exchangerFrame");
      upExchanger.sendData("webacc?taskId=fw.GetTemplateHomeDirectory&merge=base.GetTemplateHomeDirectoryExchanger&error=base.GetTemplateHomeDirectoryExchanger&HomeDirectoryTemplateObject=" + urlEncode(templateObj[0]));
   }


   function goGetTypedHomeDirectory()
   {
      // just call goGetTemplateHomeDirectory()
      templateObj = new Array(1);
      templateObj[0] = document.CreateUserForm.copyfromusername.value;
      goGetTemplateHomeDirectory("document.CreateUserForm.copyfromusername", templateObj);
   }


   function populateFullName()
   {
   	delim = '';
      if(document.CreateUserForm.firstname.value.length > 0)
      {
      	 delim = ' ';
      }
      document.CreateUserForm.fullname.value = document.CreateUserForm.firstname.value +delim+document.CreateUserForm.CreateUserSurName.value;
   }


   function submitForm()
   {
      setMultiValues();
      document.CreateUserForm.submit();
   }


</script>
</HEAD><BODY TEXT="#000000" LINK="#000000" VLINK="#000000" ALINK="#000000" bgcolor="#FFFFFF" onLoad="returnFromOS();setFocusToFormElement();">
<form name="CreateUserForm" method=post action="webacc" onSubmit="javascript:setMultiValues(); return(checkCreateUserNullInput())">
   <input type=hidden name="taskId" value="<c:out value='${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:out value='${requestScope["User.context"]}' />" />
   <input type=hidden name="nextState" value="nextButton">
   <input type=hidden name="SelectedClass" value="<c:out value='${SelectedClass}' />">
<%--
   <input type=hidden name="TranslatedClass" value="<c:out value='${TranslatedClass}' />">
   <input type=hidden name="GifName" value="<c:out value='${GifName}' />">
--%>
   <input type=hidden name="targetNames" value="<c:out value='${targetNames}' />">
   <%
   
   //c.set("TaskHeader.title", JSPConduit.formatMessage(c.string("Creator.Create"), new String[]{c.var("TranslatedClass")}));
   //   c.set("TaskHeader.iconUrl", c.plus("dir/", c.var("GifName")));
   //   c.set("TaskHeader.iconAlt", c.var("TranslatedClass"));
   //   c.set("TaskHeader.helpFile", "base/crtuseracct.html");
      c.set("SimplePassword.formName", "document.CreateUserForm");
      c.set("SimplePassword.contextControlName", "document.CreateUserForm.CreateUserContext");
      c.set("SimplePassword.dsPasswordControlName", "document.CreateUserForm.edirpassword");
   %>

<TABLE style="height:100%; width:100%" border="0" cellspacing="0" cellpadding="0">
<tr><td><TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class=smalltext align="right"><font color="#c82727">*=<iman:string key="CreateUser.Rquired" /></font></td>
  </tr>
</TABLE><BR>
</td></tr>

<tr style="height:100%;width:100%"><td>
<div align="left" id="junk" style="text-indent:2; display:block; width:100%;${('MSIE'==requestScope['Browser.name'])? 'height:100%;' : ''  }overflow-y:auto;" >

<TABLE width="100%" border="0" cellspacing="0" cellpadding="3">
  <tr>
    <td class=mediumtext nowrap><iman:string key="CreateUser.UserName" /><font color="#c82727"> *</font></td>
    <td><input type="text" name="CreateUserName" size="<iman:string key="UI.textboxSize" />" maxlength="64" onkeypress="return checkDefaultKey(event)"></td>
  </tr>
  <tr>
    <td class=mediumtext nowrap><iman:string key="CreateUser.FirstName" /></td>
    <td class=smalltext2d><input type="text" name="firstname" size="<iman:string key="UI.textboxSize" />" maxlength="32" onChange="populateFullName()" onkeypress="return checkDefaultKey(event)"></td>
  </tr>
  <tr>
    <td class=mediumtext nowrap><iman:string key="CreateUser.LastName" /><font color="#c82727"> *</font></td>
    <td><input type="text" name="CreateUserSurName" size="<iman:string key="UI.textboxSize" />" maxlength="64" onChange="populateFullName()" onkeypress="return checkDefaultKey(event)"></td>
  </tr>
  <tr>
    <td class=mediumtext nowrap><iman:string key="ModifyUser.FullName" /></td>
    <td class=smalltext2d><input type="text" name="fullname" size="<iman:string key="UI.textboxSize" />" maxlength="127" onkeypress="return checkDefaultKey(event)"></td>
  </tr>
  <tr>
      <td class=mediumtext nowrap><iman:string key="CreateUser.Context" /><font color="#c82727"> *</font></td>
      <td nowrap>
         <input type="text" name="CreateUserContext" size="<iman:string key="UI.textboxSize" />" maxlength="256" onchange="enableSimplePassword(this);" onkeypress="return checkDefaultKey(event)">
<%--
         <% c.set("OS.TypeFilter", c.var("CreatorSearchFilter"));
            c.set("OS.Control", "CreateUserContext");
            c.set("OS.CallBack", "enableSimplePasswordCallBack");
            c.set("OS.History", "true"); %>
         <iman:include page='dev/OS_inc.jsp' />
 --%>
 		<iman:os control="CreateUserContext" typeFilter="${CreateSearchFilter}" callBack="enableSimplePasswordCallBack" history="true"/>
       </td>
  </tr>

  <tr>
    <td colspan="2"><hr noshade size="1"></td>
  </tr>
  <tr>
    <td class=mediumtext nowrap><iman:string key="CreateUser.Password" /></td>
    <td class=smalltext2d><input type=password name="edirpassword" size="<iman:string key="UI.textboxSize" />" maxlength="127" onkeypress="return checkDefaultKey(event)"></td>
  </tr>
  <tr>
    <td class=mediumtext nowrap><iman:string key="CreateUser.RetypePassword" /></td>
    <td class=smalltext2d><input type=password name="retypepassword" size="<iman:string key="UI.textboxSize" />" maxlength="127" onkeypress="return checkDefaultKey(event)"></td>
  </tr>
  <tr>
    <td colspan="2" class="smalltext2d"><iman:string key="CreateUser.PasswordNote" /></td>
  </tr>

  <tr>
    <td colspan="2"><hr noshade size="1"></td>
  </tr>

  <iman:include page="base/SetSimplePassword_inc.jsp" />

  <tr>
    <td colspan="2"><hr noshade size="1"></td>
  </tr>

    <tr>
      <td class="mediumtext" colspan="3">
        <input type="checkbox" name="enablecopyfromuser" value="checkbox" onClick='enableTemplate(this.name)' onkeypress="return checkDefaultKey(event)">&nbsp;<iman:string key="CreateUser.CopyUser" />
      </td>
    </tr>
    <tr>
      <td class="mediumtext" nowrap>&nbsp;</td>
      <td>
        &nbsp;<input type="text" name="copyfromusername" size="<iman:string key="UI.textboxSize" />" maxlength="256" onchange="goGetTypedHomeDirectory()" onkeypress="return checkDefaultKey(event)">
<%--
        <% c.set("OS.TypeFilter", "User,Template");
           c.set("OS.InitialContext", c.var("targetNames"));
           c.set("OS.Control", "copyfromusername");
           c.set("OS.IsOSAllowed", "CopyCheckedOS");
           c.set("OS.CallBack", "goGetTemplateHomeDirectory");
           c.set("OS.History", "true"); %>
        <imaninclude page="dev/OS_inc.jsp" />
--%>
		<iman:os typeFilter="User,Template" initialContext="${targetNames}" control="copyfromusername" isOSAllowed="CopyCheckedOS" callBack="goGetTemplateHomeDirectory" history="true" />
      </td>
    </tr>

  <tr>
    <td colspan="2"><hr noshade size="1"></td>
  </tr>

  <tr>
    <td class="mediumtext" colspan="3">
      <input type="checkbox" name="enablecreatedir" value="checkbox" onClick='enableDirectory(this.name)' onkeypress="return checkDefaultKey(event)">&nbsp;<iman:string key="CreateUser.CreateDir" />
    </td>
  </tr>
  <tr>
    <td class=mediumtext nowrap><iman:string key="CreateUser.Volume" /></td>
    <td>
      <input type="text" name="volumename" size="<iman:string key="UI.textboxSize" />" maxlength="256" onkeypress="return checkDefaultKey(event)">
<%--
<!--      <% c.set("OS.TypeFilter", "Volume,Directory" );-->
<!--         c.set("OS.InitialContext", c.var("targetNames"));-->
<!--         c.set("OS.Control", "volumename");-->
<!--         c.set("OS.IsOSAllowed", "CreateDirCheckedOS");-->
<!--         c.set("OS.CallBack", "parseHomeDirectory");-->
<!--         c.set("OS.History", "true"); %>-->
<!--      <iman:include page="dev/OS_inc.jsp" />-->
--%>
      <iman:os typeFilter="Volume,Directory" control="volumeName" initialContext="${targetNames}" isOSAllowed="CreateDirCheckedOS" callBack="parseHomeDirectory" history="true"/>
    </td>
  </tr>
  <tr>
    <td class=mediumtext nowrap><iman:string key="CreateUser.Path" /></td>
    <td class=smalltext2d><input type=text name="pathname" size="<iman:string key="UI.textboxSize" />" maxlength="128" onkeypress="return checkDefaultKey(event)"></td>
  </tr>

  <tr>
    <td colspan="2" class="smalltext2d"><iman:string key="CreateUser.CreateDirNote" /></td>
  </tr>


  <tr>
    <td colspan="2"><hr noshade size="1"></td>
  </tr>

  <%-- ______ --%>
   <%-- Title --%>
   <%-- _____ --%>
   <TR>
     <td class=mediumtext nowrap><iman:string key="CreateUser.Title" /></td>
     <TD>
     	<INPUT type="hidden" name="p_title" />
        <iman:mved maxLength="64" enforceUnique="true" ignoreCase="true" minLength="1" name="title"  />
     </TD>
   </TR>

   <%-- *** --%>
   <%-- L --%>
   <%-- *** --%>
   <TR>
     <td class=mediumtext nowrap><iman:string key="CreateUser.Location" /></td>
      <TD>
      	<INPUT type="hidden" name="p_location" />
         <iman:mved maxLength="128"enforceUnique="true" ignoreCase="true" minLength="1" name="location"  />
      </TD>
   </TR>

   <%-- -- --%>
   <%-- OU --%>
   <%-- -- --%>
   <TR>
      <td class=mediumtext nowrap><iman:string key="CreateUser.Department" /></td>
      <TD>
      	<INPUT type="hidden" name="p_department" />
         <iman:mved maxLength="64" enforceUnique="true" ignoreCase="true" minLength="1" name="department"  />
      </TD>
   </TR>
   <%-- ---------------- --%>
   <%-- Telephone Number --%>
   <%-- ---------------- --%>
   <TR>
     <td class=mediumtext nowrap><iman:string key="CreateUser.Telephone" /></td>
      <TD>
      	<INPUT type="hidden" name="p_telephone" />
          <iman:mved maxLength="64" enforceUnique="true" name="telephone"  />
      </TD>
   </TR>
   <%-- -------------------------- --%>
   <%-- Facsimile Telephone Number --%>
   <%-- -------------------------- --%>
   <TR>
      <td class=mediumtext nowrap><iman:string key="CreateUser.FaxNumber" /></td>
      <TD>
      	<INPUT type="hidden" name="p_faxnumber" />
        <iman:mved maxLength="64" enforceUnique="true" name="faxnumber"  />
      </TD>
   </TR>
   <%-- ---------------------- --%>
   <%-- Internet EMail Address --%>
   <%-- ---------------------- --%>
   <TR>
      <td class=mediumtext nowrap><iman:string key="CreateUser.EmailAddress" /></td>
      <TD>
      <INPUT type="hidden" name="p_emailaddress" />
         <iman:mved maxLength="64" enforceUnique="true" ignoreCase="true" name="emailaddress" />
      </TD>
   </TR>
   <%-- ----------- --%>
   <%-- Description --%>
   <%-- ----------- --%>
   <TR>
      <td class=mediumtext nowrap><iman:string key="CreateUser.Description" /></td>
      <TD>
         <INPUT type="hidden" name="p_description" />
         <c:set var="MVStringEditor_bigEditBox" value="true" scope="request"/>
         <iman:mved mode="mvsel" maxLength="1024" enforceUnique="true" ignoreCase="true" minLength="1" name="description" />
      </TD>
   </TR>
</TABLE>
</div>
</td></tr><tr><td>&nbsp;</td></tr>
<%--  // moved to the participantWizardFooter
<!--<tr><td>-->
<!--<c:choose>-->
<!--<c:when test="${PartHandler_showWizard}">-->
<!--<INPUT type=image name="Previous" alt="<iman:string key="Button.Previous.alt" />" src="<iman:moduleUrl/>/dev/images/" + <iman:string key='Button.Previous.image'/>" border=0 ><INPUT type=image name="Next" alt="<iman:string key="Button.Next.alt" />" src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.Next.image") %>" border=0 ><INPUT type=image name="Create" alt="<iman:string key="Button.Create.alt" />" src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.OK.image") %>" border=0 ><iman:cancelBtn/>-->
<!--</c:when>-->
<!--<c:otherwise>-->
<!--<INPUT type=image name="Create" alt="<iman:string key="Button.Create.alt" />" src="<iman:moduleUrl/>/dev/images/<iman:string key='Button.OK.image'/>" border=0 ><iman:cancelBtn/>-->
<!--</c:otherwise>-->
<!--</c:choose>-->
<!--</td></tr>-->
--%>
</TABLE>
<iman:include  page="dev/OSFooter_inc.jsp" />

   <%-- -------------------------- --%>
   <%-- pop up dialog for password --%>
   <%-- -------------------------- --%>
   <iman:dialog id="checkPassword" title='<iman:string key="CreateUser.PasswordPopupTitle" />' width="400" height="190" dialogColor="efeeec" titleBarColor="458ab9">
      <div class="marginleft1 instructions"><b><iman:string key="CreateUser.PasswordPopupInstruction" /></b></div>
      <div class="marginleft2 margintop3"><input type="radio" name="blankPassword" value="true" checked="checked"><label><iman:string key="CreateUser.PasswordPopupBlankPassword" /></label></div>
      <div class="marginleft2 margintop1"><input type="radio" name="blankPassword" value="false" ><label><iman:string key="CreateUser.PasswordPopupNoPassword" /></label></div>
      <div style="text-align: center; margin-top: 2em"><img class="margin5r" name="OK" onclick="submitForm();" alt="<iman:string key="Button.OK.alt" />" src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.OK.image") %>" border=0 >&nbsp;<A href="#" onClick="javascript:deactivateImanDialog('checkPassword');return false"><img class="margin5r" name="Cancel" alt="<iman:string key="Button.Cancel.alt" />" src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.Cancel.image") %>" border=0 ></A></div>
   </iman:dialog>
</form>
</body>
</html>
