public function saveNewAction()
 {
     $jOut = array();
     $data = ProNav_Utils::stripTagsAndTrim(Zend_Json::decode($this->_getParam('data')));
     if (!ProNav_Auth::IsEmployee()) {
         $data['done_for_corporation'] = ProNav_Auth::getCorporationID();
         $data['location_owner'] = $data['done_for_corporation'];
         $data['location_owner'] = ProNav_Auth::getCorporationID();
         $data['bill_type'] = $data['stage_id'] == ProNav_Utils::STAGE_AUTHORIZED ? Application_Model_Project::BILL_TYPE_TM : new Zend_Db_Expr('Null');
     }
     $errors = $this->validateNew($data);
     $new_project_id = 0;
     if (count($errors) == 0) {
         $new_project_id = Application_Model_Projects::CreateProject($data);
     }
     $jOut['errors'] = $errors;
     $jOut['project_id'] = $new_project_id;
     echo Zend_Json::encode($jOut);
 }