{--LOGIC= $showcat istrue --}
<select name="search_cat" ONCHANGE="xajax_swapsearchcat(this.value);">
<optgroup label="{--LANG=W=search;scat--}">
{--ARRAY= $cats --}
<option value="$cat"{--LOGIC= $isactive istrue --} selected{--LOGIC-END--} >$desc</option>
{--ARRAY-ELSE--}
<option value="">None available</option>
{--ARRAY-END--}
</optgroup>
</select>
{--LOGIC-END--}