}
 }
 //msg_remgrppois
 if ($action == msg_remgrppois) {
     if (isset($poilist)) {
         $lst1 = $js2->decode(str_replace("\\\"", "\"", $poilist));
         if ($lst1 != null) {
             $ok = true;
             $poiid = "";
             $poi1 = null;
             $gf = new GroupFactory();
             for ($i = 0; $i < count($lst1); $i++) {
                 $poiid = $lst1[$i];
                 $poi1 = $pof->getPoiById($usr->getUid(), $poiid);
                 if ($poi1 != null) {
                     if (!$gf->remGroupItem($groupid, $usr->getUid(), $poi1->getPoiId(), "Poi")) {
                         $ok = false;
                     }
                 }
             }
             if ($ok) {
                 $grp = $gf->getGroup($usr->getUid(), $groupid);
                 if ($grp != null) {
                     echo application_getMessage($grp);
                 } else {
                     echo application_getMessage(msg_failed);
                 }
             } else {
                 echo application_getMessage(msg_failed);
             }
         }