<%-- 
 Copyright : All Rights Reserved. Copyright (C) 2006, Hitachi, Ltd.
 Title     : ServerConductor WebConsole
 Version   : 08-00
 Name      : groupHeader.jsp
 Date      : 2006/04/10
 Author    : Kavitha KJ
 --%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<%@ page contentType = "text/html; charset = UTF-8" pageEncoding = "UTF-8" %>
<%@ page language = "java"%>
<%@ page errorPage = "errorDialog.jsp"%>
<%@ page import = "JP.co.Hitachi.soft.System_Manager.webconsole.common.Const" %>
<%@ page import = 
        "JP.co.Hitachi.soft.System_Manager.webconsole.common.MessageConstant" %>
<%@ page import = "JP.co.Hitachi.soft.System_Manager.data.HsmConst" %>
<%@ page import = "java.util.Vector" %>
<%@ taglib prefix = "bean"  uri = "/WEB-INF/struts-bean.tld" %>
<%@ taglib prefix = "html"  uri = "/WEB-INF/struts-html.tld" %>
<%@ taglib prefix = "util"  uri = "/WEB-INF/common-tags.tld" %>
<% response.addHeader("Cache-Control","no-cache"); %>                           <%-- 800WA_WEBCONSOLE308 --%>
<util:checkURL/>


<%-- Session Validation will be done here --%>

<%-- Get the images for display of product name set it into the 
     pageContext implicit object as an attribute" --%>
<%-- <util:set name = "imgSrcProductName">
	<%= Const.PATH_IMAGES %><%= Const.IMAGE_PRODUCT_NAME %>
</util:set> --%>                                                                <%-- 800WA_WEBCONSOLE414 --%>

<util:set name = "imgSrcProductName">
	<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL %>" 
	key = "internal.product.logo.image.path"/>
</util:set>                                                                     <%-- 800WA_WEBCONSOLE414 --%>

<%-- Get the images for display of company logo set it into the 
     pageContext implicit object as an attribute" --%>
<%-- <util:set name = "imgSrcCompanyLogo">
	<%= Const.PATH_IMAGES %><%= Const.IMAGE_COMPANY_LOGO %>
</util:set> --%>                                                                <%-- 800WA_WEBCONSOLE414 --%>

<util:set name = "imgSrcCompanyLogo">
	<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL %>" 
	key = "internal.corporate.logo.image.path"/>
</util:set>                                                                     <%-- 800WA_WEBCONSOLE414 --%>

<%-- Get data from the InternalProperties file and set it into the 
     pageContext implicit object as an attribute" --%>
<util:set name = "ProductLogoDisplayFlag">
	<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL %>" 
	key = "internal.product.logo.display.flag"/>
</util:set>

<%-- Get data from the InternalProperties file and set it into the 
     pageContext implicit object as an attribute" --%>
<util:set name = "CommonProductName">
	<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL %>" 
	key = "internal.common.product.name"/>
</util:set>

<%-- Get data from the InternalProperties file and set it into the 
     pageContext implicit object as an attribute" --%>
<util:set name = "CorporateLogoDisplayFlag">
	<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL %>" 
	key = "internal.corporate.logo.display.flag"/>
</util:set>


<%-- Get the help url from the property file and set it into the 
     pageContext implicit object as an attribute" --%>
<util:set name = "GroupHeaderHelpURL">
	<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL %>" 
	key = "internal.group.header.help.url"/>
</util:set>

<%--Get the string for displaying the help url set it into the 
     pageContext implicit object as an attribute" --%>
<%--
<util:set name = "FnOpenHelp">
    fnGroupOpen('helpLink'); 
    openHelp('<util:rewrite action = "help"/>',
    '<%= pageContext.getAttribute("GroupHeaderHelpURL").toString() %>',
    '<%= Const.ATTRIBUTE_REQUEST_HELP_CONTENTS %>'); 
</util:set> --%>                                                                <%-- 800WA_WEBCONSOLE395 --%>

<util:set name = "FnOpenHelp">
    fnGroupOpen('helpLink'); 
    openHelp('<util:rewrite action = "help"/>',
    '<%= pageContext.getAttribute("GroupHeaderHelpURL").toString() %>',
    '<%= Const.ATTRIBUTE_REQUEST_HELP_CONTENTS %>',
    '<%= request.getSession().getId() %>help'); 
</util:set>                                                                     <%-- 800WA_WEBCONSOLE395 --%>

<%--Get the string for displaying the image url and set it into the 
     pageContext implicit object as an attribute" --%>
<util:set name = "NodeIdForGroup">
	<%= Const.VALUE_INVALID %>
</util:set>

<%--Get the string for operation type and set it into the 
     pageContext implicit object as an attribute" --%>
<util:set name = "OperationTypeMachineAdd">  
	var GROUP_MACHINE_ADD = "<%= Const.GROUP_MACHINE_ADD %> ";
</util:set>

<util:set name = "OperationTypeGroupEdit">  
	var GROUP_NAME_EDIT = "<%= Const.GROUP_NAME_EDIT %> ";
</util:set>                                                                     <%-- 800WA_WEBCONSOLE389 --%>

