public function deleteAction()
 {
     if ($customer_id = $this->getRequest()->getPost('customer_id')) {
         try {
             $customer = new Customer_Model_Customer();
             $customer->find($customer_id);
             if (!$customer->getId() || $customer->getAppId() != $this->getApplication()->getId()) {
                 throw new Exception($this->_("An error occurred while saving. Please try again later."));
             }
             $customer_id = $customer->getId();
             $customer->delete();
             $html = array("success" => 1, "customer_id" => $customer_id);
         } catch (Exception $e) {
             $html = array('message' => $e->getMessage(), 'message_button' => 1, 'message_loader' => 1);
         }
         $this->getResponse()->setBody(Zend_Json::encode($html))->sendResponse();
         die;
     }
 }