
  	  <script type="text/javascript">
<!--
function myPopup() {
window.open( "tree2.jsp?lang=EN", "myWindow", "height = 700, width = 1000" )
}
//-->
</script>
<script type="text/javascript">
<!--
function vocPopup() {
	window.open("treevoc.jsp?lang=EN", "myWindow", "height = 700, width = 1000" );
}
//-->
</script>

<h:panelGrid border="1" columns="1" styleClass="gridstyle" style="height: 64px; width: 574px">
		
<h:panelGrid border="0" columns="1"> 
		
		<a href="javascript: vocPopup()" class="button">VOC</a>
		<a href="javascript: myPopup()" class="button">CPV</a>

		<h:outputText value="#{CPVcodesPage.codesReturned}" rendered="false"/>
		<%
		if(session.getAttribute("Codescpv")!=null)
		org.ellectra.gui.utils.JSFUtils.storeOnSession(javax.faces.context.FacesContext.getCurrentInstance(), "CPVCodes", (String)session.getAttribute("Codescpv")); 
		%>
		<h:outputText value="#{CPVcodesPage.codesReturned}" rendered="true"/>
		
		
		<h:outputText value="#{CPVcodesPage.voccodesReturned}" rendered="false"/>
		<%=session.getAttribute("Codesvoc")%>
		<%
		if(session.getAttribute("Codesvoc")!=null)
		org.ellectra.gui.utils.JSFUtils.storeOnSession(javax.faces.context.FacesContext.getCurrentInstance(), "VOCCodes", (String)session.getAttribute("Codesvoc")); 
		session.setAttribute("Codes22","<option>"+" "+"</option>");
		session.setAttribute("Codesvoc","");
		%>
		<h:outputText value="#{CPVcodesPage.voccodesReturned}" rendered="true"/>
		
		
		<h:dataTable id="codesTable" rows="#{CPVcodesPage.cpvNum}" value="#{CPVcodesPage.cpvCodes}" 
		rendered="#{CPVcodesPage.showTable}" var="row" binding="#{CPVcodesPage.data}">
			
			<h:column id="Info">
				<h:outputLabel for="" value="" style="font-weight: bold"></h:outputLabel>
			</h:column> 
			
			<h:column id="MainVocabulary">
				<f:facet name="header">
					<h:outputLabel for="" value="Main vocabulary" style="font-weight: bold"></h:outputLabel>
				</f:facet>
				<h:outputText value="#{row.codeNumber}"/>
			</h:column> 
			
			<h:column id="Rest">
				<f:facet name="header">
					<h:outputLabel for="" value="Supplementary vocabulary" style="font-weight: bold"></h:outputLabel>
				</f:facet>
				<h:inputText value="#{row.vocCodes}" styleClass="textboxstyle" />
			</h:column> 
			
			<h:column id="VocButtons">
				<f:facet name="header">
					<h:outputLabel for="" value="(if applicable)" style="font-weight: bold"></h:outputLabel>
				</f:facet>
				<h:commandButton value="VOC" 
				action="#{CPVcodesPage.editVocAction}" 
				styleClass="buttonstyle"/>
			</h:column> 
			
			<h:column id="CodeName">
				<h:outputLabel for="" value="#{row.codeName}" style="font-style: italic"></h:outputLabel>
			</h:column> 
		
		</h:dataTable>
		
	
		
</h:panelGrid>
		
</h:panelGrid>
  	  
  	  