<util:set name = "OperationTypeDelete">  
	var GROUP_DELETE = "<%= Const.GROUP_DELETE %> ";
</util:set>                                                                     <%-- 800WA_WEBCONSOLE389 --%>

<%-- set  the addGroup function  into the 
     pageContext implicit object as an attribute" --%>
<util:set name = "FnGroupCreate">
    fnGroupOpen('groupCreateLink');
    addGroup('<util:rewrite action="groupAdd"/>',
    '<%= request.getSession().getId() %>create','<%= Const.GROUP_CREATE %>');
</util:set>

<%-- set  the editGroupName function  into the 
     pageContext implicit object as an attribute" --%>
<util:set name = "FnGroupName">
    fnGroupOpen('groupEditLink');
    editGroupName('<util:rewrite action="groupEdit"/>',
    '<%= request.getSession().getId() %>editName','<%=  Const.GROUP_NAME_EDIT %>',
    '<%= pageContext.getAttribute("NodeIdForGroup").toString() %>');
</util:set>

<%-- set  the MachineAdd function  into the 
     pageContext implicit object as an attribute" --%>
<util:set name = "FnGroupMachineAdd">
    fnGroupOpen('computerAddLink');
    machineAdd('<util:rewrite action="machineAdd"/>',
    '<%= request.getSession().getId() %>MachineAdd','<%=   Const.GROUP_MACHINE_ADD %>');
</util:set>

<%-- set  the groupIdValueSet function  into the 
     pageContext implicit object as an attribute" --%>
<util:set name = "FnGroupIdSet">
   groupIdValueSet('<%= HsmConst.GROUPTREE_ID_POWERCTRL %>','power');
</util:set>

<%-- set  the groupIdValueSet function  into the 
     pageContext implicit object as an attribute" --%>
<util:set name = "FnGroupIdSetKey">
   groupIdValueSetOnKey('<%= HsmConst.GROUPTREE_ID_POWERCTRL %>');
</util:set>                                                                     <%-- 800WA_WEBCONSOLE353 --%>
 
<%--Get the Dialog box properties from the dialog property file set it into the 
     pageContext implicit object as an attribute" --%>
<util:set name="DeletionDialog">
      <bean:message 
	        bundle="<%= Const.MESSAGE_RESOURCES_KEY_DIALOG%>" 
	        key = "dialog.confirm.dialog.title" arg0="{0}"/>
</util:set>

<%--set the groupDeletionOrPowerOperation function into  the 
     pageContext implicit object as an attribute" --%>
<%--
<util:set name="DeleteOperation">
     fnGroupOpen('deleteLink');
     groupDeletionOrPowerOperation(
           '<%=pageContext.getAttribute("DeletionDialog")%>',
           '<%=pageContext.getAttribute("CommonProductName")%>',
           '<%=Const.IMAGE_TYPE_CONFIRM%>',
           '<%= MessageConstant.MSG_DELETE_CONFIRM%>',
           '<bean:message bundle = 
                         "<%= Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE%>" 
                         key = "<%=MessageConstant.MSG_DELETE_CONFIRM %>" 
                         arg0="{0}" />',
           '<bean:message bundle = 
                         "<%= Const.MESSAGE_RESOURCES_KEY_DIALOG%>" 
                         key="dialog.confirm.ok"/>',
           '<bean:message bundle = 
                         "<%= Const.MESSAGE_RESOURCES_KEY_DIALOG%>" 
                         key="dialog.confirm.terminate"/>',
           '<bean:message bundle = 
                          "<%= Const.MESSAGE_RESOURCES_KEY_DIALOG%>" 
                          key="dialog.confirm.all.ok"/>',
           '<bean:message bundle = 
                          "<%= Const.MESSAGE_RESOURCES_KEY_ALT%>" 
                          key="alt.alert.lv.confirm"/>' ,              
           '<util:rewrite action="groupOrHostDelete" />',
           'groupDetailFrame','<%= Const.GROUP_DETAIL %>');
</util:set>    --%>                                                             <%-- 800WA_WEBCONSOLE236 --%><%-- 800WA_WEBCONSOLE259 --%>
                                                                                <%-- 800WA_WEBCONSOLE389 --%>
<util:set name="DeleteOperation">
     fnGroupOpen('deleteLink');
     groupDeletionOrPowerOperation(
           '<%=pageContext.getAttribute("DeletionDialog")%>',
           '<%=pageContext.getAttribute("CommonProductName")%>',
           '<%=Const.IMAGE_TYPE_CONFIRM%>',
           '<%= MessageConstant.MSG_DELETE_CONFIRM%>',
           '<bean:message bundle = 
                         "<%= Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE%>" 
                         key = "<%=MessageConstant.MSG_DELETE_CONFIRM %>" 
                         arg0="{0}" />',
           '<bean:message bundle = 
                         "<%= Const.MESSAGE_RESOURCES_KEY_DIALOG%>" 
                         key="dialog.confirm.ok"/>',
           '<bean:message bundle = 
                         "<%= Const.MESSAGE_RESOURCES_KEY_DIALOG%>" 
                         key="dialog.confirm.terminate"/>',
           '<bean:message bundle = 
                          "<%= Const.MESSAGE_RESOURCES_KEY_DIALOG%>" 
                          key="dialog.confirm.all.ok"/>',
           '<bean:message bundle = 
                          "<%= Const.MESSAGE_RESOURCES_KEY_ALT%>" 
                          key="alt.alert.lv.confirm"/>' ,              
           '<util:rewrite action="groupOrHostDelete" />',
           'groupDetailFrame','<%= Const.GROUP_DELETE %>');
