$comment = new WT_Comment();
         $comment->delete_all(json_decode(stripslashes($_POST["id"])), $_POST["_nonce"]);
         $comment->db_response("json");
     }
     break;
     //RSVP
 //RSVP
 case "not-attend":
     $rsvp = new WT_RSVP();
     $rsvp->notattend_event($_POST["event_id"]);
     $rsvp->panel_markup($_POST["event_id"]);
     break;
 case "attend":
     $rsvp = new WT_RSVP($_POST["event_id"]);
     $rsvp->attend_event($_POST["event_id"]);
     $rsvp->panel_markup($_POST["event_id"]);
     break;
 case "delete-rsvp":
     if ($_POST["rsvp_id"]) {
         $rsvp = new WT_RSVP($_POST["rsvp_id"]);
         $rsvp->remove();
         $rsvp->db_response("json");
         //echo json_encode(array("type"=>"success"));
     }
     break;
     // EVENTS
 // EVENTS
 case "get_event":
     $event = new WT_Event($_POST["event_id"]);
     if (!empty($_POST["event_id"])) {
         $event->retrieve();