	<%@  page pageEncoding="utf-8" contentType="text/html;charset=utf-8" import="com.novell.webaccess.common.JSPConduit, com.novell.emframe.dev.eMFrameUtils,
                                                                             com.novell.emframe.dev.eMFrameFactory" %>
<%   JSPConduit c = JSPConduit.getJSPConduit(request);
   c.stringTable("DevResources");
   c.stringTable("BaseResources"); %>

<HTML>
<HEAD>
<TITLE><%= c.string("MoveObject.MoveObjectTitle") %></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/TCScripts_inc.jsp") %>' flush="true">
   <jsp:param name="TC.advancedSelectionEnabled" value="true"/>
   <jsp:param name="TC.multipleObjectEnabled" value="true"/>
</jsp:include>


<script language="JavaScript">

   function checkNullInput()
   {
      var containerInput = document.MoveObjectForm.MoveObjectContext.value;
      if ((null == containerInput) || (0 == containerInput.length))
      {
         alert("<%= c.string("MoveObject.InvalidContainerName") %>");
         return false;
      }

      return true;
   }

   function isValid()
   {
   	  return validateTargetChooser();
   }

   function init()
   {
      <%
         String[] initialValues = null;

         String targetNames = request.getParameter("targetNames");
         if(targetNames==null)
         {
            targetNames = c.var("TC.initialValue");
         }

         if(targetNames != null && targetNames.length() != 0)
         {
            initialValues = eMFrameUtils.unpack(targetNames, eMFrameFactory.getMContext(request));
         }

         if(initialValues!=null && initialValues.length==1)
         {
            out.println("document.MoveObjectForm.single.focus();");
         }
      %>

      returnFromOS();
   }

</script>
</HEAD>

<BODY TEXT="#000000" LINK="#000000" VLINK="#000000" ALINK="#000000" bgcolor="#FFFFFF" onLoad="init();">
<form name="MoveObjectForm" method=post action="webacc" onSubmit="return(checkNullInput() && isValid())">
   <input type=hidden name="taskId" value="<%= c.var("taskId") %>">
   <input type=hidden name="merge" value="dev.GenConf">
   <input type=hidden name="error" value="dev.MooGenErr">
   <input type=hidden name="User.context" value="<%= c.var("User.context") %>">
   <input type=hidden name="nextState" value="doMoveObject">
   <input type=hidden name="objectList" value="">
   <input type=hidden name="GifName" value="<%= c.var("GifName") %>">
   <input type=hidden name="TranslatedClass" value="<%= c.var("TranslatedClass") %>">
	<% c.set("TaskHeader.title", c.formatMessage(c.string("MoveObject.MoveObject"), new String[]{c.var("TranslatedClass")}));
      c.set("TaskHeader.iconUrl", c.plus("dir/", c.var("GifName"))); %>

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


<table cellspacing="0" cellpadding="0">
  <tr>
    <td class="instructions"><%= c.string("MoveObject.SelectPrompt") %></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <% c.set("TC.controlName", "MoveObjectName");
       c.set("TC.prompt", c.string("MoveObject.ObjectName"));
       c.set("TC.multipleObjectEnabled", "true");
//       c.set("TC.osTypeFilter","[non-containers]");
       c.set("TC.showObjectTypeSelectionInAdvancedSelect", "true");
       c.set("TC.advancedSelectionEnabled", "true"); %>
    <td class="mediumtext2a"><jsp:include page='<%= c.getPath("dev/TC_inc.jsp") %>' flush="true" /></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td class="mediumtext2a"><%= c.string("MoveObject.ContainerName") %></td>
  </tr>
  <tr>
    <td><input type="text" name="MoveObjectContext" size="<%= c.string("UI.textboxSize") %>" style="width:<%= c.string("UI.textboxPixel") %>">
    <% c.set("OS.TypeFilter", "[Containers]");
       c.set("OS.Control", "MoveObjectContext");
       c.set("OS.History", "true"); %>
    <jsp:include page='<%= c.getPath("dev/OS_inc.jsp") %>' flush="true" /></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<% if(!"false".equals(c.var("aliasCreation"))) { %>
<table>
  <tr>
    <td><input type="checkbox" name="EnableCreateAlias" value=""></td>
    <td class="mediumtext"><%= c.string("MoveObject.CreateAlias") %></td>
    <td >&nbsp;</td>
  </tr>
</table>
 <%}%>
<br>

<jsp:include page='<%= c.getPath("dev/Bar_inc.jsp") %>' flush="true" />
<INPUT type=image name="Move" 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>
<FORM name="previewForm" id="previewForm" method="post" action="webacc" target="previewFrame" >
   <INPUT type=hidden name="taskId"    value="fw.PreviewObjectFilter" >
   <INPUT type=hidden name="nextState" value="initialState" >
   <INPUT type=hidden name="merge"     value="fw.TCPreviewFilter" >
   <INPUT type=hidden name="query"     value="" >
   <INPUT type=hidden name="filter"    value="" >
   <INPUT type=hidden name="container" value="" >
   <INPUT type=hidden name="subContainerSearch" value="false" >
   <INPUT type=hidden name="objectEntryCount" value="" >
   <INPUT type=hidden name="subClasses" value="" >
</FORM>
<jsp:include page='<%= c.getPath("dev/OSFooter_inc.jsp") %>' flush="true" />
</BODY></HTML>
