function _EDIT($edit)
 {
     $cid = JRequest::getVar('cid', array(0), '', 'array');
     $cid = intval($cid[0]);
     $text = $edit ? JText::_('Edit') : JText::_('New');
     JToolBarHelper::title(JText::_('Article') . ': <small><small>[ ' . $text . ' ]</small></small>', 'addedit.png');
     JToolBarHelper::preview('index.php?option=com_content&id=' . $cid . '&tmpl=component', true);
     if ($edit) {
         JToolBarHelper::save();
     } else {
         JToolBarHelper::submit();
     }
     JToolBarHelper::apply();
     if ($edit) {
         JToolBarHelper::deleteList();
     }
     if ($edit) {
         // for existing articles the button is renamed `close`
         JToolBarHelper::cancel('cancel', 'Close');
     } else {
         JToolBarHelper::cancel();
     }
     JToolBarHelper::help('screen.content.edit');
 }