<div id="filtersTable" align="center">
	{filtersBox id="clientsServicesFiltersBox" title=$_LANG.invoices.balanceInvoices.clientServicesList.filters.title floating=$clientInvoicesFilterBehaviour.floating animate=$clientInvoicesFilterBehaviour.animate collapsed=$clientInvoicesFilterBehaviour.collapsed width='99%' floatingAutoHide=0}

		<form id="clientsServicesFiltersForm"
				onsubmit="
					$('clientsServicesFiltersBox').toggleClick();
					ajaxIframe('clientServicesListDiv', 'clientServicesList.php', $('clientsServicesFiltersForm').serialize(true), ' ');
					return false;"
				style="margin:0px;">

			<table class="filters">

				{* ============================================================================= *}
				{* == SIMPLE FILTERS =========================================================== *}
				{* ============================================================================= *}

				<tr>
					<td class="nowrap">
						<div class="filterFields">{$_LANG.invoices.balanceInvoices.clientServicesList.filters.resDate}<sup class="mandatoryField">*</sup></div>
						<div>
							<input
								type="text" id="clientResStartDateFieldId"
								name="client[resStartDate]" value="{$filters.client.resStartDate}" class="input-old-date1"
								onBlur="
									dateValidation(this, '{$dateStandard}');
									if ( days_between( $F('clientResStartDateFieldId'), $F('clientResEndDateFieldId'), '{$dateStandard}') > $F('clientResDurationFieldId') ) {ldelim}
										$('clientResEndDateFieldId').value='';
										dateDurationValidation($('clientResDurationFieldId'), 0, ['clientResStartDateFieldId', 'clientResDurationFieldId', 'clientResEndDateFieldId'], '{$dateStandard}');
									{rdelim}
								"
							/>
							<img class="calendar" src="{$smarty.const.SMARTY_BLANKGIF}"  align="absmiddle" id="clientResStartDateBtn" />
							<script>Calendar.setup({ldelim}inputField:"clientResStartDateFieldId", button:"clientResStartDateBtn", ifFormat:Date.displayFormat, onUpdate:function(){ldelim}cleanEndDateClRes();{rdelim}{rdelim});</script>
							&raquo;
							<input
								type="text" id="clientResEndDateFieldId"
								name="client[resEndDate]" value="{$filters.client.resEndDate}" class="input-old-date1"
								onBlur="
									dateValidation(this, '{$dateStandard}');
									if ( days_between( $F('clientResStartDateFieldId'), $F('clientResEndDateFieldId'), '{$dateStandard}') > $F('clientResDurationFieldId') ) {ldelim}
										$('clientResStartDateFieldId').value='';
										dateDurationValidation($('clientResDurationFieldId'), 0, ['clientResStartDateFieldId', 'clientResDurationFieldId', 'clientResEndDateFieldId'], '{$dateStandard}');
									{rdelim}
								"
							/>
							<img class="calendar" src="{$smarty.const.SMARTY_BLANKGIF}" align="absmiddle" id="clientResEndDateBtn" />
							<script>Calendar.setup({ldelim}inputField:"clientResEndDateFieldId", button:"clientResEndDateBtn", ifFormat:Date.displayFormat, onUpdate:function(){ldelim}cleanStartDateClRes();{rdelim}{rdelim});</script>

							<input id="clientResDurationFieldId" type="hidden" value="{$clientResMaxPeriod}" />
						</div>
					</td>

					<td class="nowrap">
						{* change client filters mode *}
						<a href="#;" class="icon-reload" style="position:absolute;right:10px;" tooltip="{$_LANG.invoices.balanceInvoices.clientServicesList.filters.changeFiltersMode}" onclick="window.location.href='./?clientFiltersMode=invoices';"></a>

						<div class="filterFields">{$_LANG.invoices.balanceInvoices.clientServicesList.filters.resId}</div>
						<div>
							<input type="text" style="width:105px;"
								name="client[idReservation]" value="{$filters.client.idReservation}"
							/>
							<select name="client[idReservationType]" size="1" style="width:65px;">
								<option value="id" {if $filters.client.idReservationType=="id"}selected="1"{/if}>{$_LANG.invoices.balanceInvoices.clientServicesList.filters.idReservationType_id}</option>
								<option value="code" {if $filters.client.idReservationType=="code"}selected="1"{/if}>{$_LANG.invoices.balanceInvoices.clientServicesList.filters.idReservationType_code}</option>
								<option value="number" {if $filters.client.idReservationType=="number"}selected="1"{/if}>{$_LANG.invoices.balanceInvoices.clientServicesList.filters.idReservationType_number}</option>
							</select>
							<img src="{$smarty.const.SMARTY_BLANKGIF}" alt="" align="absmiddle" class="imgIcon icon-infoBlue-12"
								tooltip="{$_LANG.invoices.balanceInvoices.clientServicesList.filters.idReservationTooltip}"
							/>

						</div>
					</td>

				</tr>

				{* ============================================================================= *}

				<tr>
					<td class="nowrap">
						<div class="filterFields">{$_LANG.invoices.balanceInvoices.clientServicesList.filters.resResp}</div>
						<div>
							{* field = autocomplete *}
							{if $clientResResponsibleFieldType=="autocomplete"}

								<input
									type="text" id="typeClientResOfficeUserName"
									style="width:177px"
									name="client[typeResOfficeUserName]" value="{$filters.client.typeResOfficeUserName}"
								/>
								<input id="clientResIdOfficeUser" type="hidden" name="client[resIdOfficeUser]" value="{$filters.client.resIdOfficeUser}" />
								<script>
									new DCsAutocomplete({ldelim}
										autocompleteField:"typeClientResOfficeUserName",
										url:"{$APP_URL}disp.php?module=RemoteData/AutocompleteFieldData&class=OfficeAndUser",
										autocompleteFieldValue:"typeClientResOfficeUserName",
										autocompleteFieldCode:"clientResIdOfficeUser",
										clearOnCancel:true,
										clearOnSelect:false,
										clearButton:true,
										width:'350px',
										noResultsText:'{$_LANG.autocompleteNoResults}'
									{rdelim});
								</script>

							{* field = select *}
							{else}

								<select name="client[resIdOfficeUser]" size="1" style="width:190px">
									<option
										value="0|0" {if $filters.client.resIdOfficeUser=='0|0'}selected="1"{/if}
									>{$_LANG.invoices.balanceInvoices.clientInvoicesList.filters.allAgents}</option>
									{foreach from=$groupedUsers key=idOffice item=officeDetails}
										<option
											value="{$idOffice}|0" class="selectorOptionHighlight"
											{if "`$idOffice`|0"==$filters.client.resIdOfficeUser}selected="1"{/if}
										>
											&nbsp; {$officeDetails.officeName}
										</option>

										{foreach from=$officeDetails.usersList key=idUser item=userInfo}
											<option
												value="{$idOffice}|{$idUser}"
												{if "`$idOffice`|`$idUser`"==$filters.client.resIdOfficeUser}selected="1"{/if}
											>
												&nbsp; &nbsp; &nbsp; {$userInfo.lastName} {$userInfo.firstName}
											</option>
										{/foreach}
									{/foreach}
								</select>

							{/if}

						</div>
					</td>

					<td class="nowrap">
						<div class="filterFields">{$_LANG.invoices.balanceInvoices.clientServicesList.filters.servResp}</div>
						<div>
							{* field = autocomplete *}
							{if $clientServResponsibleFieldType=="autocomplete"}

								<input
									type="text" id="typeClientServOfficeUserName"
									style="width:177px"
									name="client[typeServOfficeUserName]" value="{$filters.client.typeServOfficeUserName}"
								/>
								<input id="clientServIdOfficeUser" type="hidden" name="client[servIdOfficeUser]" value="{$filters.client.servIdOfficeUser}" />
								<script>
									new DCsAutocomplete({ldelim}
										autocompleteField:"typeClientServOfficeUserName",
										url:"{$APP_URL}disp.php?module=RemoteData/AutocompleteFieldData&class=OfficeAndUser",
										autocompleteFieldValue:"typeClientServOfficeUserName",
										autocompleteFieldCode:"clientServIdOfficeUser",
										clearOnCancel:true,
										clearOnSelect:false,
										clearButton:true,
										width:'350px',
										noResultsText:'{$_LANG.autocompleteNoResults}'
									{rdelim});
								</script>

							{* field = select *}
							{else}

								<select name="client[servIdOfficeUser]" size="1" style="width:190px">
									<option
										value="0|0" {if $filters.client.servIdOfficeUser=='0|0'}selected="1"{/if}
									>{$_LANG.invoices.balanceInvoices.clientInvoicesList.filters.allAgents}</option>
									{foreach from=$groupedUsers key=idOffice item=officeDetails}
										<option
											value="{$idOffice}|0" class="selectorOptionHighlight"
											{if "`$idOffice`|0"==$filters.client.servIdOfficeUser}selected="1"{/if}
										>
											&nbsp; {$officeDetails.officeName}
										</option>

										{foreach from=$officeDetails.usersList key=idUser item=userInfo}
											<option
												value="{$idOffice}|{$idUser}"
												{if "`$idOffice`|`$idUser`"==$filters.client.servIdOfficeUser}selected="1"{/if}
											>
												&nbsp; &nbsp; &nbsp; {$userInfo.lastName} {$userInfo.firstName}
											</option>
										{/foreach}
									{/foreach}
								</select>

							{/if}

						</div>
					</td>

				</tr>

				{* ============================================================================= *}

				<tr>
					<td class="nowrap">
						<div class="filterFields">{$_LANG.invoices.balanceInvoices.clientServicesList.filters.servType}</div>
						<div>
							<select name="client[serviceCode]" size="1" style="width:190px">
								<option value="" {if !$filters.client.serviceCode}selected="1"{/if}>{$_LANG.invoices.balanceInvoices.clientInvoicesList.filters.allServices}</option>
								{foreach from=$servicesCodesList key=serviceId1 item=serviceCode1}
									{if !$serviceCode1[0]}
										<optgroup label="{$servicesTranslationsList[$serviceId1]}">
											{foreach from=$serviceCode1 key=serviceId2 item=serviceCode2}
												<option value="{$serviceId2}" {if $serviceId2==$filters.client.serviceCode}selected="1"{/if}>{$servicesTranslationsList[$serviceId2]}</option>
											{/foreach}
										</optgroup>
									{else}
										<option {if $serviceId1==$filters.client.serviceCode}selected="1"{/if} value="{$serviceId1}">{$servicesTranslationsList[$serviceId1]}</option>
									{/if}
								{/foreach}
							</select>
						</div>
					</td>

					<td class="nowrap">
						<div class="filterFields">{$_LANG.invoices.balanceInvoices.clientServicesList.filters.supplier}</div>
						<div>
							<input
								type="text" id="typeClientServiceSupplierAndProductName"
								style="width:177px"
								name="client[typeServSupplierAndProductName]" value="{$filters.client.typeServSupplierAndProductName}"
							/>
							<input id="clientServIdSupplierAndProduct" type="hidden" name="client[servIdSupplierAndProduct]" value="{$filters.client.servIdSupplierAndProduct}" />
							<script>
								new DCsAutocomplete({ldelim}
									autocompleteField:"typeClientServiceSupplierAndProductName",
									url:"{$APP_URL}disp.php?module=RemoteData/AutocompleteFieldData&class=SupplierAndProduct",
									autocompleteFieldValue:"typeClientServiceSupplierAndProductName",
									autocompleteFieldCode:"clientServIdSupplierAndProduct",
									clearOnCancel:true,
									clearOnSelect:false,
									clearButton:true,
									width:'350px',
									noResultsText:'{$_LANG.autocompleteNoResults}'
								{rdelim});
							</script>

						</div>
					</td>

				</tr>

				{* ============================================================================= *}

				<tr>
					<td class="nowrap">
						<div class="filterFields">{$_LANG.invoices.balanceInvoices.clientServicesList.filters.balanceStatus}</div>
						<div>
							<select size="1" name="client[balanceStatus]" style="width:170px;">
								<option value="2" {if $filters.client.balanceStatus=="2"}selected="1"{/if}>{$_LANG.invoices.balanceInvoices.clientServicesList.filters.balanceAllStatuses}</option>
								<option value="1" {if $filters.client.balanceStatus=="1"}selected="1"{/if}>{$_LANG.invoices.balanceInvoices.clientServicesList.filters.balancedInvoices}</option>
								<option value="0" {if $filters.client.balanceStatus=="0"}selected="1"{/if}>{$_LANG.invoices.balanceInvoices.clientServicesList.filters.unbalancedInvoices}</option>
							</select>
							<img src="{$smarty.const.SMARTY_BLANKGIF}" alt="" align="absmiddle" class="imgIcon icon-infoBlue-12"
								tooltip="{$_LANG.invoices.balanceInvoices.clientServicesList.filters.balanceStatusTooltip}"
							 />
						</div>
					</td>

					<td class="nowrap">
						<div class="filterFields">{$_LANG.invoices.balanceInvoices.clientServicesList.filters.textFilter}</div>
						<div>
							<input type="text" style="width:175px;"
								name="client[text]" value="{$filters.client.text}"
							/>
							<img src="{$smarty.const.SMARTY_BLANKGIF}" alt="" align="absmiddle" class="imgIcon icon-infoBlue-12"
								tooltip="{$_LANG.invoices.balanceInvoices.clientServicesList.filters.textFilterTooltip}"
							/>
						</div>
					</td>

				</tr>

				{* ============================================================================= *}
				{* == ADVANCED FILTERS ========================================================= *}
				{* ============================================================================= *}

				<tbody id="clientServicesAdvancedFilters" class="advancedFiltersTbody" {if !$filters.client.advancedFilters}style="display:none"{/if}>

					{* ========================================================================= *}

					<tr>
						<td class="nowrap">
							<div class="filterFields">{$_LANG.invoices.balanceInvoices.clientServicesList.filters.extResDate}</div>
							<div>
								<input type="text" style="width:170px" id="clientResServExtResDate"
									name="client[extResDate]" value="{$filters.client.extResDate}"
									onBlur="dateValidation(this, '{$dateStandard}');"
								/>
								<img class="calendar" src="{$smarty.const.SMARTY_BLANKGIF}" id="clientResServExtResDateBtn" align="absmiddle" />
								<script>Calendar.setup({ldelim}inputField:"clientResServExtResDate", button:"clientResServExtResDateBtn", ifFormat:Date.displayFormat{rdelim});</script>
							</div>
						</td>

						<td class="nowrap">
							<div class="filterFields">{$_LANG.invoices.balanceInvoices.clientServicesList.filters.extResId}</div>
							<div>
								<input type="text" style="width:190px;"
									name="client[extResId]" value="{$filters.client.extResId}"
								/>
							</div>
						</td>

					</tr>

					{* ========================================================================= *}

					<tr>
						<td class="nowrap">
							<div class="filterFields">{$_LANG.invoices.balanceInvoices.clientServicesList.filters.passenger}</div>
							<div>
								<input
									type="text" id="clientServTypePassengerName"
									style="width:177px"
									name="client[typePassengerName]" value="{$filters.client.typePassengerName}"
								/>
								<input id="clientServiceIdPassenger" type="hidden" name="client[idPassenger]" value="{$filters.client.idPassenger}" />
								<script>
									new DCsAutocomplete({ldelim}
										autocompleteField:"clientServTypePassengerName",
										url:"{$APP_URL}disp.php?module=RemoteData/AutocompleteFieldData&class=Customer",
										autocompleteFieldValue:"clientServTypePassengerName",
										autocompleteFieldCode:"clientServiceIdPassenger",
										clearOnCancel:true,
										clearOnSelect:false,
										clearButton:true,
										width:'350px',
										noResultsText:'{$_LANG.autocompleteNoResults}'
									{rdelim});
								</script>
							</div>
						</td>

						<td class="nowrap">
							<div class="filterFields">{$_LANG.invoices.balanceInvoices.clientServicesList.filters.destination}</div>
							<div>
								<input
									type="text" id="clientServiceTypeDestinationName"
									style="width:177px"
									name="client[typeDestinationName]" value="{$filters.client.typeDestinationName}"
								/>
								<input id="clientServIdDestination" type="hidden" name="client[idDestination]" value="{$filters.client.idDestination}" />
								<script>
									new DCsAutocomplete({ldelim}
										autocompleteField:"clientServiceTypeDestinationName",
										url:"{$APP_URL}disp.php?module=RemoteData/AutocompleteFieldData&class=CountryCity",
										autocompleteFieldValue:"clientServiceTypeDestinationName",
										autocompleteFieldCode:"clientServIdDestination",
										clearOnCancel:true,
										clearOnSelect:false,
										clearButton:true,
										width:'300px',
										offsetX:-108,
										noResultsText:'{$_LANG.autocompleteNoResults}'
									{rdelim});
								</script>
							</div>
						</td>

					</tr>

					{* ========================================================================= *}

					<tr>

						<td class="nowrap">
							<div class="filterFields">{$_LANG.invoices.balanceInvoices.clientServicesList.filters.tktDate}</div>
							<div>

								<input
									type="text" id="clientTicketStartDate"
									name="client[ticketStartDate]" value="{$filters.client.ticketStartDate}" class="input-old-date1"
									onBlur="dateValidation(this, '{$dateStandard}');"
								/>
								<img class="calendar" src="{$smarty.const.SMARTY_BLANKGIF}" id="clientTicketStartDateBtn" align="absmiddle" />
								<script>Calendar.setup({ldelim}inputField:"clientTicketStartDate", button:"clientTicketStartDateBtn", ifFormat:Date.displayFormat{rdelim});</script>
								&raquo;
								<input
									type="text" id="clientTicketEndDate"
									name="client[ticketEndDate]" value="{$filters.client.ticketEndDate}" class="input-old-date1"
									onBlur="dateValidation(this, '{$dateStandard}');"
								/>
								<img class="calendar" src="{$smarty.const.SMARTY_BLANKGIF}" id="clientTicketEndDateBtn" align="absmiddle" />
								<script>Calendar.setup({ldelim}inputField:"clientTicketEndDate", button:"clientTicketEndDateBtn", ifFormat:Date.displayFormat{rdelim});</script>

							</div>
						</td>

						<td class="nowrap">
							<div class="filterFields">{$_LANG.invoices.balanceInvoices.clientServicesList.filters.ticketNo}</div>
							<div>
								<input type="text" style="width:190px;"
									name="client[ticketNo]" value="{$filters.client.ticketNo}"
								/>
							</div>
						</td>

					</tr>

					{* ========================================================================= *}

					<tr>

						<td class="nowrap">
							<div class="filterFields">{$_LANG.invoices.balanceInvoices.clientServicesList.filters.servStartDate}</div>
							<div>

								<input
									type="text" id="clientServiceStartDate"
									name="client[serviceStartDate]" value="{$filters.client.serviceStartDate}" class="input-old-date1"
									onBlur="dateValidation(this, '{$dateStandard}');"
								/>
								<img class="calendar" src="{$smarty.const.SMARTY_BLANKGIF}" id="clientServiceStartDateBtn" align="absmiddle" />
								<script>Calendar.setup({ldelim}inputField:"clientServiceStartDate", button:"clientServiceStartDateBtn", ifFormat:Date.displayFormat{rdelim});</script>
								&raquo;
								<input
									type="text" id="clientServiceEndDate"
									name="client[serviceEndDate]" value="{$filters.client.serviceEndDate}" class="input-old-date1"
									onBlur="dateValidation(this, '{$dateStandard}');"
								/>
								<img class="calendar" src="{$smarty.const.SMARTY_BLANKGIF}" id="clientServiceEndDateBtn" align="absmiddle" />
								<script>Calendar.setup({ldelim}inputField:"clientServiceEndDate", button:"clientServiceEndDateBtn", ifFormat:Date.displayFormat{rdelim});</script>

							</div>
						</td>

						<td class="nowrap">
							<div class="filterFields">{$_LANG.invoices.balanceInvoices.clientServicesList.filters.confirmationNo}</div>
							<div>
								<input type="text" style="width:190px;"
									name="client[confirmationNumber]" value="{$filters.client.confirmationNumber}"
								/>
							</div>
						</td>

					</tr>

					{* ========================================================================= *}

					<tr>
						<td class="nowrap">
							<div class="filterFields">{$_LANG.invoices.balanceInvoices.clientServicesList.filters.miceProject}</div>
							<div>
								<input
									type="text" id="clientServTypeMiceProjectName"
									style="width:177px"
									name="client[typeMiceProjectName]" value="{$filters.client.typeMiceProjectName}"
								/>
								<input id="clientServiceIdMiceProject" type="hidden" name="client[idMiceProject]" value="{$filters.client.idMiceProject}" />
								<script>
									new DCsAutocomplete({ldelim}
										autocompleteField:"clientServTypeMiceProjectName",
										url:"{$APP_URL}disp.php?module=RemoteData/AutocompleteFieldData&class=MiceProject",
										autocompleteFieldValue:"clientServTypeMiceProjectName",
										autocompleteFieldCode:"clientServiceIdMiceProject",
										clearOnCancel:true,
										clearOnSelect:false,
										clearButton:true,
										width:'350px',
										noResultsText:'{$_LANG.autocompleteNoResults}'
									{rdelim});
								</script>
							</div>
						</td>

						<td class="nowrap">
							<div class="filterFields">{$_LANG['invoices']['balanceInvoices']['clientServicesList']['filters']['serviceRemarks']}</div>
							<div>
								<input type="text" style="width:175px;"
									name="client[serviceRemarks]" value="{$filters.client.serviceRemarks}"
								/>
								<img src="{$smarty.const.SMARTY_BLANKGIF}" alt="" align="absmiddle" class="imgIcon icon-infoBlue-12"
									tooltip="{$_LANG['invoices']['balanceInvoices']['clientServicesList']['filters']['serviceRemarksTooltip']}"
								/>
							</div>
						</td>

					</tr>


				</tbody>

				{* ============================================================================= *}

				<tr>
					<td colspan="2" class="center">

						<div style="float:right">
							<a href="#;" id="clientServicesHideAdvFilters" {if !$filters.client.advancedFilters}style="display:none"{/if}
								onclick="
									$('clientServicesAdvancedFilters').hide();
									$('clientServicesShowAdvFilters').show();$(this).hide();
									$('clientServicesAdvancedFiltersFlag').value=0;
								"
							>{$_LANG.invoices.balanceInvoices.clientServicesList.filters.hideAdvancedFilters}</a>

							<a href="#;" id="clientServicesShowAdvFilters" {if $filters.client.advancedFilters}style="display:none"{/if}
								onclick="
									$('clientServicesAdvancedFilters').show();
									$('clientServicesHideAdvFilters').show();$(this).hide();
									$('clientServicesAdvancedFiltersFlag').value=1;
								"
							>{$_LANG.invoices.balanceInvoices.clientServicesList.filters.showAdvancedFilters}</a>
						</div>

						<button style="float:left"
							type="button"
							onclick="messageBox.showQuestion('{$_LANG.confirm}', '{$_LANG.invoices.balanceInvoices.clientInvoicesList.confirms.resetFilters}',[ ['{$_LANG.yes}', 'window.location.href=\'./?resetClientInvoicesFilters\';'], '{$_LANG.no}'])"
						>{$_LANG.invoices.balanceInvoices.clientServicesList.filters.resetFilters}</button>

						<button type="submit">{$_LANG.invoices.balanceInvoices.clientServicesList.filters.submitButton}</button>

					</td>
				</tr>

			</table>

			<input id="clientServicesAdvancedFiltersFlag" type="hidden" name="client[advancedFilters]" value="{$filters.client.advancedFilters}" />

			<input type="hidden" name="currentPage" value="0" />
			<input type="hidden" name="clientServicesList" value="1" />

		</form>

	{/filtersBox}

