<%@ include file="/project/include.jsp" %>
<script type="text/javascript">
function cpAfterLoadMaster() {
	registerOnLoadMaster(function() {
		showHideFrna();
	});
}

<bui:out modes="create">
	var std_onChangeTipoIntervento = onChangeTipoIntervento;  
	
	/** override onchange del tipo intervento per nascondere o mostrare info Frna */
	onChangeTipoIntervento = function() {
		std_onChangeTipoIntervento();
		showHideFrna();
	}
</bui:out>

</script>

<div id="divZComparCalcoloQuoteUtente" class="modalElement">
	<table style="padding: 20px 4px 4px 4px;">
		<tr style="vertical-align: top;">
			<td>
				<input id="idZComparDataStorico" type="hidden"/>
				<div id="divZComparError" style="display:none">
					<span id="idZComparMsgError" class="generic-label msg_text_error"/>
				</div>
				
				<div id="divZComparMessaggi" style="display:none">
					<table>
						<tr>
							<td colspan="2">
								<span id="idZComparMessaggio" class="generic-label"/>
							</td>
						</tr>
						<tr>
							<td>&nbsp;</td>
							<td class="generic-label" style="padding: 15px 4px 5px 4px;">
								<button class="generic-button ui-state-default ui-corner-all" onClick="annullaCalcoloTariffe(); return false;"><img src="${j:getResourceUrlOfModule('shell', 'img/misc/delete-small.gif')}" width="16" height="16" border="0" align="absmiddle">&nbsp;Annulla</button>
								<button class="generic-button ui-state-default ui-corner-all" onClick="mostraDiv('divZComparDettagli'); return false;"><img src="${j:getResourceUrlOfModule('shell', 'img/misc/confirm-small.gif')}" width="16" height="16" border="0" align="absmiddle">&nbsp;Continua</button>
							</td>
						</tr>
					</table>
				</div>
				
				<div id="divZComparData" class="generic-label" style="display:none">
					<table border="0" cellpadding="0" cellspacing="3">
						<tr>
							<td colspan="2" class="generic-label" style="padding: 4px 4px 15px 4px;">Procedura di calcolo delle tariffe utente. Indicare la data alla quale verranno effettuati i calcoli:</td>
						</tr>	
						<tr>
				      		<td class="form-label" style="width:40px;">
				    			Data<span class="form-label-required">�*</span>
				    		</td>
				    		<td class="form-values">
						    	<input type="text" class="form-date" id="dataRifTariffeUtenteCld" />
					 			<shell:calendar inputId="dataRifTariffeUtenteCld"/>
						   	</td>
						</tr>
						<tr>
							<td>&nbsp;</td>
							<td class="generic-label" style="padding: 15px 4px 5px 4px;">
								<button class="generic-button ui-state-default ui-corner-all" onClick="verificaCalcolo(); return false;"><img src="${j:getResourceUrlOfModule('shell', 'img/misc/confirm-small.gif')}" width="16" height="16" border="0" align="absmiddle">&nbsp;Conferma</button>											
							</td>
						</tr>							
					</table>
				</div>
				
				<div id="divZComparDettagli" style="display:none">
					<table>
						<tr>
							<td colspan="2">
								<textarea id="idZComparDettaglio" class="form-normal-textarea" style="font: 10px Courier; height:28em; width:55em;"></textarea>
							</td>
						</tr>
						<tr>	
							<td class="form-label">
								Fascia reddito:
							</td>
							<td class="form-values">
								<select id="idZComparTariffari" class="form-input" onchange="showHideNumPD();"></select>
								<input id="idZComparTariffarioCalcolato" type="hidden"/>
							</td>							
						</tr>
						<tr id="trNumProvvDirig" style="display:none">
							<td class="form-label">
								N� Provvedimento dirigenziale:
							</td>
							<td class="form-values"><input id="idZComparNumProvvDirig" class="form-input" /></td>
						</tr>
						<tr>
							<td>&nbsp;</td>
							<td class="generic-label" style="padding: 15px 4px 5px 4px;">
								<button class="generic-button ui-state-default ui-corner-all" onClick="annullaCalcoloTariffe(); return false;"><img src="${j:getResourceUrlOfModule('shell', 'img/misc/delete-small.gif')}" width="16" height="16" border="0" align="absmiddle">&nbsp;Annulla</button>
								<button class="generic-button ui-state-default ui-corner-all" onClick="eseguiCalcolo(); return false;"><img src="${j:getResourceUrlOfModule('shell', 'img/misc/confirm-small.gif')}" width="16" height="16" border="0" align="absmiddle">&nbsp;Ok</button>
							</td>
						</tr>
					</table>
				</div>							
			</td>			
		</tr>
	</table>	
</div>

<j:tile name="correzioneTariffeUtenteRelISEE" />