
  	  <script type="text/javascript">
<!--
function cpvPopup() {
window.open( "tree2.jsp?lang=EN", "myWindow", "height = 700, width = 1000" )
}
//-->
</script>
<script type="text/javascript">
<!--
function vocPopup(btn) {
	rowName = btn.name;
	cutPoint = rowName.indexOf(_);
	textId = rowName.substring(0, cutPoint);
	
	urlstr = "treevoc.jsp?lang=EN&row="+textId;
	
	window.open(urlstr , "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: cpvPopup()" 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.vocRow}" rendered="false"/>
		<%=session.getAttribute("row") %>
		<%
		if(session.getAttribute("row")!=null)
		org.ellectra.gui.utils.JSFUtils.storeOnSession(javax.faces.context.FacesContext.getCurrentInstance(), "VOCrow", (String)session.getAttribute("row")); 
		session.setAttribute("row","");
		%>
		<h:outputText value="#{CPVcodesPage.vocRow}" 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:panelGrid border="0" columns="5" rendered="#{CPVcodesPage.showTable}" >
			<f:verbatim>&nbsp;</f:verbatim>
			<h:outputLabel for="" value="Main vocabulary" style="font-weight: bold"/>
			<h:outputLabel for="" value="Supplementary vocabulary" style="font-weight: bold"/>
			<h:outputLabel for="" value="(if applicable)" style="font-style: italic"/>
			<f:verbatim>&nbsp;</f:verbatim>
			
			<h:outputLabel for="" value="Main object" style="font-weight: bold" rendered="#{CPVcodesPage.showCode[0]}"/>
			<h:inputText value="#{CPVcodesPage.codes[0]}" readonly="true" rendered="#{CPVcodesPage.showCode[0]}"/>
			<h:inputText id="voc0" value="#{CPVcodesPage.vocList[0]}" rendered="#{CPVcodesPage.showCode[0]}"/>
			<h:commandButton id="voc0_btn" value="VOC" type="reset" 
					onclick="vocPopup(this)"
					styleClass="buttonstyle" rendered="#{CPVcodesPage.showCode[0]}"/>
			<h:outputText value="#{CPVcodesPage.names[0]}" rendered="#{CPVcodesPage.showCode[0]}"/>
			
			<h:outputLabel for="" value="Additional objects" style="font-weight: bold" rendered="#{CPVcodesPage.showCode[1]}"/>
			<h:inputText value="#{CPVcodesPage.codes[1]}" readonly="true" rendered="#{CPVcodesPage.showCode[1]}"/>
			<h:inputText id="voc1" value="#{CPVcodesPage.vocList[1]}" rendered="#{CPVcodesPage.showCode[1]}"/>
			<h:commandButton id="voc1_btn" value="VOC" type="reset" 
					onclick="vocPopup(this)"
					styleClass="buttonstyle" rendered="#{CPVcodesPage.showCode[1]}"/>
			<h:outputText value="#{CPVcodesPage.names[1]}" rendered="#{CPVcodesPage.showCode[1]}"/>
			
			<f:verbatim>&nbsp;</f:verbatim>
			<h:inputText value="#{CPVcodesPage.codes[2]}" readonly="true" rendered="#{CPVcodesPage.showCode[2]}"/>
			<h:inputText id="voc2" value="#{CPVcodesPage.vocList[2]}" rendered="#{CPVcodesPage.showCode[2]}"/>
			<h:commandButton id="voc2_btn" value="VOC" type="reset" 
					onclick="vocPopup(this)"
					styleClass="buttonstyle" rendered="#{CPVcodesPage.showCode[2]}"/>
			<h:outputText value="#{CPVcodesPage.names[2]}" rendered="#{CPVcodesPage.showCode[2]}"/>
			
			<f:verbatim>&nbsp;</f:verbatim>
			<h:inputText value="#{CPVcodesPage.codes[3]}" readonly="true" rendered="#{CPVcodesPage.showCode[3]}"/>
			<h:inputText id="voc3" value="#{CPVcodesPage.vocList[3]}" rendered="#{CPVcodesPage.showCode[3]}"/>
			<h:commandButton id="voc3_btn" value="VOC" type="reset" 
					onclick="vocPopup(this)"
					styleClass="buttonstyle" rendered="#{CPVcodesPage.showCode[3]}"/>
			<h:outputText value="#{CPVcodesPage.names[3]}" rendered="#{CPVcodesPage.showCode[3]}"/>
			
			<f:verbatim>&nbsp;</f:verbatim>
			<h:inputText value="#{CPVcodesPage.codes[4]}" readonly="true" rendered="#{CPVcodesPage.showCode[4]}"/>
			<h:inputText id="voc4" value="#{CPVcodesPage.vocList[4]}" rendered="#{CPVcodesPage.showCode[4]}"/>
			<h:commandButton id="voc4_btn" value="VOC" type="reset" 
					onclick="vocPopup(this)"
					styleClass="buttonstyle" rendered="#{CPVcodesPage.showCode[4]}"/>
			<h:outputText value="#{CPVcodesPage.names[4]}" rendered="#{CPVcodesPage.showCode[4]}"/>
			
			<f:verbatim>&nbsp;</f:verbatim>
			<h:inputText value="#{CPVcodesPage.codes[5]}" readonly="true" rendered="#{CPVcodesPage.showCode[5]}"/>
			<h:inputText id="voc5" value="#{CPVcodesPage.vocList[5]}" rendered="#{CPVcodesPage.showCode[5]}"/>
			<h:commandButton id="voc5_btn" value="VOC" type="reset" 
					onclick="vocPopup(this)"
					styleClass="buttonstyle" rendered="#{CPVcodesPage.showCode[5]}"/>
			<h:outputText value="#{CPVcodesPage.names[5]}" rendered="#{CPVcodesPage.showCode[5]}"/>
			
			<f:verbatim>&nbsp;</f:verbatim>
			<h:inputText value="#{CPVcodesPage.codes[6]}" readonly="true" rendered="#{CPVcodesPage.showCode[6]}"/>
			<h:inputText id="voc6" value="#{CPVcodesPage.vocList[6]}" rendered="#{CPVcodesPage.showCode[6]}"/>
			<h:commandButton id="voc6_btn" value="VOC" type="reset" 
					onclick="vocPopup(this)"
					styleClass="buttonstyle" rendered="#{CPVcodesPage.showCode[6]}"/>
			<h:outputText value="#{CPVcodesPage.names[6]}" rendered="#{CPVcodesPage.showCode[6]}"/>
			
			<f:verbatim>&nbsp;</f:verbatim>
			<h:inputText value="#{CPVcodesPage.codes[7]}" readonly="true" rendered="#{CPVcodesPage.showCode[7]}"/>
			<h:inputText id="voc7" value="#{CPVcodesPage.vocList[7]}" rendered="#{CPVcodesPage.showCode[7]}"/>
			<h:commandButton id="voc7_btn" value="VOC" type="reset" 
					onclick="vocPopup(this)"
					styleClass="buttonstyle" rendered="#{CPVcodesPage.showCode[7]}"/>
			<h:outputText value="#{CPVcodesPage.names[7]}" rendered="#{CPVcodesPage.showCode[7]}"/>
			
			<f:verbatim>&nbsp;</f:verbatim>
			<h:inputText value="#{CPVcodesPage.codes[8]}" readonly="true" rendered="#{CPVcodesPage.showCode[8]}"/>
			<h:inputText id="voc8" value="#{CPVcodesPage.vocList[8]}" rendered="#{CPVcodesPage.showCode[8]}"/>
			<h:commandButton id="voc8_btn" value="VOC" type="reset" 
					onclick="vocPopup(this)"
					styleClass="buttonstyle" rendered="#{CPVcodesPage.showCode[8]}"/>
			<h:outputText value="#{CPVcodesPage.names[8]}" rendered="#{CPVcodesPage.showCode[8]}"/>
			
			<f:verbatim>&nbsp;</f:verbatim>
			<h:inputText value="#{CPVcodesPage.codes[9]}" readonly="true" rendered="#{CPVcodesPage.showCode[9]}"/>
			<h:inputText id="voc9" value="#{CPVcodesPage.vocList[9]}" rendered="#{CPVcodesPage.showCode[9]}"/>
			<h:commandButton id="voc9_btn" value="VOC" type="reset" 
					onclick="vocPopup(this)"
					styleClass="buttonstyle" rendered="#{CPVcodesPage.showCode[9]}"/>
			<h:outputText value="#{CPVcodesPage.names[9]}" rendered="#{CPVcodesPage.showCode[9]}"/>
		</h:panelGrid>
		
		
</h:panelGrid>
		
</h:panelGrid>
  	  
  	  