anchor.diff:  		   }//End for
   	 	 %>	
   	}//End Function
  +	
   </script>
   </head>
   
  
positive.code: 	<table>
  		<tr><td>
  			<div id="treebox" style="width:400; height:250; overflow:auto;"/>
  		</td></tr>
  	</table>
  </body>
  
  
negative.code: %>
  <head>
  <script>
   //Global object for dhtmlXTreeObject.
   var tree;
   
   	//Function to obtain the userdata from selected tree node 	
  	function obtainUserData()
  	{			
  		var strUserData = "";		
  		strUserData = tree.getAllChecked();
  
  		//If strUserData contains more than one checked nodes
  		if(strUserData.indexOf(',') != -1)
  		{
  			alert("Select only one node");
  		}
  		else
  		{
  			var len = strUserData.length;
  			data = strUserData.substring(0,len-2);
  			chkDataClassType(data);
  		}		
  	}
  	
  	//Function to check the specimenclass and type of the selected node to set it in the dropdown.
  	function chkDataClassType(data)
  	{
  		var strNode = "";
  		<%
  		for (Iterator iter = dataList.iterator(); iter.hasNext();) 
          {	
          %>
  	        <%
  	        	SpecimenTreeNode treeNode = (SpecimenTreeNode) iter.next();
  	        	Long propertyValue = treeNode.getIdentifier();
  	        %>
      		strNode = "<%= treeNode.getValue() %>";
          	if(strNode == data)
          	{
          		//Check if userdata is parent node
          		<% String nodeId = treeNode.getValue() + "_"+ treeNode.getIdentifier().toString(); %>
  				var parentObj = tree.getParentId("<%= nodeId %>");     		        			
          		if(parentObj != 0)
          		{
  					//Obtain from nodes in the vector        		
  	        		var nodetype = "<%= treeNode.getType() %>";
  	        		var nodeClass = "<%= treeNode.getSpecimenClass() %>";
  	
  	        		//Obtain from request object
  	        		var strNodeType = "<%= request.getAttribute(Constants.SPECIMEN_TYPE) %>"; 
  	        		var strNodeClass = "<%= request.getAttribute(Constants.SPECIMEN_CLASS) %>";
  					
  					//Check If selected node is not a parent node
  	        		if(nodetype == strNodeType && nodeClass == strNodeClass)
  	        		{       				
  	        			var propertyName = "<%= request.getAttribute(Constants.PROPERTY_NAME) %>";
  	        			var propertyValue = "<%= propertyValue %>";
  	        			setDropDownValue(propertyName,propertyValue,data);
  	        		}
  	        	}
  	        	else
  	        	{
  	        		alert("Parent node cannot be selected");	        			
  	        	}
          	}//End If
          <%        	
          } //End for
  		%>
  	}
  	
  	//Set the value in the dropdown
  	function setDropDownValue(propertyName,propertyValue,data)
  	{				
  		for (var i=0;i < opener.document.forms[0].elements.length;i++)
  	    {						
  	    	if (opener.document.forms[0].elements[i].name == propertyName)
  			{										
  					for(var j=0;j<opener.document.forms[0].elements[i].options.length;j++)
  					{
  						if(opener.document.forms[0].elements[i].options[j].value == propertyValue)
  						{										
  							opener.document.forms[0].elements[i].selectedIndex = j;															
  							break;																					
  						}
  					}
  			}			
  	    }
  	    window.close();
  	}
  
  	function displayTree()
  	{		
  		document.getElementById("treebox").innerHTML ="";
  		tree=new dhtmlXTreeObject("treebox","100%","100%",0);
  		tree.setImagePath("dhtml_comp/imgs/");
  		tree.enableCheckBoxes(true);	
  		//tree.setOnDblClickHandler(obtainUserData);	
  		<% 
          for (Iterator iter = dataList.iterator(); iter.hasNext();) 
          {
  