</util:set>                                                                     <%-- 800WA_WEBCONSOLE389 --%>
                                                                                
<util:set name = "AltCompanyLogo">
      <bean:message bundle = "<%=Const.MESSAGE_RESOURCES_KEY_ALT%>"  key = "alt.company.logo"/>
</util:set>

<util:set name = "AltProductLogo">                                              <%-- 800WA_WEBCONSOLE470 --%>
      <bean:message key = "alt.product.logo"
       bundle = "<%=Const.MESSAGE_RESOURCES_KEY_ALT%>"  />                      <%-- 800WA_WEBCONSOLE470 --%>                      
</util:set>                                                                     <%-- 800WA_WEBCONSOLE470 --%>

<script>
    <%= pageContext.getAttribute("OperationTypeMachineAdd").toString() %>
    <%= pageContext.getAttribute("OperationTypeGroupEdit").toString() %>        <%-- 800WA_WEBCONSOLE389 --%>
    <%= pageContext.getAttribute("OperationTypeDelete").toString() %>           <%-- 800WA_WEBCONSOLE389 --%>
</script>


<% 
    String l_stProductLogoDisplayFlag = (String)
    			pageContext.getAttribute("ProductLogoDisplayFlag");
    String l_stCorporateLogoDisplayFlag = (String)
    			pageContext.getAttribute("CorporateLogoDisplayFlag");
	// Server name to display in the title
	String l_stServerName = request.getServerName();
%>

<html:html locale = "true">
<head> 

<link rel = stylesheet type = text/css href = "css/header.css">
<link rel = stylesheet type = text/css href = "css/common.css">

<script src = "js/group.js"></script>
<script src = "js/common.js"></script>
<script src = "js/hostmgmt.js"></script>
<script src = "js/header.js"></script>

<title>
</title>
</head>

<%-- <body onclick = "clearAll(window.event);focusLost(window.event)" 
                                onLoad = dropGroupMgmtLink.focus()>  --%>       <%-- 800WA_WEBCONSOLE256 --%>	<%-- 800WA_WEBCONSOLE404 --%>

<%-- <body onclick = "clearAll(window.event);focusLost(window.event)" 
        onLoad = dropGroupMgmtLink.focus()  onresize="resetHeader(false)"> --%> <%-- 800WA_WEBCONSOLE404 --%> <%-- 800WA_WEBCONSOLE449 --%>
        
<body onclick = "clearAll(window.event);focusLost(window.event)" 
        onLoad = dropGroupMgmtLink.focus()  onresize="resetHeader(false)"
        tabindex = "1">                                                         <%-- 800WA_WEBCONSOLE449 --%>
        
<%-- <table border = "0" cellpadding = "0" width = "100%"> --%>                 <%-- 800WA_WEBCONSOLE404 --%>
<%--  <tr>  --%>                                                                <%-- 800WA_WEBCONSOLE404 --%>
        <div style="width:100%" id="logo">                                      <%-- 800WA_WEBCONSOLE404 --%>
		<%if(l_stProductLogoDisplayFlag.equals( 
		                    Const.ATTRIBUTE_DISPLAY_FLAG_ON)){%>
                <%-- <td> --%>                                                  <%-- 800WA_WEBCONSOLE404 --%>
				<%-- <html:img src = 
				   "<%= 
				   pageContext.getAttribute("imgSrcProductName").toString() %>" 
					border = "0"/>   --%>                                       <%-- 800WA_WEBCONSOLE404 --%>
	<%--  </td>  --%>                                                           <%-- 800WA_WEBCONSOLE404 --%>
		  
<%--              <html:img styleId = "product_logo" src = 
				   "<%= 
				   pageContext.getAttribute("imgSrcProductName").toString() %>" 
					border = "0"/>                                          --%><%-- 800WA_WEBCONSOLE404 --%><%-- 800WA_WEBCONSOLE470 --%>
        <html:img styleId = "product_logo" border = "0"
         src = "<%= pageContext.getAttribute("imgSrcProductName").toString() %>"
         alt = "<%= pageContext.getAttribute("AltProductLogo").toString() %>" /><%-- 800WA_WEBCONSOLE470 --%>
		<%}                                      
		else {%>
		<%-- <td>&nbsp</td> --%>                                                <%-- 800WA_WEBCONSOLE404 --%>
		<%-- <div id="product_logo">&nbsp;</div> --%>                           <%-- 800WA_WEBCONSOLE404 --%><%-- 800WA_WEBCONSOLE496 --%>
		<html:img styleId = "product_logo" border = "0" style="visibility:hidden"
         src = "<%= pageContext.getAttribute("imgSrcProductName").toString() %>"
         alt = "<%= pageContext.getAttribute("AltProductLogo").toString() %>" /><%-- 800WA_WEBCONSOLE496 --%>
		<%}%>
		
		<%if(l_stCorporateLogoDisplayFlag.equals(
		                    Const.ATTRIBUTE_DISPLAY_FLAG_ON)){%>
		<%--  <td rowspan = 2>  --%>                                            <%-- 800WA_WEBCONSOLE404 --%>
		<%--		<html:img src = 
				   "<%= 
				   pageContext.getAttribute("imgSrcCompanyLogo").toString() %>" 
					border = "0" styleClass = "leftTurn"
					alt = "<%= pageContext.getAttribute("AltCompanyLogo")
                            .toString()%>"/>    --%>                            <%-- 800WA_WEBCONSOLE404 --%>
        
        <html:img styleId = "company_logo" src = 
				   "<%= 
				   pageContext.getAttribute("imgSrcCompanyLogo").toString() %>" 					
					alt = "<%= pageContext.getAttribute("AltCompanyLogo")
                            .toString()%>"/>                                    <%-- 800WA_WEBCONSOLE404 --%>
	<%--	  </td>     --%>                                                    <%-- 800WA_WEBCONSOLE404 --%>
		<%}
		else {%>
	        <%-- <td>&nbsp</td> --%>                                            <%-- 800WA_WEBCONSOLE404 --%>
		    <%-- <div id="company_logo">&nbsp;</div> --%>                       <%-- 800WA_WEBCONSOLE404 --%><%-- 800WA_WEBCONSOLE496 --%>
		    <html:img styleId = "company_logo" style="visibility:hidden"
		    src = "<%= pageContext.getAttribute("imgSrcCompanyLogo").toString() %>" 					
			alt = "<%= pageContext.getAttribute("AltCompanyLogo").toString()%>"/><%-- 800WA_WEBCONSOLE496 --%>
		<%}%>
		</div>                                                                  <%-- 800WA_WEBCONSOLE404 --%>
		<div class="page_title">                                                <%-- 800WA_WEBCONSOLE404 --%>
