<%--
 Copyright : All Rights Reserved. Copyright (C) 2006, Hitachi, Ltd.
 Title     : ServerConductor WebConsole
 Version   : 08-00
 Name      : groupList.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.GroupCommon"%>
<%@ page import = "JP.co.Hitachi.soft.System_Manager.webconsole.model.bean.GroupListBean"%>
<%@ page import = "java.util.Vector"%>
<%@ page import = 
    "JP.co.Hitachi.soft.System_Manager.webconsole.common.CommonUtil" %>         <%-- 800WA_WEBCONSOLE321 --%>
<%@ page import = "java.util.StringTokenizer"%>
<%@ page import = "JP.co.Hitachi.soft.System_Manager.data.HsmUrlData" %>        <%-- 800WA_WEBCONSOLE328 --%>
<%@ 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"); %> 
<util:checkURL/>

<%-- Get instance of GroupListBean in page scope--%>
<jsp:useBean id = "GroupListBean" scope = "request"
 class = "JP.co.Hitachi.soft.System_Manager.webconsole.model.bean.GroupListBean" />
	
<%-- Get the plus icon from the Const file and set it into 
     the pageContext implicit object as an attribute" --%>
<util:set name = "PlusIcon">
	<%= Const.PATH_IMAGES %>\<%= Const.IMAGE_PLUS %>
</util:set>

<%-- Get the minus icon from the Const file and set it into 
     the pageContext implicit object as an attribute" --%>
<util:set name = "MinusIcon">
	<%= Const.PATH_IMAGES %>\<%= Const.IMAGE_MINUS %>
</util:set>

<%-- Get the group root icon from the Const file and set it into 
     the pageContext implicit object as an attribute" --%>
<util:set name = "GroupRootIcon">
	<%= Const.PATH_IMAGES %>\<%= Const.IMAGE_GROUP_ROOT_ICON_URL%>
</util:set>

<%-- Get the space1 icon from the Const file and set it into 
     the pageContext implicit object as an attribute" --%>
<util:set name = "SpaceIcon1">
	<%= Const.PATH_IMAGES %><%= Const.IMAGE_SPACE1 %>
</util:set>

<%-- Get the space2 icon from the Const file and set it into 
     the pageContext implicit object as an attribute" --%>
<util:set name = "SpaceIcon2">
	<%= Const.PATH_IMAGES %><%= Const.IMAGE_SPACE2 %>
</util:set>

<%-- Get the space3 icon from the Const file and set it into 
     the pageContext implicit object as an attribute" --%>
<util:set name = "SpaceIcon3">
	<%= Const.PATH_IMAGES %><%= Const.IMAGE_SPACE3 %>
</util:set>

<%-- Get the space4 icon from the Const file and set it into 
     the pageContext implicit object as an attribute" --%>
<util:set name = "SpaceIcon4">
	<%= Const.PATH_IMAGES %><%= Const.IMAGE_SPACE4 %>
</util:set>

<%-- Get the space5 icon from the Const file and set it into 
     the pageContext implicit object as an attribute" --%>
<util:set name = "SpaceIcon5">
	<%= Const.PATH_IMAGES %><%= Const.IMAGE_SPACE5 %>
</util:set>

<%-- Get the space6 icon from the Const file and set it into 
     the pageContext implicit object as an attribute" --%>
<util:set name = "SpaceIcon6">
	<%= Const.PATH_IMAGES %><%= Const.IMAGE_SPACE6 %> 
</util:set>

<%-- Get the space7 icon from the Const file and set it into 
     the pageContext implicit object as an attribute" --%>
<util:set name = "SpaceIcon7">
	<%= Const.PATH_IMAGES %><%= Const.IMAGE_SPACE7 %>
</util:set>

<%-- Get the space8 icon from the Const file and set it into 
     the pageContext implicit object as an attribute" --%>
<util:set name = "SpaceIcon8">
	<%= Const.PATH_IMAGES %><%= Const.IMAGE_SPACE8 %>
</util:set>

