{+START,IF,{$OR,{$AND,{UNDERNEATH},{$IS_NON_EMPTY,{TREE}}},{$IS_NON_EMPTY,{OPTIONS}}}}
	<tr>
		<td colspan="3">
			<h3 class="search_advanced_title">{!ADVANCED}&hellip;</h3>

			{+START,IF_NON_EMPTY,{OPTIONS}}
				<p><em>{!TEMPLATE_SEARCH_INFO}</em></p>

				{OPTIONS}
			{+END}

			{+START,IF,{UNDERNEATH}}
				<div>
					<div class="search_option">
						<label for="search_under">{!SEARCH_UNDERNEATH}:</label>
					</div>
					<div class="left">
						{+START,IF,{AJAX}}
							{TREE}
						{+END}
						{+START,IF,{$NOT,{AJAX}}}
							<select id="search_under" name="search_under">
								{TREE}
							</select>
						{+END}
					</div>
				</div>
			{+END}
		</td>
	</tr>
{+END}

{+START,IF,{$NOT,{$IS_GUEST}}}
	<tr>
		<td colspan="3">
			<h3 class="search_tabular_header">{!SAVE_SEARCH}&hellip;</h3>
		</td>
	</tr>
	<tr>
		<th class="form_table_field_name">{!SAVE_SEARCH}</th>
		<td class="form_table_field_input" colspan="2">
			<p>{!SAVE_SEARCH_DESCRIPTION}</p>
			<div class="accessibility_hidden"><label for="save_title">{!TITLE}</label></div>
			<input maxlength="255" type="text" size="48" value="" id="save_title" name="save_title" />
			<ul class="actions_list" role="navigation">
				<a onclick="return open_link_as_overlay(this);" href="{$PAGE_LINK*,_SELF:_SELF:my}">{!SAVED_SEARCHES}</a>
			</ul>
		</td>
	</tr>
{+END}