<%-- </tr> --%>                                                                 <%-- 800WA_WEBCONSOLE404 --%>

<%-- <tr> --%>                                                                  <%-- 800WA_WEBCONSOLE404 --%>
<%-- <td> --%>                                                                  <%-- 800WA_WEBCONSOLE404 --%>
	<%--  <span class = "large">   --%>                                         <%-- 800WA_WEBCONSOLE404 --%>
		   <bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_GROUP %>" 
		   key = "group.header.window.name" 
		   arg0 = "<%=l_stServerName %>"/>
		 </div>                                                                 <%-- 800WA_WEBCONSOLE404 --%>
<%--	   </span>	--%>                                                        <%-- 800WA_WEBCONSOLE404 --%>
<%--	</td>  --%>                                                             <%-- 800WA_WEBCONSOLE404 --%>
<%-- </tr>  --%>                                                                <%-- 800WA_WEBCONSOLE404 --%>
<%-- <tr>  --%>                                                                 <%-- 800WA_WEBCONSOLE404 --%>
<%-- <td>  --%>                                                                 <%-- 800WA_WEBCONSOLE404 --%>
<%--	&nbsp;  --%>                                                            <%-- 800WA_WEBCONSOLE404 --%>
<%--</td>  --%>                                                                 <%-- 800WA_WEBCONSOLE404 --%>
<%--<td >  --%>                                                                 <%-- 800WA_WEBCONSOLE404 --%>
	    <div class="close_button" id="close_button">                            <%-- 800WA_WEBCONSOLE404 --%>
<%--	<html:button property = "button" 
	             styleClass = "leftTurn small" onclick = "parent.close()"> --%> <%-- 800WA_WEBCONSOLE449 --%>
		<html:button property = "button" tabindex = "1" 
		             styleClass = "leftTurn small" onclick = "parent.close()">	<%-- 800WA_WEBCONSOLE449 --%>
			<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_GROUP %>" 
			key = "group.header.close"/> 
		</html:button>
		</div>                                                                  <%-- 800WA_WEBCONSOLE404 --%>
<%--  </td>  --%>                                                               <%-- 800WA_WEBCONSOLE404 --%>
<%--  </tr>  --%>                                                               <%-- 800WA_WEBCONSOLE404 --%>
<%--  </table>  --%>                                                            <%-- 800WA_WEBCONSOLE404 --%>
<%--  <hr/>  --%>                                                               <%-- 800WA_WEBCONSOLE404 --%>

<hr class="menu-hr" id="menu-hr">                                               <%-- 800WA_WEBCONSOLE404 --%>
<br>                                                                            <%-- 800WA_WEBCONSOLE404 --%>

<% int l_iUserType =((Integer)session.getAttribute(
		                    Const.ATTRIBUTE_SESSION_USER_TYPE)).intValue(); %>

<util:set name = "FnGroupSubMenuOpen">
      fnGroupOpenSubMenu('dropGroupMgmtLink','dropGroupMgmtSub',  
                    '<%= l_iUserType %>')                                 
</util:set>                                                                     <%-- 800WA_WEBCONSOLE238 --%>

