<select name="search_type" ONCHANGE="xajax_swapsearchtype(this.value);">
<optgroup label="{--LANG=W=search;stype--}">
{--ARRAY= $types --}
<option value="$type"{--LOGIC= $isactive istrue --} selected{--LOGIC-END--} >{--LANG=W=search;stype_$desc--}</option>
{--ARRAY-ELSE--}
<option value="">{--LANG=W=search;notype--}</option>
{--ARRAY-END--}
</optgroup>
</select>