<%@  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.toHTML(c.string("PartitionReplica.ReplicaAdministration")) %></TITLE>
<link   rel='stylesheet'
        href='<%= c.getModulesUrl() + "/dev/css/hf_style.css" %>'>

<script language="JavaScript">

 
    /*******************
     * FUNCTION HEADER *
     *******************/   
    function okSelected()
    {
        <% if (session.getAttribute("DeviceType").equals("default")) { %>
            var form = document.DeleteReplicaForm;
            
            form.elements["merge"].value="base.partition.ReplicaTable";
            form.elements["nextState"].value="deleteReplica";
            
            form.submit();
        <% } else { %>
            window.opener.deleteReplicaInfo();
            window.close();
        <% } %>
    }
   
    
    /*******************
     * FUNCTION HEADER *
     *******************/   
    function cancelSelected()
    {
        <% if (session.getAttribute("DeviceType").equals("default")) { %>
            var form = document.DeleteReplicaForm;
            
            form.elements["merge"].value="base.partition.ReplicaTable";
            form.elements["nextState"].value="cancelReplicaOperation";
            
            form.submit();
        <% } else { %>
            window.close();
        <% } %>
    }
    
    
</SCRIPT>
</HEAD>

<BODY   TEXT="#000000" LINK="#000000" VLINK="#000000" ALINK="#000000" bgcolor="#FFFFFF">
<form   name="DeleteReplicaForm"
        method="post"
        action="webacc"
        onSubmit="return(okSelected())">
        
        <input  type=hidden
                name="taskId"
                value="<%= c.var("taskId") %>">
            
        <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="">
            
	<!-- ************ -->
	<!-- HEADER TABLE -->
	<!-- ************ -->
   <% c.set("TaskHeader.title", c.string("PartitionReplica.DeleteReplica")); 
      c.set("TaskHeader.helpFile", "base/deletereplica.html"); %>
   <jsp:include page='<%= c.getPath("dev/TaskHeader_inc.jsp") %>' flush="true" />
                
    <!-- ************* -->
    <!-- CONTENT TABLE -->
    <!-- ************* -->
    <TABLE>
        <tr>
            <td>&nbsp;</td>
        </tr>
        <tr> 
            <td class="instructions"><%= c.toHTML(c.string("PartitionReplica.DeleteReplicaInstructions")) %></td>
        </tr>
        <tr>
            <td>&nbsp;</td>
        </tr>
    </TABLE>
    <TABLE>
        <TR> 
            <TD class="mediumtext" width="0*">
                <%= c.toHTML(c.string("PartitionReplica.PartitionName")) %>
            </TD> 
            <TD class="mediumtext">
                <%= c.toHTML(c.var("Replica.SelectedObjectName")) %>
            </TD> 
        </TR> 
        <TR> 
            <TD class="mediumtext" width="0*">
                <%= c.toHTML(c.string("PartitionReplica.ServerName")) %>
            </TD> 
            <TD class="mediumtext">
                <%= c.toHTML(c.var("Replica.SelectedTableName")) %>
            </TD> 
        </TR> 
        <tr>
            <td>&nbsp;</td>
        </tr>
    </TABLE>
	
	<!-- ************ -->
	<!-- BUTTON TABLE -->
	<!-- ************ -->
    <jsp:include page='<%= c.getPath("dev/Bar_inc.jsp") %>' flush="true" />
    
    <a href="#" onClick="javascript:okSelected();return false">
        <IMG    src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.OK.image") %>"
                alt="<%= c.string("Button.OK.alt") %>"
                title="<%= c.string("Button.OK.alt") %>"
                border=0></a>
    <a href="#" onClick="javascript:cancelSelected();return false">
        <IMG    src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.Cancel.image") %>"
                alt="<%= c.string("Button.Cancel.alt") %>"
                title="<%= c.string("Button.Cancel.alt") %>"
                border=0></a>
</form>
</BODY></HTML>