<%
	//get the tree information vector 
	Vector l_vtListTree = null;	 
	l_vtListTree = GroupListBean.getGroupTree();
	StringBuffer l_sbParentNodes = new StringBuffer();
	String l_stLeafNode = " ";	
%>

<html:html locale = "true">
	<head>
		<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/header.js">
		</script>
	</head> 
	<%--
	<body onclick = "focusLost(window.event)"                                   <%-- 800WA_WEBCONSOLE256 --%>
           <%--   onload = "parent.document.frames['groupDetailFrame'].location='jsp/default.html'"> --%>
                                                                                <%-- 800WA_WEBCONSOLE345 --%>
	<body class = "nowrap" onclick = "focusLost(window.event)"                               
              onload = "parent.document.frames['groupDetailFrame'].location='jsp/default.html'">
                                                                                <%-- 800WA_WEBCONSOLE345 --%>
	<div id="treeData" style="visibility:hidden">								<% // 800WA_WEBCONSOLE457 %>
		<html:form action = "groupDetail" target= "groupDetailFrame">
		<html:hidden property = "climbTrail"/>
		<html:hidden property = "groupName"/>
		<html:hidden property = "groupId"/>
		<html:hidden property = "source"/>
		<html:hidden property = "operationType"/>
		
		</html:form>
	
		<%
			// Declaration and Initialisation 
			
			Vector l_vtCurrentNode = null;
			Vector l_vtNextNode = null;
			String l_stSpaceImg = null;
			Vector l_vtTemp = new Vector();
			Vector l_vtCurrent = new Vector();
			
			StringBuffer l_sbNodeHierarchy = new StringBuffer();
			StringBuffer l_stQueryString = new StringBuffer();
			int l_iIndent = 0; 
	
			// this loop is to identify the leaf node 	
			for(int l_iCnt = 0 ; l_iCnt < l_vtListTree.size() ; l_iCnt++) {
			
			    // Storing Current node and next node data 
				String l_stNtTemp = null;
				String l_stCtTemp = null;
				
			    l_vtCurrentNode = ((Vector)l_vtListTree.get(l_iCnt));
				l_stCtTemp = l_vtCurrentNode.get(0).toString();				
				
				if (l_iCnt < l_vtListTree.size() - 1) {
				
					l_vtNextNode = ((Vector)l_vtListTree.get(l_iCnt+1));	
					l_stNtTemp = l_vtNextNode.get(0).toString();
				}
				else {
					l_stNtTemp = l_vtCurrentNode.get(0).toString();
				}
				
				//remove the token ',' from the climb trail for
				// the current and the next node
				int l_iToken = 0;
				Vector l_vtClimbTrailCt=new Vector();
				
				StringTokenizer l_stTokenCt = 
				           new StringTokenizer(l_stCtTemp,Const.SYMBOL_COMMA);
				
				while(l_stTokenCt.hasMoreTokens()){
	                l_vtClimbTrailCt.add(l_iToken,l_stTokenCt.nextToken());
	                l_iToken++;
                }
			 
			    l_iToken = 0;
			    Vector l_vtClimbTrailNt = new Vector();
				StringTokenizer l_stTokenNt = 
				            new StringTokenizer(l_stNtTemp,Const.SYMBOL_COMMA);
				
				while(l_stTokenNt.hasMoreTokens()){
	                l_vtClimbTrailNt.add(l_iToken,l_stTokenNt.nextToken());
	                l_iToken++;
                }
                
                int l_iCount = 0;
		        int l_iFlag = 0;
		        while(l_iCount < l_vtClimbTrailCt.size() && l_iFlag == 0){
		        	if(l_vtClimbTrailCt.get(l_iCount).equals(
		        	                      l_vtClimbTrailNt.get(l_iCount))){
		        		l_iFlag = 0;
		        	}
		        	else{
		        		l_iFlag = 1;
		        	}
		        	l_iCount++;
		        		       	
		        } 
		        
		        String l_stNode = "";
		        
		        //check if the node is the leaf node
		        if(l_iFlag == 1 || l_iCnt == l_vtListTree.size()-1){
		        	for(int l_iCount1 = 0 ; l_iCount1 < l_vtClimbTrailCt.size();
		        	                                            l_iCount1++){
		        		 l_stNode = l_stNode + 
		        		             l_vtClimbTrailCt.get(l_iCount1).toString();
		       		}
		        	l_stNode = Const.LEAF_NODE + l_stNode + Const.LEAF_NODE;
		        }
		        else{
		            for(int l_iCount1 = 0 ; l_iCount1 < l_vtClimbTrailCt.size();
		                                                    l_iCount1++){
		        	 	l_stNode = l_stNode + 
		        	 	             l_vtClimbTrailCt.get(l_iCount1).toString();
		        	}
		        	l_stNode = Const.LEAF_NODE + l_stNode;		        	
		        }
		        l_vtTemp.add(l_iCnt,l_stNode);
			}
			
			//this loop is used to build the tree
			for(int l_iCnt = 0 ; l_iCnt < l_vtListTree.size() ; l_iCnt++) { 
				// Storing Current node and next node data
				String l_stNtTemp = null;
				String l_stCtTemp = null;
				
				l_vtCurrentNode = ((Vector)l_vtListTree.get(l_iCnt));
				l_stCtTemp= l_vtTemp.get(l_iCnt).toString();
				
				if (l_iCnt < l_vtListTree.size() - 1) {
				
					l_vtNextNode = ((Vector)l_vtListTree.get(l_iCnt+1));	
					l_stNtTemp = l_vtTemp.get(l_iCnt+1).toString();
				}
				else {
					l_stNtTemp = l_vtTemp.get(l_iCnt).toString();
				}
				
				// Obtaining spaces image file path according to the 
				// position of node in tree
				
		    
  			    if(l_iIndent == 1) {
					l_stSpaceImg = (String) pageContext
						.getAttribute("SpaceIcon1");
				}
				else if(l_iIndent == 2) {
					l_stSpaceImg = (String) pageContext
						.getAttribute("SpaceIcon2");
				}
				else if(l_iIndent == 3) {
					l_stSpaceImg = (String) pageContext
						.getAttribute("SpaceIcon3");
				}
				else if(l_iIndent == 4) {
					l_stSpaceImg = (String) pageContext
						.getAttribute("SpaceIcon4");
				}
				else if(l_iIndent == 5) {
					l_stSpaceImg = (String) pageContext
						.getAttribute("SpaceIcon5");
				}
				else if(l_iIndent == 6) {
					l_stSpaceImg = (String) pageContext
						.getAttribute("SpaceIcon6");
				}
				else if(l_iIndent == 7) {
					l_stSpaceImg = (String) pageContext
						.getAttribute("SpaceIcon7");
				}
				else if(l_iIndent == 8) {
					l_stSpaceImg = (String) pageContext
						.getAttribute("SpaceIcon8");
				}
				else{
				    l_stSpaceImg = null;
				}
				 
			HsmUrlData l_objAltSelect = (HsmUrlData)l_vtCurrentNode.get(2);     // 800WA_WEBCONSOLE328 
			HsmUrlData l_objAltNotSelect = (HsmUrlData)l_vtCurrentNode.get(3);  // 800WA_WEBCONSOLE328
				
				String l_stNodeName =                                           // 800WA_WEBCONSOLE273
			       	l_vtCurrentNode.get(1).toString().replaceAll(" ","&nbsp;");	// 800WA_WEBCONSOLE273
			    %>                                                              <%-- 800WA_WEBCONSOLE293 --%>                                                             
			<%-- <input type = "hidden"                            
			           name = "<%= l_vtCurrentNode.get(0)+ "node" %>" 
			           value = "<%= l_vtCurrentNode.get(1) %>" /> --%>          <%-- 800WA_WEBCONSOLE293 --%>	<%-- 800WA_WEBCONSOLE321 --%>  	
			           
			     <input type = "hidden"                            
			           name = "<%= l_vtCurrentNode.get(0)+ "node" %>" 
			           value = "<%= CommonUtil.sanitize(
			                           l_vtCurrentNode.get(1).toString()) %>" /><%-- 800WA_WEBCONSOLE321 --%>  	       
			      <% 	                                                        // 800WA_WEBCONSOLE293
				// Check if the current node is the leaf node

				if (!l_stCtTemp.endsWith(Const.LEAF_NODE)) {
					// Appending the current node name to its parent node name
					// to form functional node name
					if ((l_sbNodeHierarchy.length() == 0)) {
						l_sbNodeHierarchy.append(l_vtCurrentNode.get(1)); 
					}
					else {
						l_sbNodeHierarchy.append(Const.SYMBOL_COMMA);
						l_sbNodeHierarchy.append(l_vtCurrentNode.get(1)); 
					}
					
		           %>
		
			        <% String l_stImgValue = l_stNtTemp + "img"; %>
					<%-- To display the number of spaces for the node --%>
								
					<% if(l_stSpaceImg != null){%>
					     <html:img src = "<%= l_stSpaceImg %>"/>
					<%  
					}
					else {
					     l_iIndent = 0;
					}%>
					<%-- "img" is appended to identify the plus/minus icon --%>
					<%-- To display the Plus icon for the parent nodes.
						 On click of Plus icon, treeMenu function is called --%>
						
			<%--	<img src = '<%= pageContext.getAttribute("PlusIcon").toString()%>' 
						  id = "<%= l_stImgValue %>"
						 border = "0" onclick = "javaScript:listTree('<%= l_stNtTemp %>', 
									  '<%= pageContext.getAttribute("PlusIcon") %>', 
									  '<%= pageContext.getAttribute("MinusIcon") %>',
									  '<%= l_vtCurrentNode.get(2).toString() %>',
									  '<%= l_vtCurrentNode.get(3).toString() %>')"/> --%>	<%-- 800WA_WEBCONSOLE328 --%>
					<img src = '<%= pageContext.getAttribute("PlusIcon").toString()%>' 
						  id = "<%= l_stImgValue %>"
						 border = "0" onclick = "javaScript:listTree('<%= l_stNtTemp %>', 
									  '<%= pageContext.getAttribute("PlusIcon") %>', 
									  '<%= pageContext.getAttribute("MinusIcon") %>',
									  '<%= l_vtCurrentNode.get(2).toString() %>',
									  '<%= l_vtCurrentNode.get(3).toString() %>',
								 '<%= l_objAltSelect.getAlt().toString() %>',
								 '<%= l_objAltNotSelect.getAlt().toString() %>')"/>	<%-- 800WA_WEBCONSOLE328 --%>				  

					<%-- To display the icon for each node --%>
					<%-- "imgNodeIcon" is appended to identify the unselected node icon --%>
				<%--<html:img src = '<%= l_vtCurrentNode.get(2).toString() %>' 
					styleId = "<%= l_stImgValue + "NodeIcon"%>" 
					alt = '<%= l_vtCurrentNode.get(3).toString() %>'/> --%>     <%-- 800WA_WEBCONSOLE328 --%>
					
					<html:img src = '<%= l_vtCurrentNode.get(2).toString() %>' 
					styleId = "<%= l_stImgValue + "NodeIcon"%>" 
					alt = '<%= l_objAltSelect.getAlt().toString() %>'/>         <%-- 800WA_WEBCONSOLE328 --%>
			        
			        <%-- get the action class and set it into the pageContext
			     			implicit object as an attribute" --%>        
			        <util:set name = "ActionClassName">
						<util:rewrite action = "groupDetail" />
					</util:set>					
					
					<%-- get the parent node function and set it into the pageContext
			     			implicit object as an attribute" --%>  			
		       <%-- <util:set name="parentNode">
					   	javascript:groupParentNode('<%= l_stNtTemp %>',
					   	'<%= pageContext.getAttribute("PlusIcon") %>',
					   	'<%= pageContext.getAttribute("MinusIcon") %>',
					   	'<%= l_vtCurrentNode.get(0)%>','<%=l_vtCurrentNode.get(1)%>',
					   	'<util:rewrite action="groupDetail"/>',
					   	'<%= l_vtCurrentNode.get(2).toString() %>',
					   	'<%= l_vtCurrentNode.get(3).toString() %>',
					   	'<%= Const.GROUP_DETAIL %>')
					</util:set> --%>                                            <%-- 800WA_WEBCONSOLE293 --%> 
					
			<%--    <util:set name="parentNode">
					   	javascript:groupParentNode('<%= l_stNtTemp %>',
					   	'<%= pageContext.getAttribute("PlusIcon") %>',
					   	'<%= pageContext.getAttribute("MinusIcon") %>',
					   	'<%= l_vtCurrentNode.get(0)%>',
					   	'<util:rewrite action="groupDetail"/>',
					   	'<%= l_vtCurrentNode.get(2).toString() %>',
					   	'<%= l_vtCurrentNode.get(3).toString() %>',
					   	'<%= Const.GROUP_DETAIL %>')
					</util:set>  --%>                                           <%-- 800WA_WEBCONSOLE293 --%> <%-- 800WA_WEBCONSOLE328 --%>
					
					<util:set name="parentNode">
					   	javascript:groupParentNode('<%= l_stNtTemp %>',
					   	'<%= pageContext.getAttribute("PlusIcon") %>',
					   	'<%= pageContext.getAttribute("MinusIcon") %>',
					   	'<%= l_vtCurrentNode.get(0)%>',
					   	'<util:rewrite action="groupDetail"/>',
					   	'<%= l_vtCurrentNode.get(2).toString() %>',
					   	'<%= l_vtCurrentNode.get(3).toString() %>',
					   	'<%= Const.GROUP_DETAIL %>',
					   	'<%= l_objAltSelect.getAlt().toString() %>',
					   	'<%= l_objAltNotSelect.getAlt().toString() %>')
					</util:set>                                                 <%-- 800WA_WEBCONSOLE328 --%> 
					
					
					<%-- On click of node name, parent function is called --%>
			<%--	<html:link styleId = "<%=l_vtCurrentNode.get(0).toString()%>" 
					    styleClass = "middle" href = '#' onclick = 
					 "<%= pageContext.getAttribute("parentNode").toString()%>"> --%>	<%-- 800WA_WEBCONSOLE256 --%>	<%-- 800WA_WEBCONSOLE270 --%>	<%-- 800WA_WEBCONSOLE353 --%>
					
			<%--	<html:link styleId = "<%=l_vtCurrentNode.get(0).toString()%>" 
					    styleClass = "middle" href = '#' 
					    onmouseup = "submitForm()"  onmousedown =   
					"<%= pageContext.getAttribute("parentNode").toString()%>" 
					onkeydown = 
					   "<%= pageContext.getAttribute("parentNode").toString()%>" 
					onkeyup = "submitThisForm(window.event)"
					 onfocus = "focusText()" > --%>                             <%-- 800WA_WEBCONSOLE353 --%>	<%-- 800WA_WEBCONSOLE367 --%>
					 
			<%--	 <html:link styleId = "<%=l_vtCurrentNode.get(0).toString()%>" 
					    styleClass = "middle" href = '#' 
					    onmouseup = "submitForm()"  onmousedown =   
					"<%= pageContext.getAttribute("parentNode").toString()%>" 
					onkeydown = 
					   "<%= pageContext.getAttribute("parentNode").toString()%>" 
					onkeyup = "submitThisForm(window.event)">    --%>           <%-- 800WA_WEBCONSOLE367 --%>	<%-- 800WA_WEBCONSOLE378 --%>
					
