$fileObj->manipImageUpload('pso_portfolio_cat', $_REQUEST['pocat_id'], PROJECTS_CAT_PHOTO_SML, PROJECTS_CAT_PHOTO_MED, PROJECTS_CAT_PHOTO_BIG, true, false, PROJECTS_CAT_PHOTO_MEDBIG, PROJECTS_CAT_PHOTO_LRG, PROJECTS_CAT_PHOTO_BO);
         $fileObj = null;
     }
     $in2Action = 'edit';
     $frmAction = 'edit';
     goToURL($actScript . "?recordId=" . $_REQUEST['pocat_id'] . "&in2Action=editRecord&frmAction=edit{$error}");
 case 'editRecord':
     if ($recordId) {
         $id = $recordId;
     } elseif ($pocat_id) {
         $id = $pocat_id;
     } else {
         $id = null;
     }
     if ($id) {
         $where = "WHERE pocat_id = " . $obj->getSqlColValue('pocat_id', $id);
         $record = $obj->SelectRecord(null, $where, MYSQL_ASSOC, false);
         if (is_array($record)) {
             globalizeArray($record);
         } else {
             $_SESSION['errorMsgs'] = array('erroneousParam' => 'Erroneous parameter passed.');
             $error = '&error=1';
             goToURL($actScript . $error);
         }
     } else {
         goToURL($actScript);
     }
     $buttons = '<a href="#" class="btn btn-info btn-circle btn-block"><i class="icon-eye"></i>&nbsp;Preview</a>';
     $buttons .= '<hr/>';
     $buttons .= '<button type="submit" class="btn btn-block btn-success btn-circle" onclick="document.getElementById(\'in2Action\').value=\'edit\'"><i class="fa fa-check"></i>&nbsp;' . $arrLang[$_SESSION['lang']]['update'] . '</button>';
     $buttons .= '<button type="button" class="btn btn-block btn-danger btn-circle" onclick="jQuery(\'#btnReset\').click(); deleteFrmRecord()"><i class="fa fa-trash-o"></i>&nbsp;' . $arrLang[$_SESSION['lang']]['delete'] . '</button>';