function companies_list_BeforeShow(&$sender)
{
    $companies_list_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $companies_list;
    //Compatibility
    //End companies_list_BeforeShow
    //Custom Code @45-2A29BDB7
    // -------------------------
    // Write your own code here.
    $del_guid = CCGetFromGet("del_guid", "");
    $o = CCGetFromGet("o", "");
    if ($o == "delrecord" && strlen($del_guid) > 0) {
        global $FileName;
        $params["guid"] = $del_guid;
        $customers = new Customers();
        $customers->deleteCustomer($params);
        $querystring = CCGetQueryString("QueryString", array("o", "del_guid"));
        //Forcing redirect
        header("Location: {$FileName}?{$querystring}");
    }
    // -------------------------
    //End Custom Code
    //Close companies_list_BeforeShow @1-90246C48
    return $companies_list_BeforeShow;
}
function customers_list_BeforeShow(&$sender)
{
    $customers_list_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $customers_list;
    //Compatibility
    //End customers_list_BeforeShow
    //Custom Code @69-2A29BDB7
    // -------------------------
    // Write your own code here.
    //Delete record operation
    $del_guid = CCGetFromGet("del_guid", "");
    $o = CCGetFromGet("o", "");
    $mr = CCGetFromGet("mr", "customers");
    if ($o == "delrecord" && strlen($del_guid) > 0) {
        global $FileName;
        $params["guid"] = $del_guid;
        $customers = new Customers();
        $customers->deleteCustomer($params);
        $querystring = CCGetQueryString("QueryString", array("o", "del_guid"));
        //Forcing redirect
        header("Location: {$FileName}?{$querystring}");
    }
    if ($mr == "contacts") {
        global $CCSLocales;
        $customers_list->lbtitle->SetValue($CCSLocales->GetText("contacts"));
    } else {
        global $CCSLocales;
        $customers_list->lbtitle->SetValue($CCSLocales->GetText("itassestment"));
    }
    // -------------------------
    //End Custom Code
    //Close customers_list_BeforeShow @1-EE568BA4
    return $customers_list_BeforeShow;
}