<%@ taglib uri="/tags/struts-bean-el" prefix="bean-el" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html-el" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/tags/fw" prefix="fw" %>
<%@ taglib uri="/tags/jstl/core-rt" prefix="c-rt" %>
<%@ taglib uri="/tags/esr-core" prefix="esrcore" %>
<%@ page import='gov.va.med.esr.ui.report.action.ReportConstants' %>
<%@ page import='gov.va.med.esr.ui.report.action.ReportScheduleInfoForm' %>
<%@ page import='gov.va.med.esr.common.model.lookup.ReportPeriodType' %>
<%@ page import='gov.va.med.esr.common.model.lookup.ReportFacilityDisplayBy' %>
<%@ page import='gov.va.med.esr.common.model.lookup.ReportFormat' %>
<%@ page import='java.lang.String' %>

    <c:set var="availableText"><bean-el:message key="label.available" /></c:set>
    <c:set var="selectedText"><bean-el:message key="label.selected" /></c:set>
    <c:set var="reportFacilityDisplayByVisn"><%=ReportFacilityDisplayBy.CODE_VISN.getName()%></c:set>
    <c:set var="reportFacilityDisplayByVisnFacility"><%=ReportFacilityDisplayBy.CODE_VISN_SITE.getName()%></c:set>
    <c:set var="reportFacilityDisplayByFacility"><%=ReportFacilityDisplayBy.CODE_SITE.getName()%></c:set>
    <c:set var="reportFacilityDisplayByVamc"><%=ReportFacilityDisplayBy.CODE_VAMC.getName()%></c:set>
    <c:set var="reportFacilityDisplayByVamcFacility"><%=ReportFacilityDisplayBy.CODE_VAMC_SITE.getName()%></c:set>
    <c:set var="reportFacilityDisplayByVisnVamc"><%=ReportFacilityDisplayBy.CODE_VISN_VAMC.getName()%></c:set>
    <c:set var="reportFacilityDisplayByVisnVamcFacility"><%=ReportFacilityDisplayBy.CODE_VISN_VAMC_SITE.getName()%></c:set> 
    <c:set var="facilitiesParam"><%=ReportConstants.REPORT_PARAM_FACILITIES%></c:set>
    <c:set var="visnParam"><%=ReportConstants.REPORT_PARAM_VISN%></c:set>
    <c:set var="reportParamConfig" value="${reportParamConfigMap[reportInfoForm.reportIdNoSpace]}" />
    <c:set var="noVisnText" > <bean-el:message key="label.report.noVISN" /> </c:set>

    <c:if test="${reportInfoForm.reportIdNoSpace == 'P8G4'}">
	<c:set var="onClickToFacilityJavascript">; show('reportFormatId'); setSelectionForRadioButtonCollection('reportFormat','<%=ReportFormat.SUMMARY.getCode()%>')</c:set>
	<c:set var="onClickAwayFromFacilityJavascript">; hide('reportFormatId'); setSelectionForRadioButtonCollection('reportFormat','<%=ReportFormat.SUMMARY.getCode()%>')</c:set>
    </c:if>

    <c:if test="${reportParamConfig[facilitiesParam] != null }">   
	    <tr><td colspan="3">&nbsp;</td></tr>
	    <tr>
		<c:choose>
			<c:when test="${reportInfoForm.reportIdNoSpace == 'VOA01'}">
				<td class="moduleLabel">
					<fw:label property="facilityDisplayBy" forId="facilityDisplayById">
						<bean-el:message key="label.required.prefix" />&nbsp;<bean-el:message key="label.report.facilities" />:
					</fw:label>
				</td>
			</c:when>
			<c:otherwise>
				<td class="moduleLabel"><bean-el:message key="label.required.prefix" />&nbsp;<bean-el:message key="label.report.facilities" />:</td>
				<td class="moduleValue" colspan="2">
					<fw:label property="facilityDisplayBy" forId="facilityDisplayById">
						<c:if test="${reportInfoForm.reportIdNoSpace != 'IV5'}"><bean-el:message key="label.report.displaySelectionListBy" /></c:if>:
					</fw:label>
				</td>
			</c:otherwise>
		</c:choose>						
		</tr>
		<tr>
		<td></td>
		<td class="moduleValue" colspan="2">
		  <table border="0" cellpadding="0" cellspacing="0">
		  <c:set var="facilitiesNoneText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.facilities"/>&nbsp;(None)</c:set>
		  <c:set var="facilitiesVisnText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.facilities"/>&nbsp;(<esrcore:displayLookupValue lookupType="gov.va.med.esr.common.model.lookup.ReportFacilityDisplayBy" name="reportFacilityDisplayByVisn" />)</c:set>
		  <c:set var="facilitiesVisnFacText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.facilities"/>&nbsp;(<esrcore:displayLookupValue lookupType="gov.va.med.esr.common.model.lookup.ReportFacilityDisplayBy" name="reportFacilityDisplayByVisnFacility" />)</c:set>
		  <c:set var="facilitiesFacText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.facilities"/>&nbsp;(<esrcore:displayLookupValue lookupType="gov.va.med.esr.common.model.lookup.ReportFacilityDisplayBy" name="reportFacilityDisplayByFacility" />)</c:set>
			<c:choose>
				<c:when test="${reportInfoForm.reportIdNoSpace == 'IV5'}">
					<tr>
                        <html-el:hidden property="facilityDisplayBy" styleId="facilityDisplayById" value="${reportFacilityDisplayByFacility}"/>
					</tr>
				</c:when>
				<c:otherwise>
				  <tr>
				  <c:if test="${reportInfoForm.reportIdNoSpace != 'VOA01'}">
					<td class="moduleValue" nowrap><html-el:radio title="${facilitiesNoneText}" property="facilityDisplayBy" styleId="facilityDisplayById_none" onclick="selectDisplayFacilityBy('')${onClickAwayFromFacilityJavascript}" value=""/>
					<fw:label property="facilities" forId="facilityDisplayById_none">None</fw:label></td>
				  </c:if>
				  
					<td class="moduleValue" nowrap><html-el:radio title="${facilitiesVisnText}" property="facilityDisplayBy" styleId="facilityDisplayById_visn" onclick="selectDisplayFacilityBy('${reportFacilityDisplayByVisn}')${onClickAwayFromFacilityJavascript}" value="${reportFacilityDisplayByVisn}" />
					<fw:label property="facilities" forId="facilityDisplayById_visn"><esrcore:displayLookupValue lookupType="gov.va.med.esr.common.model.lookup.ReportFacilityDisplayBy" name="reportFacilityDisplayByVisn" /></fw:label></td>
					
				  <c:if test="${reportInfoForm.reportIdNoSpace != 'EED6'}">
					<td class="moduleValue" nowrap>			
						<html-el:radio title="${facilitiesVisnFacText}" property="facilityDisplayBy" styleId="facilityDisplayById_VisnFacText" onclick="selectDisplayFacilityBy('${reportFacilityDisplayByVisnFacility}')${onClickAwayFromFacilityJavascript}" value="${reportFacilityDisplayByVisnFacility}" />
						<fw:label property="facilities" forId="facilityDisplayById_VisnFacText"><esrcore:displayLookupValue lookupType="gov.va.med.esr.common.model.lookup.ReportFacilityDisplayBy" name="reportFacilityDisplayByVisnFacility" /></fw:label>
					</td>
				  </c:if>
				    
				  <c:if test="${reportInfoForm.reportIdNoSpace != 'EED3'}">
					<td class="moduleValue" nowrap>
				        <html-el:radio title="${facilitiesFacText}" property="facilityDisplayBy" styleId="facilityDisplayById_FacText" onclick="selectDisplayFacilityBy('${reportFacilityDisplayByFacility}')${onClickToFacilityJavascript}" value="${reportFacilityDisplayByFacility}" />
				        <fw:label property="facilities" forId="facilityDisplayById_FacText"><esrcore:displayLookupValue lookupType="gov.va.med.esr.common.model.lookup.ReportFacilityDisplayBy" name="reportFacilityDisplayByFacility" /></fw:label>
					</td>
				  </c:if>				   
				  </tr>
				  <c:if test="${reportInfoForm.reportIdNoSpace == 'EED6'}">
					<c:set var="facilitiesVamcText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.facilities"/>&nbsp;(<esrcore:displayLookupValue lookupType="gov.va.med.esr.common.model.lookup.ReportFacilityDisplayBy" name="reportFacilityDisplayByVamc" />)</c:set>
					<c:set var="facilitiesVamcFacText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.facilities"/>&nbsp;(<esrcore:displayLookupValue lookupType="gov.va.med.esr.common.model.lookup.ReportFacilityDisplayBy" name="reportFacilityDisplayByVamcFacility" />)</c:set>
					<c:set var="facilitiesVisnVamcText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.facilities"/>&nbsp;(<esrcore:displayLookupValue lookupType="gov.va.med.esr.common.model.lookup.ReportFacilityDisplayBy" name="reportFacilityDisplayByVisnVamc" />)</c:set>
					<c:set var="facilitiesVisnVamcFacText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.facilities"/>&nbsp;(<esrcore:displayLookupValue lookupType="gov.va.med.esr.common.model.lookup.ReportFacilityDisplayBy" name="reportFacilityDisplayByVisnVamcFacility" />)</c:set>
					<tr>
					<td class="moduleValue" nowrap><html-el:radio title="${facilitiesVamcText}" property="facilityDisplayBy" styleId="facilityDisplayById_VamcText" onclick="selectDisplayFacilityBy('${reportFacilityDisplayByVamc}')" value="${reportFacilityDisplayByVamc}" />
					<fw:label property="facilities" forId="facilityDisplayById_VamcText"><esrcore:displayLookupValue lookupType="gov.va.med.esr.common.model.lookup.ReportFacilityDisplayBy" name="reportFacilityDisplayByVamc" /></fw:label></td>
					<td class="moduleValue" nowrap><html-el:radio title="${facilitiesVamcFacText}" property="facilityDisplayBy" styleId="facilityDisplayById_VamcFacText" onclick="selectDisplayFacilityBy('${reportFacilityDisplayByVamcFacility}')" value="${reportFacilityDisplayByVamcFacility}" />
					<fw:label property="facilities" forId="facilityDisplayById_VamcFacText"><esrcore:displayLookupValue lookupType="gov.va.med.esr.common.model.lookup.ReportFacilityDisplayBy" name="reportFacilityDisplayByVamcFacility" /></fw:label></td>
					<td class="moduleValue" nowrap><html-el:radio title="${facilitiesVisnVamcText}" property="facilityDisplayBy" styleId="facilityDisplayById_VisnVamcText" onclick="selectDisplayFacilityBy('${reportFacilityDisplayByVisnVamc}')" value="${reportFacilityDisplayByVisnVamc}" />
					<fw:label property="facilities" forId="facilityDisplayById_VisnVamcText"><esrcore:displayLookupValue lookupType="gov.va.med.esr.common.model.lookup.ReportFacilityDisplayBy" name="reportFacilityDisplayByVisnVamc" /></fw:label></td>
					<td class="moduleValue" nowrap><html-el:radio title="${facilitiesVisnVamcFacText}" property="facilityDisplayBy" styleId="facilityDisplayById_VisnVamcFacText" onclick="selectDisplayFacilityBy('${reportFacilityDisplayByVisnVamcFacility}')" value="${reportFacilityDisplayByVisnVamcFacility}"/>
					<fw:label property="facilities" forId="facilityDisplayById_VisnVamcFacText"><esrcore:displayLookupValue lookupType="gov.va.med.esr.common.model.lookup.ReportFacilityDisplayBy" name="reportFacilityDisplayByVisnVamcFacility" /></fw:label></td>
					</tr>
				  </c:if>					
				</c:otherwise>
			</c:choose>						
		  </table>
		</td>
	    </tr>
	
	    <c:set var="selectedVisns" value="${reportInfoForm.visn}" />
	    <esrcore:setLookup var="visnSource" className="gov.va.med.esr.common.model.lookup.VISN" removeCollection="selectedVisns" />
	    <esrcore:setLookup var="visnTarget" className="gov.va.med.esr.common.model.lookup.VISN" removeCollection="visnSource" />
	    <tr id="facilityParam<c:out value="${reportFacilityDisplayByVisn}" />">
	      <td colspan="3" align="center">
	    	  <table border="0" cellpadding="0" cellspacing="0">
	          <tr>
	            <td class="moduleValue"><bean-el:message key="label.available" /></td>
	            <td class="moduleValue">&nbsp;</td>
	            <td class="moduleValue"><bean-el:message key="label.selected" /></td>
	          </tr>
	          <tr>
	          	<td class="moduleLabel">
	      	    <html-el:select title="${availableText}" styleId="visnSource" styleClass="moduleEdit" style="width:350px;" property="dummySelect" multiple="true" size="8">
	      	        <c:if test="${reportInfoForm.allVisnSelected == false}">
	      			    <html-el:option styleClass="moduleEdit" value="all"><bean-el:message key="label.report.allVISNs" /></html-el:option>
	      			</c:if>
	      		<esrcore:options styleClass="moduleEdit" collection="visnSource" property="code" labelProperty="facilityName"/>
	      	        <c:if test="${reportInfoForm.noVisnSelected == false}">
		      		    <html-el:option styleClass="moduleEdit" value="${noVisnText}"><bean-el:message key="label.report.noVISN" /></html-el:option>
	    	  		</c:if>
	      	    </html-el:select>
	          	</td>
	          	<td class="moduleValue">
	          	    <input title="<bean-el:message key="label.addSelections" />" name="button" onclick="addSelectedItems('visnSource','visnTarget')" type="button" value="<bean-el:message key="button.rightArrow" />"><br>
	          	    <input title="<bean-el:message key="label.removeSelections" />" name="button" onclick="addSelectedItems('visnTarget','visnSource')" type="button" value="<bean-el:message key="button.leftArrow" />">
	          	</td>
	         	  <td class="moduleValue">
	         	    <html-el:select title="${selectedText}" styleId="visnTarget" styleClass="moduleEdit" style="width:350px;" property="visn" multiple="true" size="8">
          		    <c:if test="${reportInfoForm.allVisnSelected == true}">
	      		    	<html-el:option styleClass="moduleEdit" value="all"><bean-el:message key="label.report.allVISNs" /></html-el:option>
	      		    </c:if>
	         		<esrcore:options styleClass="moduleEdit" collection="visnTarget" property="code" labelProperty="facilityName"/>
	      	        <c:if test="${reportInfoForm.noVisnSelected == true}">
		      		    <html-el:option styleClass="moduleEdit" value="${noVisnText}"><bean-el:message key="label.report.noVISN" /></html-el:option>
	    	  		</c:if>
	         	    </html-el:select>
	         	  </td>
	          </tr>
	        </table>
	      </td>
	    </tr>
	
	    <c:set var="selectedVisnFacility" value="${reportInfoForm.visnFacility}" />
	    <esrcore:setLookup var="visnFacilitySource" className="gov.va.med.esr.ui.common.beans.VISNSite" removeCollection="selectedVisnFacility" />
	    <esrcore:setLookup var="visnFacilityTarget" className="gov.va.med.esr.ui.common.beans.VISNSite" removeCollection="visnFacilitySource" />
	    <tr id="facilityParam<c:out value="${reportFacilityDisplayByVisnFacility}" />">
	      <td colspan="3" align="center">
	    	  <table border="0" cellpadding="0" cellspacing="0">
	          <tr>
	            <td class="moduleValue"><bean-el:message key="label.available" /></td>
	            <td class="moduleValue">&nbsp;</td>
	            <td class="moduleValue"><bean-el:message key="label.selected" /></td>
	          </tr>
	          <tr>
	            <td class="moduleLabel">
	        	    <html-el:select title="${availableText}" styleId="visnFacilitySource" styleClass="moduleEdit" style="width:350px;" property="dummySelect" multiple="true" size="8">
	        	        <c:if test="${reportInfoForm.allVisnFacilitySelected == false}">
	     		    <html-el:option styleClass="moduleEdit" value="all"><bean-el:message key="label.report.allVISNs" /></html-el:option>
	        		</c:if>
	        		<esrcore:options styleClass="moduleEdit" collection="visnFacilitySource" property="code" labelProperty="facilityName"/>
	        	    </html-el:select>
	            </td>
	            <td class="moduleValue">
	                <input title="<bean-el:message key="label.addSelections" />" name="button" onclick="addSelectedItems('visnFacilitySource','visnFacilityTarget')" type="button" value="<bean-el:message key="button.rightArrow" />"><br>
	                <input title="<bean-el:message key="label.removeSelections" />" name="button" onclick="addSelectedItems('visnFacilityTarget','visnFacilitySource')" type="button" value="<bean-el:message key="button.leftArrow" />">
	             </td>
	           	<td class="moduleValue">
	           	    <html-el:select title="${selectedText}" styleId="visnFacilityTarget" styleClass="moduleEdit" style="width:350px;" property="visnFacility" multiple="true" size="8">
	           	    	<c:if test="${reportInfoForm.allVisnFacilitySelected == true}">
	    	    	    <html-el:option styleClass="moduleEdit" value="all"><bean-el:message key="label.report.allVISNs" /></html-el:option>
	        	    	</c:if>
	           	    	<esrcore:options styleClass="moduleEdit" collection="visnFacilityTarget" property="code" labelProperty="facilityName"/>
	           	    </html-el:select>
	           	</td>
	          </tr>
	        </table>
	      </td>
	    </tr>
	
	    <c:set var="selectedFacility" value="${reportInfoForm.facility}" />
		<c:set var="RID" value="${reportInfoForm.reportIdNoSpace}" />				
		<c:choose>
			<c:when test="${RID == 'IV1' || RID == 'IV5' || RID == 'QM3' || RID == 'QM4' || RID == 'EED1' || RID == 'EED2' || RID == 'EED3' || RID == 'EED6' || RID == 'EED10'}">
                <esrcore:setLookup var="facilitySource" className="gov.va.med.esr.ui.common.beans.PreferredFacility" removeCollection="selectedFacility" />
	            <esrcore:setLookup var="facilityTarget" className="gov.va.med.esr.ui.common.beans.PreferredFacility" removeCollection="facilitySource" />					
			</c:when>
			<c:otherwise>
                <esrcore:setLookup var="facilitySource" className="gov.va.med.esr.common.model.lookup.VAFacility" removeCollection="selectedFacility" />
	            <esrcore:setLookup var="facilityTarget" className="gov.va.med.esr.common.model.lookup.VAFacility" removeCollection="facilitySource" />				
			</c:otherwise>
		</c:choose>				  
						
	    <tr id="facilityParam<c:out value="${reportFacilityDisplayByFacility}" />">
	      <td colspan="3" align="center">
	    	  <table border="0" cellpadding="0" cellspacing="0">
	          <tr>
	            <td class="moduleValue"><bean-el:message key="label.available" /></td>
	            <td class="moduleValue">&nbsp;</td>
	            <td class="moduleValue"><bean-el:message key="label.selected" /></td>
	          </tr>
	          <tr>
	            <td class="moduleLabel">
	              <html-el:select title="${availableText}" styleId="facilitySource" styleClass="moduleEdit" style="width:350px;" property="dummySelect" multiple="true" size="8">
	                  <c:if test="${reportInfoForm.allFacilitySelected == false}">
	                <html-el:option styleClass="moduleEdit" value="all"><bean-el:message key="label.report.allSites" /></html-el:option>
	            </c:if>
	            <esrcore:options styleClass="moduleEdit" collection="facilitySource" property="code" labelProperty="facilityName"/>
	              </html-el:select>
	            </td>
	            <td class="moduleValue">
	                <input title="<bean-el:message key="label.addSelections" />" name="button" onclick="addSelectedItems('facilitySource','facilityTarget')" type="button" value="<bean-el:message key="button.rightArrow" />"><br>
	                <input title="<bean-el:message key="label.removeSelections" />" name="button" onclick="addSelectedItems('facilityTarget','facilitySource')" type="button" value="<bean-el:message key="button.leftArrow" />">
	            </td>
	            <td class="moduleValue">
	                 <html-el:select title="${selectedText}" styleId="facilityTarget" styleClass="moduleEdit" style="width:350px;" property="facility" multiple="true" size="8">
	              <c:if test="${reportInfoForm.allFacilitySelected == true}">
	            <html-el:option styleClass="moduleEdit" value="all"><bean-el:message key="label.report.allSites" /></html-el:option>
	            </c:if>
	              <esrcore:options styleClass="moduleEdit" collection="facilityTarget" property="code" labelProperty="facilityName"/>
	                 </html-el:select>
	            </td>
	          </tr>
	        </table>
	      </td>
	    </tr>
														
	    <c:if test="${reportInfoForm.reportIdNoSpace == 'EED6'}">
	    <c:set var="selectedVamc" value="${reportInfoForm.vamcs}" />
	    <esrcore:setLookup var="vamcSource" className="gov.va.med.esr.ui.common.beans.VAMC" removeCollection="selectedVamc" />
	    <esrcore:setLookup var="vamcTarget" className="gov.va.med.esr.ui.common.beans.VAMC" removeCollection="vamcSource" />
	    <tr id="facilityParam<c:out value="${reportFacilityDisplayByVamc}" />">
	      <td colspan="3" align="center">
	    	  <table border="0" cellpadding="0" cellspacing="0">
	          <tr>
	            <td class="moduleValue"><bean-el:message key="label.available" /></td>
	            <td class="moduleValue">&nbsp;</td>
	            <td class="moduleValue"><bean-el:message key="label.selected" /></td>
	          </tr>
	          <tr>
	            <td class="moduleLabel">
	              <html-el:select title="${availableText}" styleId="vamcSource" styleClass="moduleEdit" style="width:350px;" property="dummySelect" multiple="true" size="8">
	                  <c:if test="${reportInfoForm.allVamcSelected == false}">
	                <html-el:option styleClass="moduleEdit" value="allVAMCs"><bean-el:message key="label.report.allVAMCs" /></html-el:option>
	            </c:if>
	            <esrcore:options styleClass="moduleEdit" collection="vamcSource" property="code" labelProperty="facilityName"/>
	              </html-el:select>
	            </td>
	            <td class="moduleValue">
	                <input title="<bean-el:message key="label.addSelections" />" name="button" onclick="addSelectedItems('vamcSource','vamcTarget')" type="button" value="<bean-el:message key="button.rightArrow" />"><br>
	                <input title="<bean-el:message key="label.removeSelections" />" name="button" onclick="addSelectedItems('vamcTarget','vamcSource')" type="button" value="<bean-el:message key="button.leftArrow" />">
	            </td>
	            <td class="moduleValue">
	                 <html-el:select title="${selectedText}" styleId="vamcTarget" styleClass="moduleEdit" style="width:350px;" property="vamcs" multiple="true" size="8">
	              <c:if test="${reportInfoForm.allVamcSelected == true}">
	            <html-el:option styleClass="moduleEdit" value="allVAMCs"><bean-el:message key="label.report.allVAMCs" /></html-el:option>
	            </c:if>
	              <esrcore:options styleClass="moduleEdit" collection="vamcTarget" property="code" labelProperty="facilityName"/>
	                 </html-el:select>
	            </td>
	          </tr>
	        </table>
	      </td>
	    </tr>
	
	    <c:set var="selectedVamcFacility" value="${reportInfoForm.vamcFacility}" />
	    <esrcore:setLookup var="vamcFacilitySource" className="gov.va.med.esr.ui.common.beans.VAMCSite" removeCollection="selectedVamcFacility" />
	    <esrcore:setLookup var="vamcFacilityTarget" className="gov.va.med.esr.ui.common.beans.VAMCSite" removeCollection="vamcFacilitySource" />
	    <tr id="facilityParam<c:out value="${reportFacilityDisplayByVamcFacility}" />">
	      <td colspan="3" align="center">
	    	  <table border="0" cellpadding="0" cellspacing="0">
	          <tr>
	            <td class="moduleValue"><bean-el:message key="label.available" /></td>
	            <td class="moduleValue">&nbsp;</td>
	            <td class="moduleValue"><bean-el:message key="label.selected" /></td>
	          </tr>
	          <tr>
	            <td class="moduleLabel">
	              <html-el:select title="${availableText}" styleId="vamcFacilitySource" styleClass="moduleEdit" style="width:350px;" property="dummySelect" multiple="true" size="8">
	                  <c:if test="${reportInfoForm.allVamcFacilitySelected == false}">
	                <html-el:option styleClass="moduleEdit" value="allVAMCs"><bean-el:message key="label.report.allVAMCs" /></html-el:option>
	            </c:if>
	            <esrcore:options styleClass="moduleEdit" collection="vamcFacilitySource" property="code" labelProperty="facilityName"/>
	              </html-el:select>
	            </td>
	            <td class="moduleValue">
	                <input title="<bean-el:message key="label.addSelections" />" name="button" onclick="addSelectedItems('vamcFacilitySource','vamcFacilityTarget')" type="button" value="<bean-el:message key="button.rightArrow" />"><br>
	                <input title="<bean-el:message key="label.removeSelections" />" name="button" onclick="addSelectedItems('vamcFacilityTarget','vamcFacilitySource')" type="button" value="<bean-el:message key="button.leftArrow" />">
	            </td>
	            <td class="moduleValue">
	                 <html-el:select title="${selectedText}" styleId="vamcFacilityTarget" styleClass="moduleEdit" style="width:350px;" property="vamcFacility" multiple="true" size="8">
	              <c:if test="${reportInfoForm.allVamcFacilitySelected == true}">
	            <html-el:option styleClass="moduleEdit" value="allVAMCs"><bean-el:message key="label.report.allVAMCs" /></html-el:option>
	            </c:if>
	              <esrcore:options styleClass="moduleEdit" collection="vamcFacilityTarget" property="code" labelProperty="facilityName"/>
	                 </html-el:select>
	            </td>
	          </tr>
	        </table>
	      </td>
	    </tr>
	
	    <c:set var="selectedVisnVamc" value="${reportInfoForm.visnVamc}" />
	    <esrcore:setLookup var="visnVamcSource" className="gov.va.med.esr.ui.common.beans.VISNVAMC" removeCollection="selectedVisnVamc" />
	    <esrcore:setLookup var="visnVamcTarget" className="gov.va.med.esr.ui.common.beans.VISNVAMC" removeCollection="visnVamcSource" />
	    <tr id="facilityParam<c:out value="${reportFacilityDisplayByVisnVamc}" />">
	      <td colspan="3" align="center">
	    	  <table border="0" cellpadding="0" cellspacing="0">
	          <tr>
	            <td class="moduleValue"><bean-el:message key="label.available" /></td>
	            <td class="moduleValue">&nbsp;</td>
	            <td class="moduleValue"><bean-el:message key="label.selected" /></td>
	          </tr>
	          <tr>
	            <td class="moduleLabel">
	              <html-el:select title="${availableText}" styleId="visnVamcSource" styleClass="moduleEdit" style="width:350px;" property="dummySelect" multiple="true" size="8">
	                  <c:if test="${reportInfoForm.allVisnVamcSelected == false}">
	                <html-el:option styleClass="moduleEdit" value="allVAMCs"><bean-el:message key="label.report.allVISNs" /></html-el:option>
	            </c:if>
	            <esrcore:options styleClass="moduleEdit" collection="visnVamcSource" property="code" labelProperty="facilityName"/>
	              </html-el:select>
	            </td>
	            <td class="moduleValue">
	                <input title="<bean-el:message key="label.addSelections" />" name="button" onclick="addSelectedItems('visnVamcSource','visnVamcTarget')" type="button" value="<bean-el:message key="button.rightArrow" />"><br>
	                <input title="<bean-el:message key="label.removeSelections" />" name="button" onclick="addSelectedItems('visnVamcTarget','visnVamcSource')" type="button" value="<bean-el:message key="button.leftArrow" />">
	            </td>
	            <td class="moduleValue">
	                 <html-el:select title="${selectedText}" styleId="visnVamcTarget" styleClass="moduleEdit" style="width:350px;" property="visnVamc" multiple="true" size="8">
	              <c:if test="${reportInfoForm.allVisnVamcSelected == true}">
	            <html-el:option styleClass="moduleEdit" value="allVAMCs"><bean-el:message key="label.report.allVISNs" /></html-el:option>
	            </c:if>
	              <esrcore:options styleClass="moduleEdit" collection="visnVamcTarget" property="code" labelProperty="facilityName"/>
	                 </html-el:select>
	            </td>
	          </tr>
	        </table>
	      </td>
	    </tr>
	
	    <c:set var="selectedVisnVamcFacility" value="${reportInfoForm.visnVamcFacility}" />
	    <esrcore:setLookup var="visnVamcFacilitySource" className="gov.va.med.esr.ui.common.beans.VISNVAMCSite" removeCollection="selectedVisnVamcFacility" />
	    <esrcore:setLookup var="visnVamcFacilityTarget" className="gov.va.med.esr.ui.common.beans.VISNVAMCSite" removeCollection="visnVamcFacilitySource" />
	    <tr id="facilityParam<c:out value="${reportFacilityDisplayByVisnVamcFacility}" />">
	      <td colspan="3" align="center">
	    	  <table border="0" cellpadding="0" cellspacing="0">
	          <tr>
	            <td class="moduleValue"><bean-el:message key="label.available" /></td>
	            <td class="moduleValue">&nbsp;</td>
	            <td class="moduleValue"><bean-el:message key="label.selected" /></td>
	          </tr>
	          <tr>
	            <td class="moduleLabel">
	              <html-el:select title="${availableText}" styleId="visnVamcFacilitySource" styleClass="moduleEdit" style="width:350px;" property="dummySelect" multiple="true" size="8">
	                  <c:if test="${reportInfoForm.allVisnVamcFacilitySelected == false}">
	                <html-el:option styleClass="moduleEdit" value="allVAMCs"><bean-el:message key="label.report.allVISNs" /></html-el:option>
	            </c:if>
	            <esrcore:options styleClass="moduleEdit" collection="visnVamcFacilitySource" property="code" labelProperty="facilityName"/>
	              </html-el:select>
	            </td>
	            <td class="moduleValue">
	                <input title="<bean-el:message key="label.addSelections" />" name="button" onclick="addSelectedItems('visnVamcFacilitySource','visnVamcFacilityTarget')" type="button" value="<bean-el:message key="button.rightArrow" />"><br>
	                <input title="<bean-el:message key="label.removeSelections" />" name="button" onclick="addSelectedItems('visnVamcFacilityTarget','visnVamcFacilitySource')" type="button" value="<bean-el:message key="button.leftArrow" />">
	           </td>
	            <td class="moduleValue">
	                 <html-el:select title="${selectedText}" styleId="visnVamcFacilityTarget" styleClass="moduleEdit" style="width:350px;" property="visnVamcFacility" multiple="true" size="8">
	              <c:if test="${reportInfoForm.allVisnVamcFacilitySelected == true}">
	            <html-el:option styleClass="moduleEdit" value="allVAMCs"><bean-el:message key="label.report.allVISNs" /></html-el:option>
	            </c:if>
	              <esrcore:options styleClass="moduleEdit" collection="visnVamcFacilityTarget" property="code" labelProperty="facilityName"/>
	                 </html-el:select>
	            </td>
	          </tr>
	        </table>
	      </td>
	    </tr>																					
	    </c:if>
	     <jsp:useBean id="RID" type="java.lang.String" />
	     <c-rt:if test='<%=(RID.indexOf("P8G")==-1)%>'>
		<c:if test="${reportInfoForm.reportIdNoSpace != 'VOA01'}">
	    <tr id="stationNumbersId">
	      <td colspan="3" align="center">
	    	  <table border="0" cellpadding="0" cellspacing="0">						
	          <tr >
			    <td class="moduleLabel"><fw:label property="stattionNumbers" forId="stationNumbersTextId"><bean-el:message key="label.report.stationNumbers" />:</fw:label></td>
				<td class="moduleValue">&nbsp;</td>  
			    <c:set var="stationNumbersText"><bean-el:message key="label.report.stationNumbers"/></c:set>
			    <td class="moduleValue" nowrap><html-el:text styleId="stationNumbersTextId" title="${stationNumbersText}" property="stationNumbers" styleClass="moduleEdit" size="50" maxlength="50"/></td>
	          </tr>
			  </table>
			  </td>
		</tr>
		</c:if>
		</c-rt:if>		
	  </c:if>    
    <c:if test="${reportParamConfig[visnParam] != null}">
    <tr><td colspan="3">&nbsp;</td></tr>
    <tr>
	    <td class="moduleLabel"><fw:label required="true" property="fromDate" forId="visnFromDateId"><bean-el:message key="label.report.visn" />:</fw:label></td>
	    <td class="moduleValue"colspan="2" nowrap>
	    <esrcore:setLookup var="visnSource" className="gov.va.med.esr.common.model.lookup.VISN" />
			<c:set var="visnText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.report.visn"/></c:set>
			    <html-el:select title="${visnText}" styleClass="moduleEdit" property="visn" styleId="visnFromDateId">
					<esrcore:options styleClass="moduleEdit" collection="visnSource" property="code" labelProperty="facilityName"/>
					<c:if test="${reportInfoForm.noVisnSelected == false}">
		      		    <html-el:option styleClass="moduleEdit" value="${noVisnText}"><bean-el:message key="label.report.noVISN" /></html-el:option>
	    	  		</c:if>
			    </html-el:select>
		</td>
		<html-el:hidden property="facilityDisplayBy" value="${reportFacilityDisplayByVisn}"/>
	</tr>		
    </c:if>