private function getFileSize($fileName)
 {
     $cfg = Zend_Registry::get('cfg');
     $res = $cfg['docs']['path'] . $fileName;
     return Uman_Utils::getFileSize($res);
     /*		$size = @filesize($res);
         if ($size > 104857.6) {
         	$size = round($size / 10485.76) / 100 . " Mb";
         } elseif ($size > 100) {
         	$size = round($size / 1024) . " Kb";
         } else $size = $size + " B";
     
     		return $size;*/
 }
 public function showAction()
 {
     $form = Mail_Model_Mail::getMailForm($this->view->docid);
     if ($this->getRequest()->isPost() && $form->isValid($this->getRequest()->getParams())) {
         try {
             Mail_Model_Mail::sendMail($this->view->docid, $this->getRequest()->getParams());
             $this->view->message = 'Sent successfully';
         } catch (Zend_Exception $e) {
             $this->view->message = 'Error: ' . $e->getMessage();
         }
     } else {
         $this->view->form = $form;
         $this->view->content = Uman_Utils::getXhtml($this->view->docid);
     }
 }