<%--For the menus--%> 
<%-- <table  width="100%">    --%>                                              <%-- 800WA_WEBCONSOLE330 --%> 	<%-- 800WA_WEBCONSOLE404 --%>
<%-- <tr>  --%>                                                                 <%-- 800WA_WEBCONSOLE330 --%>	<%-- 800WA_WEBCONSOLE404 --%>
<%-- <td>  --%>                                                                 <%-- 800WA_WEBCONSOLE330 --%>	<%-- 800WA_WEBCONSOLE404 --%>
<%-- <table border = "0" cellpadding = "0" width = "100%"> --%>                 <%-- 800WA_WEBCONSOLE330 --%>
<%-- <table border = "0" cellpadding = "0" width ="700" >  --%>                 <%-- 800WA_WEBCONSOLE330 --%>	<%-- 800WA_WEBCONSOLE404 --%>
			  
<%-- <tr> --%>                                                                  <%-- 800WA_WEBCONSOLE404 --%>
   
   <%--  <td class = "nowrap" width = "5%"> --%>                                <%-- 800WA_WEBCONSOLE330 --%>
  <%--       <td class = "nowrap">                        --%>                  <%-- 800WA_WEBCONSOLE330 --%>	<%-- 800WA_WEBCONSOLE404 --%>
	<%--	   <div id = "dropGroupMgmt">                     --%>              <%-- 800WA_WEBCONSOLE404 --%>
<%--          <a name = 'GroupMgmtLink' ></a>  --%>                             <%-- 800WA_WEBCONSOLE385 --%>
<%--          <html:link  styleId = "dropGroupMgmtLink" href = "#GroupMgmtLink" 
                 styleClass = "menu" onclick = 
         '<%=pageContext.getAttribute("FnGroupSubMenuOpen").toString() %>'> --%> <%-- 800WA_WEBCONSOLE238 --%> <%-- 800WA_WEBCONSOLE385 --%>
                                                            
         <div class="menuTable" id="menuTable" onresize="resetHeader(false)">   <%-- 800WA_WEBCONSOLE404 --%>
         <table border = "0" width = "100%" > <tr> <td>                         <%-- 800WA_WEBCONSOLE404 --%>
         <table class="menu-agent" id="menu" border = "0">                      <%-- 800WA_WEBCONSOLE404 --%>
             <tr>                                                               <%-- 800WA_WEBCONSOLE404 --%>
                 <td class="menu-agent-left">                                   <%-- 800WA_WEBCONSOLE404 --%>
                 
<%--          <html:link  styleId = "dropGroupMgmtLink" href = "#" 
                 styleClass = "menu" onclick = 
             '<%=pageContext.getAttribute("FnGroupSubMenuOpen").toString() %>'> --%><%-- 800WA_WEBCONSOLE385 --%> <%-- 800WA_WEBCONSOLE449 --%>

              <html:link  styleId = "dropGroupMgmtLink" href = "#" 
                styleClass = "menu" onclick = 
               '<%=pageContext.getAttribute("FnGroupSubMenuOpen").toString() %>'
               tabindex = "1" >                                                 <%-- 800WA_WEBCONSOLE449 --%>

		 	  <bean:message 
			       bundle = "<%= Const.MESSAGE_RESOURCES_KEY_GROUP%>" 
			       key = "group.menu.disp.group"/>
			  </html:link>
          <%--    </div>    --%>                                                <%-- 800WA_WEBCONSOLE404 --%>
         </td>
