$includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n";
 //$includes.="<script language=\"JavaScript\" src=\"include/customlabels.js\"></script>\r\n";
 $includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
 // if not simple, this div already exist on page
 $includes .= "<div id=\"search_suggest\" class=\"search_suggest\"></div>";
 // search panel radio button assign
 $searchRadio = $searchControlBuilder->getSearchRadio();
 $xt->assign_section("all_checkbox_label", $searchRadio['all_checkbox_label'][0], $searchRadio['all_checkbox_label'][1]);
 $xt->assign_section("any_checkbox_label", $searchRadio['any_checkbox_label'][0], $searchRadio['any_checkbox_label'][1]);
 $xt->assignbyref("all_checkbox", $searchRadio['all_checkbox']);
 $xt->assignbyref("any_checkbox", $searchRadio['any_checkbox']);
 // search fields data
 if (GetLookupTable("Code", $strTableName)) {
     $pageObject->settingsMap["globalSettings"]['shortTNames'][GetLookupTable("Code", $strTableName)] = GetTableURL(GetLookupTable("Code", $strTableName));
 }
 $pageObject->fillFieldToolTips("Code");
 $srchFields = $pageObject->searchClauseObj->getSearchCtrlParams("Code");
 $firstFieldParams = array();
 if (count($srchFields)) {
     $firstFieldParams = $srchFields[0];
 } else {
     $firstFieldParams['fName'] = "Code";
     $firstFieldParams['eType'] = '';
     $firstFieldParams['value1'] = '';
     $firstFieldParams['opt'] = '';
     $firstFieldParams['value2'] = '';
     $firstFieldParams['not'] = false;
 }
 // create control
 $ctrlBlockArr = $searchControlBuilder->buildSearchCtrlBlockArr($id, $firstFieldParams['fName'], 0, $firstFieldParams['opt'], $firstFieldParams['not'], false, $firstFieldParams['value1'], $firstFieldParams['value2']);
 if (isEnableSection508()) {
 $includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n";
 //$includes.="<script language=\"JavaScript\" src=\"include/customlabels.js\"></script>\r\n";
 $includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
 // if not simple, this div already exist on page
 $includes .= "<div id=\"search_suggest\" class=\"search_suggest\"></div>";
 // search panel radio button assign
 $searchRadio = $searchControlBuilder->getSearchRadio();
 $xt->assign_section("all_checkbox_label", $searchRadio['all_checkbox_label'][0], $searchRadio['all_checkbox_label'][1]);
 $xt->assign_section("any_checkbox_label", $searchRadio['any_checkbox_label'][0], $searchRadio['any_checkbox_label'][1]);
 $xt->assignbyref("all_checkbox", $searchRadio['all_checkbox']);
 $xt->assignbyref("any_checkbox", $searchRadio['any_checkbox']);
 // search fields data
 if (GetLookupTable("Units", $strTableName)) {
     $pageObject->settingsMap["globalSettings"]['shortTNames'][GetLookupTable("Units", $strTableName)] = GetTableURL(GetLookupTable("Units", $strTableName));
 }
 $pageObject->fillFieldToolTips("Units");
 $srchFields = $pageObject->searchClauseObj->getSearchCtrlParams("Units");
 $firstFieldParams = array();
 if (count($srchFields)) {
     $firstFieldParams = $srchFields[0];
 } else {
     $firstFieldParams['fName'] = "Units";
     $firstFieldParams['eType'] = '';
     $firstFieldParams['value1'] = '';
     $firstFieldParams['opt'] = '';
     $firstFieldParams['value2'] = '';
     $firstFieldParams['not'] = false;
 }
 // create control
 $ctrlBlockArr = $searchControlBuilder->buildSearchCtrlBlockArr($id, $firstFieldParams['fName'], 0, $firstFieldParams['opt'], $firstFieldParams['not'], false, $firstFieldParams['value1'], $firstFieldParams['value2']);
 if (isEnableSection508()) {
 $includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n";
 //$includes.="<script language=\"JavaScript\" src=\"include/customlabels.js\"></script>\r\n";
 $includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
 // if not simple, this div already exist on page
 $includes .= "<div id=\"search_suggest\" class=\"search_suggest\"></div>";
 // search panel radio button assign
 $searchRadio = $searchControlBuilder->getSearchRadio();
 $xt->assign_section("all_checkbox_label", $searchRadio['all_checkbox_label'][0], $searchRadio['all_checkbox_label'][1]);
 $xt->assign_section("any_checkbox_label", $searchRadio['any_checkbox_label'][0], $searchRadio['any_checkbox_label'][1]);
 $xt->assignbyref("all_checkbox", $searchRadio['all_checkbox']);
 $xt->assignbyref("any_checkbox", $searchRadio['any_checkbox']);
 // search fields data
 if (GetLookupTable("Record ID", $strTableName)) {
     $pageObject->settingsMap["globalSettings"]['shortTNames'][GetLookupTable("Record ID", $strTableName)] = GetTableURL(GetLookupTable("Record ID", $strTableName));
 }
 $pageObject->fillFieldToolTips("Record ID");
 $srchFields = $pageObject->searchClauseObj->getSearchCtrlParams("Record ID");
 $firstFieldParams = array();
 if (count($srchFields)) {
     $firstFieldParams = $srchFields[0];
 } else {
     $firstFieldParams['fName'] = "Record ID";
     $firstFieldParams['eType'] = '';
     $firstFieldParams['value1'] = '';
     $firstFieldParams['opt'] = '';
     $firstFieldParams['value2'] = '';
     $firstFieldParams['not'] = false;
 }
 // create control
 $ctrlBlockArr = $searchControlBuilder->buildSearchCtrlBlockArr($id, $firstFieldParams['fName'], 0, $firstFieldParams['opt'], $firstFieldParams['not'], false, $firstFieldParams['value1'], $firstFieldParams['value2']);
 if (isEnableSection508()) {
 $includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n";
 //$includes.="<script language=\"JavaScript\" src=\"include/customlabels.js\"></script>\r\n";
 $includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
 // if not simple, this div already exist on page
 $includes .= "<div id=\"search_suggest\" class=\"search_suggest\"></div>";
 // search panel radio button assign
 $searchRadio = $searchControlBuilder->getSearchRadio();
 $xt->assign_section("all_checkbox_label", $searchRadio['all_checkbox_label'][0], $searchRadio['all_checkbox_label'][1]);
 $xt->assign_section("any_checkbox_label", $searchRadio['any_checkbox_label'][0], $searchRadio['any_checkbox_label'][1]);
 $xt->assignbyref("all_checkbox", $searchRadio['all_checkbox']);
 $xt->assignbyref("any_checkbox", $searchRadio['any_checkbox']);
 // search fields data
 if (GetLookupTable("ID", $strTableName)) {
     $pageObject->settingsMap["globalSettings"]['shortTNames'][GetLookupTable("ID", $strTableName)] = GetTableURL(GetLookupTable("ID", $strTableName));
 }
 $pageObject->fillFieldToolTips("ID");
 $srchFields = $pageObject->searchClauseObj->getSearchCtrlParams("ID");
 $firstFieldParams = array();
 if (count($srchFields)) {
     $firstFieldParams = $srchFields[0];
 } else {
     $firstFieldParams['fName'] = "ID";
     $firstFieldParams['eType'] = '';
     $firstFieldParams['value1'] = '';
     $firstFieldParams['opt'] = '';
     $firstFieldParams['value2'] = '';
     $firstFieldParams['not'] = false;
 }
 // create control
 $ctrlBlockArr = $searchControlBuilder->buildSearchCtrlBlockArr($id, $firstFieldParams['fName'], 0, $firstFieldParams['opt'], $firstFieldParams['not'], false, $firstFieldParams['value1'], $firstFieldParams['value2']);
 if (isEnableSection508()) {
 $includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n";
 //$includes.="<script language=\"JavaScript\" src=\"include/customlabels.js\"></script>\r\n";
 $includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
 // if not simple, this div already exist on page
 $includes .= "<div id=\"search_suggest\" class=\"search_suggest\"></div>";
 // search panel radio button assign
 $searchRadio = $searchControlBuilder->getSearchRadio();
 $xt->assign_section("all_checkbox_label", $searchRadio['all_checkbox_label'][0], $searchRadio['all_checkbox_label'][1]);
 $xt->assign_section("any_checkbox_label", $searchRadio['any_checkbox_label'][0], $searchRadio['any_checkbox_label'][1]);
 $xt->assignbyref("all_checkbox", $searchRadio['all_checkbox']);
 $xt->assignbyref("any_checkbox", $searchRadio['any_checkbox']);
 // search fields data
 if (GetLookupTable("ID", $strTableName)) {
     $pageObject->settingsMap["globalSettings"]['shortTNames'][GetLookupTable("ID", $strTableName)] = GetTableURL(GetLookupTable("ID", $strTableName));
 }
 $pageObject->fillFieldToolTips("ID");
 $srchFields = $pageObject->searchClauseObj->getSearchCtrlParams("ID");
 $firstFieldParams = array();
 if (count($srchFields)) {
     $firstFieldParams = $srchFields[0];
 } else {
     $firstFieldParams['fName'] = "ID";
     $firstFieldParams['eType'] = '';
     $firstFieldParams['value1'] = '';
     $firstFieldParams['opt'] = '';
     $firstFieldParams['value2'] = '';
     $firstFieldParams['not'] = false;
 }
 // create control
 $ctrlBlockArr = $searchControlBuilder->buildSearchCtrlBlockArr($id, $firstFieldParams['fName'], 0, $firstFieldParams['opt'], $firstFieldParams['not'], false, $firstFieldParams['value1'], $firstFieldParams['value2']);
 if (isEnableSection508()) {
 $includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n";
 //$includes.="<script language=\"JavaScript\" src=\"include/customlabels.js\"></script>\r\n";
 $includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
 // if not simple, this div already exist on page
 $includes .= "<div id=\"search_suggest\" class=\"search_suggest\"></div>";
 // search panel radio button assign
 $searchRadio = $searchControlBuilder->getSearchRadio();
 $xt->assign_section("all_checkbox_label", $searchRadio['all_checkbox_label'][0], $searchRadio['all_checkbox_label'][1]);
 $xt->assign_section("any_checkbox_label", $searchRadio['any_checkbox_label'][0], $searchRadio['any_checkbox_label'][1]);
 $xt->assignbyref("all_checkbox", $searchRadio['all_checkbox']);
 $xt->assignbyref("any_checkbox", $searchRadio['any_checkbox']);
 // search fields data
 if (GetLookupTable("ID", $strTableName)) {
     $pageObject->settingsMap["globalSettings"]['shortTNames'][GetLookupTable("ID", $strTableName)] = GetTableURL(GetLookupTable("ID", $strTableName));
 }
 $pageObject->fillFieldToolTips("ID");
 $srchFields = $pageObject->searchClauseObj->getSearchCtrlParams("ID");
 $firstFieldParams = array();
 if (count($srchFields)) {
     $firstFieldParams = $srchFields[0];
 } else {
     $firstFieldParams['fName'] = "ID";
     $firstFieldParams['eType'] = '';
     $firstFieldParams['value1'] = '';
     $firstFieldParams['opt'] = '';
     $firstFieldParams['value2'] = '';
     $firstFieldParams['not'] = false;
 }
 // create control
 $ctrlBlockArr = $searchControlBuilder->buildSearchCtrlBlockArr($id, $firstFieldParams['fName'], 0, $firstFieldParams['opt'], $firstFieldParams['not'], false, $firstFieldParams['value1'], $firstFieldParams['value2']);
 if (isEnableSection508()) {
 $includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n";
 //$includes.="<script language=\"JavaScript\" src=\"include/customlabels.js\"></script>\r\n";
 $includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
 // if not simple, this div already exist on page
 $includes .= "<div id=\"search_suggest\" class=\"search_suggest\"></div>";
 // search panel radio button assign
 $searchRadio = $searchControlBuilder->getSearchRadio();
 $xt->assign_section("all_checkbox_label", $searchRadio['all_checkbox_label'][0], $searchRadio['all_checkbox_label'][1]);
 $xt->assign_section("any_checkbox_label", $searchRadio['any_checkbox_label'][0], $searchRadio['any_checkbox_label'][1]);
 $xt->assignbyref("all_checkbox", $searchRadio['all_checkbox']);
 $xt->assignbyref("any_checkbox", $searchRadio['any_checkbox']);
 // search fields data
 if (GetLookupTable("Code", $strTableName)) {
     $pageObject->settingsMap["globalSettings"]['shortTNames'][GetLookupTable("Code", $strTableName)] = GetTableURL(GetLookupTable("Code", $strTableName));
 }
 $pageObject->fillFieldToolTips("Code");
 $srchFields = $pageObject->searchClauseObj->getSearchCtrlParams("Code");
 $firstFieldParams = array();
 if (count($srchFields)) {
     $firstFieldParams = $srchFields[0];
 } else {
     $firstFieldParams['fName'] = "Code";
     $firstFieldParams['eType'] = '';
     $firstFieldParams['value1'] = '';
     $firstFieldParams['opt'] = '';
     $firstFieldParams['value2'] = '';
     $firstFieldParams['not'] = false;
 }
 // create control
 $ctrlBlockArr = $searchControlBuilder->buildSearchCtrlBlockArr($id, $firstFieldParams['fName'], 0, $firstFieldParams['opt'], $firstFieldParams['not'], false, $firstFieldParams['value1'], $firstFieldParams['value2']);
 if (isEnableSection508()) {
 $includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n";
 //$includes.="<script language=\"JavaScript\" src=\"include/customlabels.js\"></script>\r\n";
 $includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
 // if not simple, this div already exist on page
 $includes .= "<div id=\"search_suggest\" class=\"search_suggest\"></div>";
 // search panel radio button assign
 $searchRadio = $searchControlBuilder->getSearchRadio();
 $xt->assign_section("all_checkbox_label", $searchRadio['all_checkbox_label'][0], $searchRadio['all_checkbox_label'][1]);
 $xt->assign_section("any_checkbox_label", $searchRadio['any_checkbox_label'][0], $searchRadio['any_checkbox_label'][1]);
 $xt->assignbyref("all_checkbox", $searchRadio['all_checkbox']);
 $xt->assignbyref("any_checkbox", $searchRadio['any_checkbox']);
 // search fields data
 if (GetLookupTable("Code", $strTableName)) {
     $pageObject->settingsMap["globalSettings"]['shortTNames'][GetLookupTable("Code", $strTableName)] = GetTableURL(GetLookupTable("Code", $strTableName));
 }
 $pageObject->fillFieldToolTips("Code");
 $srchFields = $pageObject->searchClauseObj->getSearchCtrlParams("Code");
 $firstFieldParams = array();
 if (count($srchFields)) {
     $firstFieldParams = $srchFields[0];
 } else {
     $firstFieldParams['fName'] = "Code";
     $firstFieldParams['eType'] = '';
     $firstFieldParams['value1'] = '';
     $firstFieldParams['opt'] = '';
     $firstFieldParams['value2'] = '';
     $firstFieldParams['not'] = false;
 }
 // create control
 $ctrlBlockArr = $searchControlBuilder->buildSearchCtrlBlockArr($id, $firstFieldParams['fName'], 0, $firstFieldParams['opt'], $firstFieldParams['not'], false, $firstFieldParams['value1'], $firstFieldParams['value2']);
 if (isEnableSection508()) {
 $includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n";
 //$includes.="<script language=\"JavaScript\" src=\"include/customlabels.js\"></script>\r\n";
 $includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
 // if not simple, this div already exist on page
 $includes .= "<div id=\"search_suggest\" class=\"search_suggest\"></div>";
 // search panel radio button assign
 $searchRadio = $searchControlBuilder->getSearchRadio();
 $xt->assign_section("all_checkbox_label", $searchRadio['all_checkbox_label'][0], $searchRadio['all_checkbox_label'][1]);
 $xt->assign_section("any_checkbox_label", $searchRadio['any_checkbox_label'][0], $searchRadio['any_checkbox_label'][1]);
 $xt->assignbyref("all_checkbox", $searchRadio['all_checkbox']);
 $xt->assignbyref("any_checkbox", $searchRadio['any_checkbox']);
 // search fields data
 if (GetLookupTable("UserID", $strTableName)) {
     $pageObject->settingsMap["globalSettings"]['shortTNames'][GetLookupTable("UserID", $strTableName)] = GetTableURL(GetLookupTable("UserID", $strTableName));
 }
 $pageObject->fillFieldToolTips("UserID");
 $srchFields = $pageObject->searchClauseObj->getSearchCtrlParams("UserID");
 $firstFieldParams = array();
 if (count($srchFields)) {
     $firstFieldParams = $srchFields[0];
 } else {
     $firstFieldParams['fName'] = "UserID";
     $firstFieldParams['eType'] = '';
     $firstFieldParams['value1'] = '';
     $firstFieldParams['opt'] = '';
     $firstFieldParams['value2'] = '';
     $firstFieldParams['not'] = false;
 }
 // create control
 $ctrlBlockArr = $searchControlBuilder->buildSearchCtrlBlockArr($id, $firstFieldParams['fName'], 0, $firstFieldParams['opt'], $firstFieldParams['not'], false, $firstFieldParams['value1'], $firstFieldParams['value2']);
 if (isEnableSection508()) {
 $includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n";
 //$includes.="<script language=\"JavaScript\" src=\"include/customlabels.js\"></script>\r\n";
 $includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
 // if not simple, this div already exist on page
 $includes .= "<div id=\"search_suggest\" class=\"search_suggest\"></div>";
 // search panel radio button assign
 $searchRadio = $searchControlBuilder->getSearchRadio();
 $xt->assign_section("all_checkbox_label", $searchRadio['all_checkbox_label'][0], $searchRadio['all_checkbox_label'][1]);
 $xt->assign_section("any_checkbox_label", $searchRadio['any_checkbox_label'][0], $searchRadio['any_checkbox_label'][1]);
 $xt->assignbyref("all_checkbox", $searchRadio['all_checkbox']);
 $xt->assignbyref("any_checkbox", $searchRadio['any_checkbox']);
 // search fields data
 if (GetLookupTable("Bill ID", $strTableName)) {
     $pageObject->settingsMap["globalSettings"]['shortTNames'][GetLookupTable("Bill ID", $strTableName)] = GetTableURL(GetLookupTable("Bill ID", $strTableName));
 }
 $pageObject->fillFieldToolTips("Bill ID");
 $srchFields = $pageObject->searchClauseObj->getSearchCtrlParams("Bill ID");
 $firstFieldParams = array();
 if (count($srchFields)) {
     $firstFieldParams = $srchFields[0];
 } else {
     $firstFieldParams['fName'] = "Bill ID";
     $firstFieldParams['eType'] = '';
     $firstFieldParams['value1'] = '';
     $firstFieldParams['opt'] = '';
     $firstFieldParams['value2'] = '';
     $firstFieldParams['not'] = false;
 }
 // create control
 $ctrlBlockArr = $searchControlBuilder->buildSearchCtrlBlockArr($id, $firstFieldParams['fName'], 0, $firstFieldParams['opt'], $firstFieldParams['not'], false, $firstFieldParams['value1'], $firstFieldParams['value2']);
 if (isEnableSection508()) {
 $includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n";
 //$includes.="<script language=\"JavaScript\" src=\"include/customlabels.js\"></script>\r\n";
 $includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
 // if not simple, this div already exist on page
 $includes .= "<div id=\"search_suggest\" class=\"search_suggest\"></div>";
 // search panel radio button assign
 $searchRadio = $searchControlBuilder->getSearchRadio();
 $xt->assign_section("all_checkbox_label", $searchRadio['all_checkbox_label'][0], $searchRadio['all_checkbox_label'][1]);
 $xt->assign_section("any_checkbox_label", $searchRadio['any_checkbox_label'][0], $searchRadio['any_checkbox_label'][1]);
 $xt->assignbyref("all_checkbox", $searchRadio['all_checkbox']);
 $xt->assignbyref("any_checkbox", $searchRadio['any_checkbox']);
 // search fields data
 if (GetLookupTable("Code", $strTableName)) {
     $pageObject->settingsMap["globalSettings"]['shortTNames'][GetLookupTable("Code", $strTableName)] = GetTableURL(GetLookupTable("Code", $strTableName));
 }
 $pageObject->fillFieldToolTips("Code");
 $srchFields = $pageObject->searchClauseObj->getSearchCtrlParams("Code");
 $firstFieldParams = array();
 if (count($srchFields)) {
     $firstFieldParams = $srchFields[0];
 } else {
     $firstFieldParams['fName'] = "Code";
     $firstFieldParams['eType'] = '';
     $firstFieldParams['value1'] = '';
     $firstFieldParams['opt'] = '';
     $firstFieldParams['value2'] = '';
     $firstFieldParams['not'] = false;
 }
 // create control
 $ctrlBlockArr = $searchControlBuilder->buildSearchCtrlBlockArr($id, $firstFieldParams['fName'], 0, $firstFieldParams['opt'], $firstFieldParams['not'], false, $firstFieldParams['value1'], $firstFieldParams['value2']);
 if (isEnableSection508()) {
 $includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n";
 //$includes.="<script language=\"JavaScript\" src=\"include/customlabels.js\"></script>\r\n";
 $includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
 // if not simple, this div already exist on page
 $includes .= "<div id=\"search_suggest\" class=\"search_suggest\"></div>";
 // search panel radio button assign
 $searchRadio = $searchControlBuilder->getSearchRadio();
 $xt->assign_section("all_checkbox_label", $searchRadio['all_checkbox_label'][0], $searchRadio['all_checkbox_label'][1]);
 $xt->assign_section("any_checkbox_label", $searchRadio['any_checkbox_label'][0], $searchRadio['any_checkbox_label'][1]);
 $xt->assignbyref("all_checkbox", $searchRadio['all_checkbox']);
 $xt->assignbyref("any_checkbox", $searchRadio['any_checkbox']);
 // search fields data
 if (GetLookupTable("ID", $strTableName)) {
     $pageObject->settingsMap["globalSettings"]['shortTNames'][GetLookupTable("ID", $strTableName)] = GetTableURL(GetLookupTable("ID", $strTableName));
 }
 $pageObject->fillFieldToolTips("ID");
 $srchFields = $pageObject->searchClauseObj->getSearchCtrlParams("ID");
 $firstFieldParams = array();
 if (count($srchFields)) {
     $firstFieldParams = $srchFields[0];
 } else {
     $firstFieldParams['fName'] = "ID";
     $firstFieldParams['eType'] = '';
     $firstFieldParams['value1'] = '';
     $firstFieldParams['opt'] = '';
     $firstFieldParams['value2'] = '';
     $firstFieldParams['not'] = false;
 }
 // create control
 $ctrlBlockArr = $searchControlBuilder->buildSearchCtrlBlockArr($id, $firstFieldParams['fName'], 0, $firstFieldParams['opt'], $firstFieldParams['not'], false, $firstFieldParams['value1'], $firstFieldParams['value2']);
 if (isEnableSection508()) {
 $includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n";
 //$includes.="<script language=\"JavaScript\" src=\"include/customlabels.js\"></script>\r\n";
 $includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
 // if not simple, this div already exist on page
 $includes .= "<div id=\"search_suggest\" class=\"search_suggest\"></div>";
 // search panel radio button assign
 $searchRadio = $searchControlBuilder->getSearchRadio();
 $xt->assign_section("all_checkbox_label", $searchRadio['all_checkbox_label'][0], $searchRadio['all_checkbox_label'][1]);
 $xt->assign_section("any_checkbox_label", $searchRadio['any_checkbox_label'][0], $searchRadio['any_checkbox_label'][1]);
 $xt->assignbyref("all_checkbox", $searchRadio['all_checkbox']);
 $xt->assignbyref("any_checkbox", $searchRadio['any_checkbox']);
 // search fields data
 if (GetLookupTable("Code", $strTableName)) {
     $pageObject->settingsMap["globalSettings"]['shortTNames'][GetLookupTable("Code", $strTableName)] = GetTableURL(GetLookupTable("Code", $strTableName));
 }
 $pageObject->fillFieldToolTips("Code");
 $srchFields = $pageObject->searchClauseObj->getSearchCtrlParams("Code");
 $firstFieldParams = array();
 if (count($srchFields)) {
     $firstFieldParams = $srchFields[0];
 } else {
     $firstFieldParams['fName'] = "Code";
     $firstFieldParams['eType'] = '';
     $firstFieldParams['value1'] = '';
     $firstFieldParams['opt'] = '';
     $firstFieldParams['value2'] = '';
     $firstFieldParams['not'] = false;
 }
 // create control
 $ctrlBlockArr = $searchControlBuilder->buildSearchCtrlBlockArr($id, $firstFieldParams['fName'], 0, $firstFieldParams['opt'], $firstFieldParams['not'], false, $firstFieldParams['value1'], $firstFieldParams['value2']);
 if (isEnableSection508()) {