// add group into guideline
                $guidelineGroupsDAO->Create($_GET['gid'], $name, '', '');
            }
            if (isset($_GET['ggid'])) {
                // add group into guideline
                $guidelineSubgroupsDAO->Create($_GET['ggid'], $name, '');
            }
        }
        if ($_GET['action'] == 'edit') {
            if (isset($_GET['ggid'])) {
                // add group into guideline
                $guidelineGroupsDAO->Update($_GET['ggid'], $name, '', '');
            }
            if (isset($_GET['gsgid'])) {
                // add group into guideline
                $guidelineSubgroupsDAO->Update($_GET['gsgid'], $name, '');
            }
        }
        $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
        // force refresh parent window
        $javascript_run_now = '<script language="JavaScript">
<!--
window.opener.location.href = window.opener.location.href;
self.close();
//-->
</script>';
    }
}
if ($_GET['action'] == 'edit') {
    if (isset($_GET['ggid'])) {
        $row = $guidelineGroupsDAO->getGroupByID($_GET['ggid']);