<%--     <td width = "6%"></td> --%>                                            <%-- 800WA_WEBCONSOLE330 --%>
	<% if(l_iUserType == HsmConst.USER_TYPE_ADMIN){ %>
 <%--   <td class = "nowrap" width = "5%"> --%>                                 <%-- 800WA_WEBCONSOLE330 --%>
 <%--   <td class = "nowrap">     --%>                                          <%-- 800WA_WEBCONSOLE330 --%>	<%-- 800WA_WEBCONSOLE404 --%>
        <td class="menu-agent">                                                 <%-- 800WA_WEBCONSOLE404 --%>
<%--		<html:link  href = "#" styleId = "groupCreateLink" 
			    styleClass = "menu" onclick = 
			           '<%=pageContext.getAttribute("FnGroupCreate").toString() %>'>
			                                        --%>                        <%-- 800WA_WEBCONSOLE449 --%>
			<html:link  href = "#" styleId = "groupCreateLink" 
			    styleClass = "menu" onclick = 
	           '<%=pageContext.getAttribute("FnGroupCreate").toString() %>'
	            tabindex = "1" >                                                <%-- 800WA_WEBCONSOLE449 --%>
				<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_GROUP %>" 
				key = "group.menu.create.group"/> 
			</html:link>
		</td>
<%--	<td width = "6%"></td> --%>                                             <%-- 800WA_WEBCONSOLE330 --%>
 <%--	<td class = "nowrap" width = "6%"> --%>                                 <%-- 800WA_WEBCONSOLE330 --%>
 <%--   <td class = "nowrap">     --%>                                          <%-- 800WA_WEBCONSOLE330 --%>	<%-- 800WA_WEBCONSOLE404 --%>
        <td class="menu-agent">                                                 <%-- 800WA_WEBCONSOLE404 --%>
<%--		<html:link  href = "#" styleId = "groupEditLink" 
			    styleClass = "menu" onclick = 
			             '<%=pageContext.getAttribute("FnGroupName").toString() %>'>
			                                         --%>                       <%-- 800WA_WEBCONSOLE449 --%>
			<html:link  href = "#" styleId = "groupEditLink" 
			    styleClass = "menu" onclick = 
	            '<%=pageContext.getAttribute("FnGroupName").toString() %>'
	            tabindex = "1">                                                 <%-- 800WA_WEBCONSOLE449 --%>
				<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_GROUP %>" 
				key = "group.menu.edit.group.name"/>
			</html:link>
		</td>
<%--	<td width = "7%"></td> --%>                                             <%-- 800WA_WEBCONSOLE330 --%>
<%--	<td class = "nowrap" width = "5%"> --%>                                 <%-- 800WA_WEBCONSOLE330 --%>
 <%--   <td class = "nowrap">     --%>                                          <%-- 800WA_WEBCONSOLE330 --%>	<%-- 800WA_WEBCONSOLE404 --%>
        <td class="menu-agent">                                                 <%-- 800WA_WEBCONSOLE404 --%>
<%--		<html:link  href = "#" styleId = "computerAddLink" 
			    styleClass = "menu" onclick = 
			       '<%=pageContext.getAttribute("FnGroupMachineAdd").toString() %>'>
			                                 --%>                               <%-- 800WA_WEBCONSOLE449 --%>
			<html:link  href = "#" styleId = "computerAddLink" 
			    styleClass = "menu" onclick = 
 		        '<%=pageContext.getAttribute("FnGroupMachineAdd").toString() %>'
 		        tabindex = "1">                                                 <%-- 800WA_WEBCONSOLE449 --%>
				<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_GROUP %>" 
				key = "group.menu.add.machine"/> 
			</html:link>
		</td>
<%--	<td width = "7%"></td> --%>                                             <%-- 800WA_WEBCONSOLE330 --%>
<%--	<td class = "nowrap" width = "2%"> --%>                                 <%-- 800WA_WEBCONSOLE330 --%>
 <%--   <td class = "nowrap">     --%>                                          <%-- 800WA_WEBCONSOLE330 --%>	<%-- 800WA_WEBCONSOLE404 --%>
        <td class="menu-agent">                                                 <%-- 800WA_WEBCONSOLE404 --%>
<%--		<html:link  href = "#" styleId = "deleteLink" 
			    styleClass = "menu" onclick = 
			        '<%= pageContext.getAttribute("DeleteOperation").toString() %>'>
			                                  --%>                              <%-- 800WA_WEBCONSOLE449 --%>
			<html:link  href = "#" styleId = "deleteLink" 
			    styleClass = "menu" onclick = 
		        '<%= pageContext.getAttribute("DeleteOperation").toString() %>'
		        tabindex = "1">                                                 <%-- 800WA_WEBCONSOLE449 --%>
				<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_GROUP %>" 
				key = "group.menu.delete"/> 
			</html:link>
		</td>
<%--	<td width = "6%"></td> --%>                                             <%-- 800WA_WEBCONSOLE330 --%>
	<%}
	else {%>
<%-- 	<td class = "nowrap" width = "4%">   --%>                               <%-- 800WA_WEBCONSOLE235 --%>	<%-- 800WA_WEBCONSOLE330 --%>
 <%--   <td class = "nowrap">     --%>                                          <%-- 800WA_WEBCONSOLE330 --%>	<%-- 800WA_WEBCONSOLE404 --%>
        <td class="menu-agent">                                                  <%-- 800WA_WEBCONSOLE404 --%>
<%--		<html:link  href = "#" styleClass = "middle_sub" >    --%>          <%-- 800WA_WEBCONSOLE270 --%> <%-- 800WA_WEBCONSOLE449 --%>
			<div class = "middle_sub" >                                         <%-- 800WA_WEBCONSOLE449 --%>
				<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_GROUP %>" 
				key = "group.menu.create.group"/> 
<%--		</html:link>  --%>                                                  <%-- 800WA_WEBCONSOLE449 --%>
			</div>			                                                    <%-- 800WA_WEBCONSOLE449 --%>
		</td>
<%--	<td width = "6%"></td> --%>                                             <%-- 800WA_WEBCONSOLE330 --%>
<%--	<td class = "nowrap" width = "5%">  --%>                                <%-- 800WA_WEBCONSOLE235 --%>	<%-- 800WA_WEBCONSOLE330 --%>
 <%--   <td class = "nowrap">     --%>                                         <%-- 800WA_WEBCONSOLE330 --%>	<%-- 800WA_WEBCONSOLE404 --%>
        <td class="menu-agent">                                                  <%-- 800WA_WEBCONSOLE404 --%>
<%--	<html:link  styleId = 'edit' href = "#" styleClass = "middle_sub"> --%> <%-- 800WA_WEBCONSOLE270 --%> <%-- 800WA_WEBCONSOLE449 --%>
			<div class = "middle_sub" >                                         <%-- 800WA_WEBCONSOLE449 --%>
				<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_GROUP %>" 
				key = "group.menu.edit.group.name"/>
<%--		</html:link>  --%>                                                  <%-- 800WA_WEBCONSOLE449 --%>
			</div>			                                                    <%-- 800WA_WEBCONSOLE449 --%>
		</td>
<%--	<td width = "8%"></td>  --%>                                            <%-- 800WA_WEBCONSOLE235 --%>	<%-- 800WA_WEBCONSOLE330 --%>
<%--	<td class = "nowrap" width = "4%">   --%>                               <%-- 800WA_WEBCONSOLE235 --%>	<%-- 800WA_WEBCONSOLE330 --%>
        <%--   <td class = "nowrap">     --%>                                   <%-- 800WA_WEBCONSOLE330 --%>	<%-- 800WA_WEBCONSOLE404 --%>
        <td class="menu-agent">                                                  <%-- 800WA_WEBCONSOLE404 --%>
<%--		<html:link  href = "#" styleClass = "middle_sub" >    --%>          <%-- 800WA_WEBCONSOLE270 --%> <%-- 800WA_WEBCONSOLE449 --%>
			<div class = "middle_sub" >                                         <%-- 800WA_WEBCONSOLE449 --%>
				<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_GROUP %>" 
				key = "group.menu.add.machine"/> 
<%--		</html:link>  --%>                                                  <%-- 800WA_WEBCONSOLE449 --%>
			</div>			                                                    <%-- 800WA_WEBCONSOLE449 --%>
		</td>
<%--	<td width = "8%"></td> --%>                                             <%-- 800WA_WEBCONSOLE235 --%>	<%-- 800WA_WEBCONSOLE330 --%>
<%--	<td class = "nowrap" width = "2%">  --%>                                <%-- 800WA_WEBCONSOLE330 --%>
        <%--   <td class = "nowrap">     --%>                                   <%-- 800WA_WEBCONSOLE330 --%>	<%-- 800WA_WEBCONSOLE404 --%>
        <td class="menu-agent">                                                  <%-- 800WA_WEBCONSOLE404 --%>
<%--		<html:link  href = "#" styleClass = "middle_sub" >  --%>            <%-- 800WA_WEBCONSOLE270 --%> <%-- 800WA_WEBCONSOLE449 --%>
			<div class = "middle_sub" >                                         <%-- 800WA_WEBCONSOLE449 --%>
				<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_GROUP %>" 
				key = "group.menu.delete"/> 
<%--		</html:link>  --%>                                                  <%-- 800WA_WEBCONSOLE449 --%>
			</div>			                                                    <%-- 800WA_WEBCONSOLE449 --%>
		</td>
<%--	<td width = "6%"></td> 	--%>                                            <%-- 800WA_WEBCONSOLE330 --%> 
	<% }%>
