<div id="calendarTabsHeading"><table border=0 cellpadding="0" cellspacing="0" width="100%" id="calendarToolsHeading"></table></div>
<div id="contentTabs">
	<ul>
		<li><a href="#fragment-1"><span>Tools</span></a></li>
		<li><a href="#fragment-2"><span>Advanced Tools</span></a></li>
	</ul>
	
		
	<div id="fragment-1">
		<table border=0 cellpadding="2" cellspacing="2" id="simpleToolsTable" width="100%">
			<tr valign="top" id="Collection_236_1_row" class="collection_field_row"><td class="PopupTabArea collection_field_name">{{$HTMLFieldNameCode_Collection_236_1}}</td><td>{{$HTMLFieldCode_Collection_236_1}}</td></tr>
			<tr valign="top" id="Collection_236_19_row" class="collection_field_row"><td class="PopupTabArea collection_field_name">{{$HTMLFieldNameCode_Collection_236_19}}</td><td>{{$HTMLFieldCode_Collection_236_19}}</td></tr>
			<tr valign="top" id="Collection_236_22_row" class="collection_field_row"><td class="PopupTabArea collection_field_name">{{$HTMLFieldNameCode_Collection_236_22}}</td><td>{{$HTMLFieldCode_Collection_236_22}}</td></tr>
			<tr valign="top" id="Collection_236_2_row" class="collection_field_row"><td class="PopupTabArea collection_field_name">{{$HTMLFieldNameCode_Collection_236_2}}</td><td>{{$HTMLFieldCode_Collection_236_2}}</td></tr>
			<tr valign="top" id="Collection_236_3_row" class="collection_field_row"><td class="PopupTabArea collection_field_name">{{$HTMLFieldNameCode_Collection_236_3}}</td><td>{{$HTMLFieldCode_Collection_236_3}}</td></tr>
			<tr valign="top" id="Collection_236_7_row" class="collection_field_row"><td class="PopupTabArea collection_field_name">{{$HTMLFieldNameCode_Collection_236_7}}</td><td>{{$HTMLFieldCode_Collection_236_7}}</td></tr>
			<tr valign="top" id="Collection_236_4_row" class="collection_field_row"><td class="PopupTabArea collection_field_name">{{$HTMLFieldNameCode_Collection_236_4}}</td><td>{{$HTMLFieldCode_Collection_236_4}}</td></tr>
			
		</table>
	</div>
		
	<div id="fragment-2">
		<table id="advancedToolsTable" border=0 cellpadding="2" cellspacing="2">
				
				<tr valign="top" id="Collection_236_5_row" class="collection_field_row"><td class="PopupTabArea collection_field_name">{{$HTMLFieldNameCode_Collection_236_5}}</td><td>{{$HTMLFieldCode_Collection_236_5}}</td></tr>
				<tr valign="top" id="Collection_236_6_row" class="collection_field_row"><td class="PopupTabArea collection_field_name">{{$HTMLFieldNameCode_Collection_236_6}}</td><td>{{$HTMLFieldCode_Collection_236_6}}</td></tr>
				<tr valign="top" id="Collection_236_8_row" class="collection_field_row"><td class="PopupTabArea collection_field_name">{{$HTMLFieldNameCode_Collection_236_8}}</td><td>{{$HTMLFieldCode_Collection_236_8}}</td></tr>
				<tr valign="top" id="Collection_236_9_row" class="collection_field_row"><td class="PopupTabArea collection_field_name">{{$HTMLFieldNameCode_Collection_236_9}}</td><td>{{$HTMLFieldCode_Collection_236_9}}</td></tr>
				<tr valign="top" id="Collection_236_10_row" class="collection_field_row"><td class="PopupTabArea collection_field_name">{{$HTMLFieldNameCode_Collection_236_10}}</td><td>{{$HTMLFieldCode_Collection_236_10}}</td></tr>
				<tr valign="top" id="Collection_236_11_row" class="collection_field_row"><td class="PopupTabArea collection_field_name">{{$HTMLFieldNameCode_Collection_236_11}}</td><td>{{$HTMLFieldCode_Collection_236_11}}</td></tr>
				<tr valign="top" id="Collection_236_12_row" class="collection_field_row"><td class="PopupTabArea collection_field_name">{{$HTMLFieldNameCode_Collection_236_12}}</td><td>{{$HTMLFieldCode_Collection_236_12}}</td></tr>
				<tr valign="top" id="Collection_236_13_row" class="collection_field_row"><td class="PopupTabArea collection_field_name">{{$HTMLFieldNameCode_Collection_236_13}}</td><td>{{$HTMLFieldCode_Collection_236_13}}</td></tr>
				<tr valign="top" id="Collection_236_14_row" class="collection_field_row"><td class="PopupTabArea collection_field_name">{{$HTMLFieldNameCode_Collection_236_14}}</td><td>{{$HTMLFieldCode_Collection_236_14}}</td></tr>
				<tr valign="top" id="Collection_236_15_row" class="collection_field_row"><td class="PopupTabArea collection_field_name">{{$HTMLFieldNameCode_Collection_236_15}}</td><td>{{$HTMLFieldCode_Collection_236_15}}</td></tr>
				<tr valign="top" id="Collection_236_16_row" class="collection_field_row"><td class="PopupTabArea collection_field_name">{{$HTMLFieldNameCode_Collection_236_16}}</td><td>{{$HTMLFieldCode_Collection_236_16}}</td></tr>
				<tr valign="top" id="Collection_236_17_row" class="collection_field_row"><td class="PopupTabArea collection_field_name">{{$HTMLFieldNameCode_Collection_236_17}}</td><td>{{$HTMLFieldCode_Collection_236_17}}</td></tr>
				<tr valign="top" id="Collection_236_18_row" class="collection_field_row"><td class="PopupTabArea collection_field_name">{{$HTMLFieldNameCode_Collection_236_18}}</td><td>{{$HTMLFieldCode_Collection_236_18}}</td></tr>
				<tr valign="top" id="Collection_236_20_row" class="collection_field_row"><td class="PopupTabArea collection_field_name">{{$HTMLFieldNameCode_Collection_236_20}}</td><td>{{$HTMLFieldCode_Collection_236_20}}</td></tr>
				<tr valign="top" id="Collection_236_21_row" class="collection_field_row"><td class="PopupTabArea collection_field_name">{{$HTMLFieldNameCode_Collection_236_21}}</td><td>{{$HTMLFieldCode_Collection_236_21}}</td></tr>
				
				
				<tr valign="top" id="useraccessobject_row" class="collection_field_row"><td class="PopupTabArea collection_field_name">{{$HTMLUserAccessFieldNameCode}}</td><td>{{$HTMLUserAccessXREFCode}}</td></tr>
		</table>
	</div>
	
