<%@  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");
   c.stringTable("BaseResources"); %>
<HTML>
<HEAD>
<TITLE><%= c.toDisplay(c.string("RBSManagement.BookObjectTypeTitle")) %></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 HEADER *
    *******************/
    function onPageLoad()
    {
        document.DeveloperCreateForm.DC_InstallContext_Name.focus();
    }


   /*******************
    * FUNCTION HEADER *
    *******************/
    function backSelected()
    {
        var form = document.DeveloperCreateForm;

        form.elements["merge"].value="fw.DeveloperFinish";
        form.elements["nextState"].value="DeveloperFinishPage";
        form.elements["Task.SelectedButton"].value="BackCreateButton";
        form.submit();
    }


   /*******************
    * FUNCTION HEADER *
    *******************/
    function installSelected()
    {
        if(checkRequiredFields() == false)
        {
            return;
        }

        var form = document.DeveloperCreateForm;

        form.elements["merge"].value="fw.DeveloperCreate";
        form.elements["nextState"].value="DeveloperCreatePage";
        form.elements["Task.SelectedButton"].value="CreateCreateButton";
        form.submit();
    }


   /*******************
    * FUNCTION HEADER *
    *******************/
    function finishSelected()
    {
        var form = document.DeveloperCreateForm;

        form.elements["merge"].value="fw.HomePage";
        form.elements["nextState"].value="HomePage";
        form.elements["Task.SelectedButton"].value="FinishCreateButton";
        form.submit();
    }


   /*******************
    * FUNCTION HEADER *
    *******************/
    function checkRequiredFields()
    {
        var contextName = document.DeveloperCreateForm.DC_InstallContext_Name.value;

        if ((contextName == null) || (contextName.length == 0))
        {
            alert("<%= c.toScript(c.string("DevelopersForm.Create.NameRequired")) %>");
            return false;
        }
        return true;
    }


    /*******************
     * FUNCTION HEADER *
     *******************/
	function checkDefaultKey(evt)
   {
      var keyCode = evt.which ? evt.which : evt.keyCode;
      // 13 is the Enter key code
      if (keyCode == 13)
      {
         return(finishSelected());
      }
      return true;
   }



</SCRIPT>
</HEAD>

<BODY   TEXT="#000000" LINK="#000000" VLINK="#000000" ALINK="#000000" bgcolor="#FFFFFF"
        onLoad="<% if (session.getAttribute("DeviceType").equals("default")) { %>returnFromOS();<% } %>onPageLoad()">
<form   name="DeveloperCreateForm"
        method="post"
        onSubmit="return(finishSelected())"
        action="webacc">


        <input  type=hidden
                name="taskId"
                value="fw.Developer">

        <input  type=hidden
                name="merge"
                value="">

        <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="">

        <input  type=hidden
                name="Task.SelectedButton"
                value="">

	<!-- ************ -->
	<!-- HEADER TABLE -->
	<!-- ************ -->
    <% c.set("WizardHeader.title", c.toDisplay(c.string("DevelopersForm.Wizard.Header")));
       c.set("WizardHeader.subtitle", c.toDisplay(c.string("Schema.Step9")));
       c.set("WizardHeader.instruction", c.toDisplay(c.string("DevelopersForm.Create.Step")));
       c.set("WizardHeader.helpFile", "base/xmlinstallfile_install.html"); %>
    <jsp:include page='<%= c.getPath("dev/WizardHeader_inc.jsp") %>' flush="true" />

	<!-- ************************* -->
	<!-- STEPS & INSTRUCTION TABLE -->
	<!-- ************************* -->

    <!-- ************* -->
    <!-- CONTENT TABLE -->
    <!-- ************* -->
    <table width="100%" border="0" cellspacing="0" cellpadding="2">
        <tr>
            <td height="16" valign="middle" class="mediumtext">
                <b><%= c.toDisplay(c.string("InstallPackage.rbsContainer")) %></b>
            </td>
        </tr>
        <tr>
            <td height="16" valign="middle" class="mediumtext">
                <input  type="text"
                        name="DC_InstallContext_Name"
                        value="<%= c.toDisplay(c.var("SearchResults")) %>"
                        size="45"
                        onkeypress="return checkDefaultKey(event)">
	            <% c.set("OS.TypeFilter", "rbsCollection2");
	               c.set("OS.Control", "DC_InstallContext_Name");
                  c.set("OS.History", "true"); %>
	            <jsp:include page='<%= c.getPath("dev/OS_inc.jsp") %>' flush="true" />
            </td>
        </tr>
        <tr>
            <td>
                <a href="#" onClick="javascript:installSelected();return false"><IMG src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.Install.image") %>" alt="<%= c.string("Button.Install.alt") %>" title="<%= c.string("Button.Install.alt") %>" border=0></a>
            </td>
        </tr>
        <tr>
            <td height="16" valign="middle" class="mediumtext">
                 <IMG src="<%= c.getModulesUrl() + "/fw/images/" + c.string("StatusNotice.image") %>"
                    alt="<%= c.toDisplay(c.string("StatusNotice.alt")) %>"
                    title="<%= c.toDisplay(c.string("StatusNotice.alt")) %>" border=0>&nbsp
                    <%= c.toDisplay(c.string("DevelopersForm.Create.OptionalInstall")) %>
            </td>
        </tr>
    </table>
	<!-- ************ -->
	<!-- BUTTON TABLE -->
	<!-- ************ -->
    <table width="85%" border="0" cellspacing="0" cellpadding="0" height="25">
        <tr valign="baseline" bgcolor="#FFFFFF">
            <td height="16" colspan="5" align="center" valign="middle" class="mediumtext">
                &nbsp;
            </td>
            <td height="16" align="left" valign="middle" colspan="2" class="mediumtext">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="2" height="23" class="ruleabove">
                <a href="#" onClick="javascript:backSelected();return false">
                    <IMG src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.Back.image") %>"
                    alt="<%= c.string("Button.Back.alt") %>"
                    title="<%= c.string("Button.Back.alt") %>"
                    border=0></a>
                <a href="#" onClick="javascript:finishSelected();return false">
                    <IMG src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.Finish.image") %>"
                    alt="<%= c.string("Button.Finish.alt") %>"
                    title="<%= c.string("Button.Finish.alt") %>"
                    border=0></a><jsp:include page='<%= c.getPath("dev/Cancel_inc.jsp") %>' flush="true" />
            </td>
        </tr>
    </table>
</form>
<jsp:include page='<%= c.getPath("dev/OSFooter_inc.jsp") %>' flush="true" />
</BODY></HTML>
