# Using Built in SEF feature in Mambo
if ( !isset($custom404) && $mosConfig_sef ) {
$onclickCmd = "document.location.href= '$mosConfig_live_site/component/option,com_mtree/task,search/Itemid,$Itemid/searchword,' + escape(document.searchfrm_mod.mt_search.value) + '/cat_id,".$search_cat_id."/'";
} else {
# Using SEF advance or no SEF at all
$onclickCmd = "document.location.href='" . $mosConfig_live_site . "/index.php?option=com_mtree&task=search&Itemid=$Itemid&cat_id=".$search_cat_id."&searchword=' + escape(document.searchfrm_mod.mt_search.value)";
}