</div>

<div id="form-buttons">{{$HTMLFormButtons}}</div>
	
{{capture name=a assign=contenttabs}}
	$('#contentTabs').tabs();
			
	{{if $UseAsDialog eq 1}} $('#admin_content').css('margin', '0px'); {{/if}}
	$('#form-buttons').css('padding-top','10px');
	
function HideAllRepeatFields (){
	$('#Collection_236_9_row').css({display:'none'});
	$('#Collection_236_10_row').css({display:'none'});
	$('#Collection_236_11_row').css({display:'none'});
	$('#Collection_236_12_row').css({display:'none'});
	$('#Collection_236_13_row').css({display:'none'});
	$('#Collection_236_14_row').css({display:'none'});
	$('#Collection_236_15_row').css({display:'none'});
	$('#Collection_236_16_row').css({display:'none'});
	$('#Collection_236_17_row').css({display:'none'});
	$('#Collection_236_18_row').css({display:'none'});
}

function ShowForDaily (){

		$('#Collection_236_9_row').css({display:''});
		$('#Collection_236_10_row').css({display:''});
}

function ShowForWeekly (){

		$('#Collection_236_9_row').css({display:''});
		$('#Collection_236_10_row').css({display:''});
		
		$('#Collection_236_11_row').css({display:''});
		$('#Collection_236_12_row').css({display:''});
		$('#Collection_236_13_row').css({display:''});
		$('#Collection_236_14_row').css({display:''});
		$('#Collection_236_15_row').css({display:''});
		$('#Collection_236_16_row').css({display:''});
		$('#Collection_236_17_row').css({display:''});
}

function ShowForMonthly (){
		$('#Collection_236_9_row').css({display:''});
		$('#Collection_236_10_row').css({display:''});
		
		$('#Collection_236_18_row').css({display:''});
		
}


function ShowForYearly (){
		$('#Collection_236_9_row').css({display:''});
		$('#Collection_236_10_row').css({display:''});

}

HideAllRepeatFields ();

{{if $selectedRow.Collection_236_8 eq 2}}ShowForDaily ();{{/if}}
{{if $selectedRow.Collection_236_8 eq 3}}ShowForWeekly ();{{/if}}
{{if $selectedRow.Collection_236_8 eq 4}}ShowForMonthly ();{{/if}}
{{if $selectedRow.Collection_236_8 eq 5}}ShowForYearly ();{{/if}}


$('#Collection_236_8').change(
			function(){
				var value = this.value;
				HideAllRepeatFields ();
				if (value == 2) {ShowForDaily ();}
				if (value == 3) {ShowForWeekly ();}
				if (value == 4) {ShowForMonthly ();}
				if (value == 5) {ShowForYearly ();}
			}
		);


	
{{/capture}}
{{assign var=JavascriptJQueryCode value=$JavascriptJQueryCode|concat:" "|concat:$contenttabs}}