<%--<td class = "nowrap" width = "2%"> --%>                                     <%-- 800WA_WEBCONSOLE330 --%>
<%--	<html:link href = "#" styleId = "helpLink" styleClass = "menu" 
		onclick = "<%= pageContext.getAttribute("FnOpenHelp").toString() %>"
		                                                                  >--%> <%-- 800WA_WEBCONSOLE330 --%>
<%--	<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_GROUP %>" 
			key = "group.menu.help"/> --%>                                      <%-- 800WA_WEBCONSOLE330 --%>    
<%--	</html:link>--%>                                                       <%-- 800WA_WEBCONSOLE330 --%>
<%--</td>--%>                                                                  <%-- 800WA_WEBCONSOLE330 --%>
	
	  
</tr>
<tr>
	    <%--   <td class = "nowrap">     --%>                                   <%-- 800WA_WEBCONSOLE330 --%>	<%-- 800WA_WEBCONSOLE404 --%>
        <td class="menu-agent-left">                                                  <%-- 800WA_WEBCONSOLE404 --%>
	<div class = "list" id = "dropGroupMgmtSub" style="display:none">
 <%--   <html:link styleId = 'power' href="#" onclick=
		         '<%=pageContext.getAttribute("FnGroupIdSet").toString() %>'
		styleClass = "item"  > --%>                                             <%-- 800WA_WEBCONSOLE353 --%>

<%--	<html:link styleId = 'power' href="jsp/default.html" target = "groupDetailFrame" 
		 onmousedown = '<%=pageContext.getAttribute("FnGroupIdSet").toString() %>'
		 onkeydown = '<%=pageContext.getAttribute("FnGroupIdSetKey").toString() %>'
		styleClass = "item"  >    --%>                                          <%-- 800WA_WEBCONSOLE353 --%> <%-- 800WA_WEBCONSOLE406 --%>

<%--	<html:link styleId = 'power' href="jsp/default.html" target = "groupDetailFrame" 
		 onclick = '<%=pageContext.getAttribute("FnGroupIdSet").toString() %>'
		 styleClass = "item" >              --%>                                <%-- 800WA_WEBCONSOLE406 --%> <%-- 800WA_WEBCONSOLE449 --%>
		<html:link styleId = 'power' href="jsp/default.html" 
		 target = "groupDetailFrame" 
		 onclick = '<%=pageContext.getAttribute("FnGroupIdSet").toString() %>'
		 styleClass = "item" tabindex = "2">                                    <%-- 800WA_WEBCONSOLE449 --%>
			<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_GROUP %>" 
			key = "group.menu.power.control"/>
		</html:link>
		</td>                                                                   <%-- 800WA_WEBCONSOLE404 --%>
	</div>	
	 
