<%@  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("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()
    {
        document.GetTaskNameForm.TaskName.focus();
    }


   /*******************
    * FUNCTION HEADER *
    *******************/
    function onPageSubmit()
    {
        var strInput = document.GetTaskNameForm.TaskName.value;
        if ((null == strInput) || (0 == strInput.length))
        {
            alert("<%= c.string("GetTaskName.EnterValidTaskName") %>");
            return false;
        }
        return true;
    }


</script>
</HEAD>

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

<form   name="GetTaskNameForm"
        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"));
       c.set("TaskHeader.iconUrl", "dir/rbsTask.gif"); %>
   <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.string("ModifyTaskDescription.SelectObject")) %></td>
        </tr>
        <tr>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td class="mediumtext"><%= c.toHTML(c.string("GetTaskName.EnterTaskObject")) %></td>
        </tr>
        <tr>
            <td class="mediumtext"><input type="text" name="TaskName" style="width:<%= c.string("UI.textboxPixel") %>" size="<%= c.string("UI.textboxSize") %>">
                    <% c.set("OS.TypeFilter", "rbsTask2");
                       c.set("OS.Mode", "Search");
                       c.set("OS.Control", "TaskName");
                       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="NextButton"
            alt="<%= c.string("Button.Next.alt") %>"
            src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.Next.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>
