
	<div style="display: %%GLOBAL_HideAdvancedSearch%%">
	<h3>%%LNG_hpAdvancedSearch%%</h3>

	<form action="%%GLOBAL_FormAction%%" method="post" onSubmit="return CheckAdvancedSearchForm()">

		<table width="100%" border="0" cellpadding="2" cellspacing="1">
		<tr>
			<td colspan="2"></td>
		</tr>
		<tr>
			<td><span class="Required">*</span>&nbsp;%%LNG_searchQueryLabel%%:</td>
			<td><input name="Query" id="AQuery" value="%%GLOBAL_Query%%" style="width: 250px;"></td>
		</tr>
		<tr>
			<td>&nbsp;&nbsp;%%LNG_searchCategoriesLabel%%:</td>
			<td>
				<select name="Categories[]" id="Categories" multiple size="5" style="width: 260px;">
					<option value="0" %%GLOBAL_AllSel%%>%%LNG_searchAllCategories%%</option>
					%%GLOBAL_SearchCategoryOptions%%
				</select>
			</td>
		</tr>
		<tr>
			<td>&nbsp;&nbsp;%%LNG_rated%%:</td>
			<td>
				<input type="hidden" name="ratedOp" value=">=">
				<select name="rated" style="width: 260px;">
					%%GLOBAL_ratedOptions%%
				</select>
			</td>
		</tr>
		%%Panel.SearchCustomFields%%
		<tr>
			<td></td>
			<td><input type="submit" id="SearchButton" value="%%LNG_hpSearch%%" class="button"></td>
		</tr>
		<tr style="display: %%GLOBAL_HideSearchDivider%%">
			<td colSpan="2">
				<div class="HorizontalRule"></div>
			</td>
		</tr>
	  </table>
	</form>
	<div class="Seperator" noshade size="1" style="display: %%GLOBAL_HideSeperator%%"></div>
	</div>

	<!-- Start Search Results -->

	<div style="display: %%GLOBAL_HideSearchResults%%">
	<h3>%%GLOBAL_ResultHeading%%</h3>
    <em>%%GLOBAL_SearchResultIntro%%</em>
				%%GLOBAL_Nav%%
				%%GLOBAL_SearchGrid%%
				%%GLOBAL_Nav%%
	</div>

	<!-- End Search Results -->

	<script type="text/javascript" language="javascript">

		function CheckAdvancedSearchForm()
		{
			if(document.getElementById("AQuery").value == "") {
				//alert("%%LNG_hpPleaseEnterSearchTerm%%");
				//document.getElementById("AQuery").focus();
				//return false;
			}

			return true;
		}

	</script>