</tr>                                                                           <%-- 800WA_WEBCONSOLE330 --%>                                                                          
 
</table>                                                                        <%-- 800WA_WEBCONSOLE330 --%>
</td>                                                                           <%-- 800WA_WEBCONSOLE404 --%>
<%-- <td align = "right">   --%>                                                <%-- 800WA_WEBCONSOLE330 --%>	<%-- 800WA_WEBCONSOLE404 --%>
<%-- <td> --%>                                                                  <%-- 800WA_WEBCONSOLE404 --%>	<%-- 800WA_WEBCONSOLE428 --%>
<td valign = "top">                                                             <%-- 800WA_WEBCONSOLE428 --%>
         <table class="menu-agent" id="menu" width = "100%" border = "0">       <%-- 800WA_WEBCONSOLE404 --%>
             <tr>                                                               <%-- 800WA_WEBCONSOLE404 --%>
               <td class="menu-agent-right">                                    <%-- 800WA_WEBCONSOLE404 --%>                         
<%--	<html:link href = "#" styleId = "helpLink" styleClass = "menu" 
		onclick = "<%= pageContext.getAttribute("FnOpenHelp").toString() %>">--%><%-- 800WA_WEBCONSOLE330 --%> <%-- 800WA_WEBCONSOLE449 --%>
		<html:link href = "#" styleId = "helpLink" styleClass = "menu" 
		onclick = "<%= pageContext.getAttribute("FnOpenHelp").toString() %>"
		tabindex = "1">                                                         <%-- 800WA_WEBCONSOLE449 --%>
			<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_GROUP %>" 
			key = "group.menu.help"/>                                           <%-- 800WA_WEBCONSOLE330 --%>
		</html:link>                                                            <%-- 800WA_WEBCONSOLE330 --%>
</td>                                                                           <%-- 800WA_WEBCONSOLE330 --%>
</tr>                                                                           <%-- 800WA_WEBCONSOLE330 --%>
</table>  
</td>                                                                           <%-- 800WA_WEBCONSOLE404 --%>
</tr>                                                                           <%-- 800WA_WEBCONSOLE404 --%>
</table>                                                                        <%-- 800WA_WEBCONSOLE404 --%>
</div>                                                                          <%-- 800WA_WEBCONSOLE404 --%>

<html:form action = "groupList" target="groupListFrame">
   <html:hidden property="groupId" /> 
   
</html:form>
</body>

<%--set the error message in the pageContext implicit 
    object as an attribute --%>
<util:set name="errorParams">
      
     var MSG_GROUPTREE_SELECT_CHECK = 
     	"<%= MessageConstant.MSG_GROUPTREE_SELECT_CHECK %>";
     var MSG_GROUP_SELECT_CHECK = 
     	"<%= MessageConstant.MSG_GROUP_SELECT_CHECK %>";
     var MSG_GROUP_COMP_SELECT_CHECK = 
     	"<%= MessageConstant.MSG_GROUP_COMP_SELECT_CHECK %>"; 
     var MSG_GROUP_ONLY_SELECT_CHECK = 
     	"<%= MessageConstant.MSG_GROUP_ONLY_SELECT_CHECK %>";
     var MSG_GROUP_ROOT_ERROR = 
     	"<%= MessageConstant.MSG_GROUP_ROOT_ERROR %>";
     var USER_TYPE_ADMIN = "<%= HsmConst.USER_TYPE_ADMIN %>";                   <%-- 800WA_WEBCONSOLE235 --%>
     var USER_CURRENT = "<%= l_iUserType %>";                                   <%-- 800WA_WEBCONSOLE327 --%>
     	
     errorMessage[MSG_GROUPTREE_SELECT_CHECK] =
			'<bean:message bundle = 
			  "<%= Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE %>" 
			  key = "<%= MessageConstant.MSG_GROUPTREE_SELECT_CHECK %>"/>'; 
			  
     errorMessage[MSG_GROUP_SELECT_CHECK] =
			'<bean:message bundle = 
			  "<%= Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE %>" 
			  key = "<%= MessageConstant.MSG_GROUP_SELECT_CHECK %>"/>';
   
     errorMessage[MSG_GROUP_COMP_SELECT_CHECK] =
			'<bean:message bundle = 
			  "<%= Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE %>" 
			  key = "<%= MessageConstant.MSG_GROUP_COMP_SELECT_CHECK %>"/>';  
			  
	 errorMessage[MSG_GROUP_ONLY_SELECT_CHECK] =
			'<bean:message bundle = 
			  "<%= Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE %>" 
			  key = "<%= MessageConstant.MSG_GROUP_ONLY_SELECT_CHECK %>"/>';
		
	 errorMessage[MSG_GROUP_ROOT_ERROR] =
			'<bean:message bundle = 
			  "<%= Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE %>" 
			  key = "<%= MessageConstant.MSG_GROUP_ROOT_ERROR %>"/>';
			  
</util:set> 

<script>
	var errorMessage = new Array();

	<%= pageContext.getAttribute("errorParams").toString() %>
	resetHeader(false) ;                                                        <%-- 800WA_WEBCONSOLE404 --%>
</script>
</html:html>