</div>

<script>
	// IF THE START DATE IS UPDATED FROM THE CALENDAR - RECOMPUTE THE END DATE TO VALIDATE THAT THE TOTAL INTERVAL IS OK
	function cleanEndDateClRes() {ldelim}
		if ( days_between( $F('clientResStartDateFieldId'), $F('clientResEndDateFieldId'), '{$dateStandard}') > $F('clientResDurationFieldId') ) {ldelim}
			$('clientResEndDateFieldId').value='';
			dateDurationValidation($('clientResDurationFieldId'), 0, ['clientResStartDateFieldId', 'clientResDurationFieldId', 'clientResEndDateFieldId'], '{$dateStandard}');
		{rdelim}
	{rdelim}
	// IF THE START DATE IS UPDATED FROM THE CALENDAR - RECOMPUTE THE END DATE TO VALIDATE THAT THE TOTAL INTERVAL IS OK
	function cleanStartDateClRes() {ldelim}
		if ( days_between( $F('clientResStartDateFieldId'), $F('clientResEndDateFieldId'), '{$dateStandard}') > $F('clientResDurationFieldId') ) {ldelim}
			$('clientResStartDateFieldId').value='';
			dateDurationValidation($('clientResDurationFieldId'), 0, ['clientResStartDateFieldId', 'clientResDurationFieldId', 'clientResEndDateFieldId'], '{$dateStandard}');
		{rdelim}
	{rdelim}
</script>