<%--				<html:link styleId = "<%=l_vtCurrentNode.get(0).toString()%>" 
					    styleClass = "middle" 
					    href = "<%= pageContext.getAttribute("parentNode").toString()%>" 
					    onmouseup = "submitForm()"  onmousedown =   
					"<%= pageContext.getAttribute("parentNode").toString()%>" 
					onkeydown = 
					   "<%= pageContext.getAttribute("parentNode").toString()%>" 
					onkeyup = "submitThisForm(window.event)">      --%>         <%-- 800WA_WEBCONSOLE378 --%> <%-- 800WA_WEBCONSOLE406 --%>

					<html:link styleId = "<%=l_vtCurrentNode.get(0).toString()%>" 
					    styleClass = "middle" 
					    href = "#link"
					    onclick = 
				    "<%= pageContext.getAttribute("parentNode").toString()%>">  <%-- 800WA_WEBCONSOLE406 --%>
						<%= l_stNodeName %>                                     <%-- 800WA_WEBCONSOLE273 --%> 
					</html:link>
					<br>
								
					<%-- Check if l_stNtTemp node is the leaf node --%>
					        <% if ((l_stNtTemp.endsWith(Const.LEAF_NODE)) || 
									(l_stNtTemp.length()) > (l_stCtTemp.length()))  {
					    		// Indentation is increased.
								l_iIndent = l_iIndent + 1 ; %>
								<%-- Generate a DIV tag for l_stTemp node --%>
								<div id ="<%= l_stNtTemp %>" style="display:none">
							<% }
				}
				else
				{ 
				
					// Storing the current leaf node name 
					l_stLeafNode = l_stCtTemp; %>
					
					<%--sanitise the leaff node abd set it into the pageContext
					    implicit object as an attribute --%>
					<util:set name = "LeafNode">
						<util:sanitize>
							<%= l_stLeafNode %>
						</util:sanitize>
					</util:set>
										
					<%-- To display the number of spaces for the node --%>
					
					<% if (l_stSpaceImg != null){%>
						
					<html:img src="<%= l_stSpaceImg%>"/>	
	                <html:img src=
	                 "<%= pageContext.getAttribute("SpaceIcon1").toString()%>"/>
	                      
                    <%}%>
					<%-- To display the icon for each node --%>
			<%--	<html:img src = '<%= l_vtCurrentNode.get(2).toString() %>' 					
					alt = '<%= l_vtCurrentNode.get(3).toString() %>'/> --%>     <%-- 800WA_WEBCONSOLE328 --%>
					
					<html:img src = '<%= l_vtCurrentNode.get(2).toString() %>' 					
					alt = '<%= l_objAltSelect.getAlt().toString() %>'/>         <%-- 800WA_WEBCONSOLE328 --%>
                     
                    <%-- get the groupTargetNode function and set it into the
               			 pageContext implicit object as an attribute" --%>    
               <%-- <util:set name="targetNode">
				       javascript:groupTargetNode('<%=l_vtCurrentNode.get(0)%>',
				       '<%= l_vtCurrentNode.get(1)%>',
				       '<util:rewrite action="groupDetail"/>',
				       '<%= Const.GROUP_DETAIL %>')
				    </util:set> --%>                                            <%-- 800WA_WEBCONSOLE293 --%>

				    
				    <util:set name="targetNode">
				       javascript:groupTargetNode('<%=l_vtCurrentNode.get(0)%>',
				       '<util:rewrite action="groupDetail"/>',
				       '<%= Const.GROUP_DETAIL %>')

				    </util:set>                                                 <%-- 800WA_WEBCONSOLE293 --%>
				    
					<%--On click of node name,Detail window is opened --%>
		<%--		<html:link  styleId = "<%=l_vtCurrentNode.get(0).toString()%>" 
					styleClass = "middle" href = '#' onclick =  
					"<%= pageContext.getAttribute("targetNode").toString()%>" >--%>	 <%-- 800WA_WEBCONSOLE256 --%>	<%-- 800WA_WEBCONSOLE270 --%>	<%-- 800WA_WEBCONSOLE353 --%>
					
		<%--    	<html:link  styleId = "<%=l_vtCurrentNode.get(0).toString()%>" 
					styleClass = "middle" href = '#' 
					onmouseup = "submitForm()" onmousedown =   
					"<%= pageContext.getAttribute("targetNode").toString()%>" 
					onkeydown = 
					   "<%= pageContext.getAttribute("targetNode").toString()%>" 
					onkeyup = "submitThisForm(window.event)"
					onfocus = "focusText()" > --%>                              <%-- 800WA_WEBCONSOLE353 --%>	<%-- 800WA_WEBCONSOLE367 --%>
					
	    <%--		<html:link  styleId = "<%=l_vtCurrentNode.get(0).toString()%>" 
					styleClass = "middle" href = '#' 
					onmouseup = "submitForm()" onmousedown =   
					"<%= pageContext.getAttribute("targetNode").toString()%>" 
					onkeydown = 
					   "<%= pageContext.getAttribute("targetNode").toString()%>" 
					onkeyup = "submitThisForm(window.event)">     --%>          <%-- 800WA_WEBCONSOLE367 --%>	<%-- 800WA_WEBCONSOLE378 --%>
					
<%--				<html:link  styleId = "<%=l_vtCurrentNode.get(0).toString()%>" 
					styleClass = "middle" 
					href = "<%= pageContext.getAttribute("targetNode").toString()%>" 
					onmouseup = "submitForm()" onmousedown =   
					"<%= pageContext.getAttribute("targetNode").toString()%>" 
					onkeydown = 
					   "<%= pageContext.getAttribute("targetNode").toString()%>" 
					onkeyup = "submitThisForm(window.event)">       --%>        <%-- 800WA_WEBCONSOLE378 --%> <%-- 800WA_WEBCONSOLE406 --%>

					<html:link  styleId = "<%=l_vtCurrentNode.get(0).toString()%>" 
					styleClass = "middle" 
					href = "#link"
					onclick = 
					"<%= pageContext.getAttribute("targetNode").toString()%>" > <%-- 800WA_WEBCONSOLE406 --%>
						<%= l_stNodeName  %>                                    <%-- 800WA_WEBCONSOLE273 --%>
					</html:link>
					<br>
				
					<% 
					// Check if l_stNttemp node is not the leaf node
					
					if (!(l_stNtTemp.endsWith(Const.LEAF_NODE))) {	
						// Generate Closing DIV tag
						for (int l_iTempCnt = l_stNtTemp.length()+1 ; 
						l_iTempCnt < (l_stCtTemp.length()); l_iTempCnt ++ ) {
							l_iIndent = l_iIndent - 1; 
							%>
							</div> 
					<% } 
						l_sbNodeHierarchy.delete(0,l_sbNodeHierarchy.length());
					}
					else if ((l_stNtTemp.length() < l_stCtTemp.length())) {
						
						// Generate Closing DIV tag
						for (int l_iTempCnt = l_stNtTemp.length()+1 ; 
						l_iTempCnt <= (l_stCtTemp.length()); l_iTempCnt ++ ) {
							l_iIndent = l_iIndent - 1; 
					%>
							</div>
					<% }
						l_sbNodeHierarchy.delete(0,l_sbNodeHierarchy.length());
					}
 
				}
			}
		%>
    </div>                                                                      <%-- 800WA_WEBCONSOLE406 --%>
    </div>																	    <%-- 800WA_WEBCONSOLE457 --%>    
	</body>

<script>
    var l_varName = new Array();
   <%                                                                           // 800WA_WEBCONSOLE367
	Vector l_vtTreeElement = new Vector();                                      // 800WA_WEBCONSOLE367
	for(int l_iCount=0; l_iCount<l_vtListTree.size(); l_iCount++){              // 800WA_WEBCONSOLE367
	   l_vtTreeElement = (Vector)l_vtListTree.get(l_iCount);%>                  <%-- 800WA_WEBCONSOLE367 --%>
       l_varName[<%=l_iCount%>] = '<%=l_vtTreeElement.get(0)%>';                <%-- 800WA_WEBCONSOLE367 --%> 
   <%}%>                                                                        <%-- 800WA_WEBCONSOLE367 --%>
	document.forms["0"]["groupId"].value = 
	                   parent.frames["0"].document.forms["0"]["groupId"].value;
   function enable()                                                            // 800WA_WEBCONSOLE457
   {                                                                            // 800WA_WEBCONSOLE457
       document.getElementById("treeData").style.visibility = 'visible';        // 800WA_WEBCONSOLE457
   }                                                                            // 800WA_WEBCONSOLE457
   addOnloadEvent(enable);                                                      // 800WA_WEBCONSOLE457
</script>	
</html:html>