<!-- BEGIN DYNAMIC BLOCK: searchDiv -->
<script type="text/javascript">
    function ToggleAdvancedSearchOptions()
    {
    	if($('advancedSearchOptions').style.display == "none"){
    		$('advancedSearchOptions').style.display = "";    		
			$('type').value = 'advanced';    		
		}else{
    		$('advancedSearchOptions').style.display = "none";			
			$('type').value = 'simple';
		}
    }
</script>

<div class="search">
	<form name="formSimpleSearch" method="post" action="index.php?fuse=knowledgebase&amp;view=KB_SearchArticlesView{public}">
		<input type="hidden" id="type" name="type" value="simple"/>
		<p><label class="s">[l]Search[/l]:</label></p>
		<!-- <a href="javascript:void(0);" onmouseover="return overlib(' By default (when neither + nor - is specified) the word is optional, but the rows that contain it are rated higher.<br>Operators:<br>(+) A leading plus sign indicates that this word must be present in each article that is returned.<br>(-) A leading minus sign indicates that this word must not be present in any of the rows that are returned.<br>(> <) These two operators are used to change a word contribution to the relevance value that is assigned to a row.<br>(*) The asterisk serves as the truncation (or wildcard) operator.<br>(\&quot;) A phrase that is enclosed within this character matches only rows that contain the phrase literally.',FIXY,_mousePosY+5,FIXX,_mousePosX+13,DELAY,310,BGCOLOR, '#FFCC99', FGCOLOR, '#FFFFCC',BORDER,1,TEXTCOLOR,'#000000');" onmouseout="return nd();"><img src="templates/default/images/question.gif" style="position: relative; left: 0px; top: 2px;" border="0"></a> -->
		<p><input type="text" class="fl" id="searchTextSimple" name="searchText" /></p>
		<p><input type="submit" name="searchButton" value="[l]go[/l]" class="sbutton" /></p>
		<p class="toggle"><a href="javascript:;" onclick="ToggleAdvancedSearchOptions();">[l]Advanced[/l]<br/>[l]search[/l]</a></p>
	
		<div class="advanced" id="advancedSearchOptions" style="display:none">
			<label class="a"><input name="showResultsWith" type="radio" value="allofthesewords" /> [l]All of these words[/l].</label>
			<label class="a"><input name="showResultsWith" type="radio" value="theexactphrase" /> [l]The exact phrase[/l].</label>
			<label class="a"><input name="showResultsWith" type="radio" value="anyofthesewords" checked="checked" /> [l]Any of these words[/l].</label>
			
			<div class="s_left">
				<label class="d">[l]Categories[/l]:</label>
				<select name="categories[]" multiple="multiple" size="8" class="a">
					<option value="-1" selected="selected">--Parent Category --</option> 
                    <!-- BEGIN DYNAMIC BLOCK: kbCategories -->
                    <option value="{catId}">{catLabel}</option>
                    <!-- END DYNAMIC BLOCK: kbCategories -->
				</select>
			</div>
			<div class="s_left">
				<label class="d">[l]Updated[/l]:</label>					
            	<select class="e" name="showResultsSearchUpdated" id="ddlstbxSearchUpdated">
                    <option value="7">[l]within the past week[/l]</option>
                    <option value="30">[l]within the past month[/l]</option>
                    <option value="60">[l]within the past two months[/l]</option>
                    <option value="365">[l]within the past year[/l]</option>
                    <option value="720">[l]within the past two years[/l]</option>
                    <option selected="selected" value="0">[l]anytime[/l]</option>        
    	        </select>
				<label class="d">[l]Sort by[/l]:</label>
                <select name="showResultsSortOrder" id="ddlstbxSortOrder">
                    <option value="LastModifiedDate">[l]Date[/l]</option>
                    <option value="ArticleID">[l]Article Number[/l]</option>
                    <option value="Rating">[l]Rating[/l]</option>
    			</select>
			</div>
		</div>	
	</form>			
</div>
<!-- END DYNAMIC BLOCK: searchDiv -->