function edit($CommentId = NULL)
 {
     $redirect_to = implode('/', array_slice($this->uri->rsegment_array(), 3));
     $property_arguments = array('verb' => 'edit', 'verbed' => 'edited');
     if (!$this->_DecideEditPrivilages($CommentId, $redirect_to, $comment, $thread, $property_arguments)) {
         return;
     }
     $this->load->library('comment_views');
     $main_view = new CommentViewAdd($comment['thread_id']);
     $main_view->SetThread($thread);
     // Do the main processing if any post data
     $main_view->SetExistingComment($comment);
     if ($main_view->CheckPost()) {
         redirect($redirect_to);
     }
     // Display the page.
     $this->pages_model->SetPageCode('comment_edit');
     $this->main_frame->SetContent($main_view);
     $this->main_frame->Load();
 }