MENU_virtuemart::LISTS_MENU_NEW();
        }
        // For (Un)Publishing Items
        if (in_array($page, $allowsListPublish)) {
            MENU_virtuemart::LISTS_MENU_PUBLISH('changePublishState');
        }
        // Delete Items
        if (!empty($allowsListDeletion[$page])) {
            vmMenuBar::divider();
            vmMenuBar::spacer();
            MENU_virtuemart::LISTS_MENU_DELETE($allowsListDeletion[$page]);
        }
        vmMenuBar::endTable();
    } elseif ($page == "zone.assign_zones") {
        vmMenuBar::startTable();
        vmMenuBar::custom('save', $page, $vmIcons['save_icon'], $vmIcons['save_icon2'], 'Save Zone Assignments', true, "adminForm", 'zoneassign');
        vmMenuBar::endTable();
    } elseif ($page == "product.product_move") {
        vmMenuBar::startTable();
        vmMenuBar::custom('save', 'product.product_list', $vmIcons['save_icon'], $vmIcons['save_icon2'], 'Move Products', false, "adminForm", 'productMove');
        vmMenuBar::spacer();
        vmMenuBar::customHref($sess->url($_SERVER['PHP_SELF'] . '?page=product.product_list'), $vmIcons['cancel_icon'], $vmIcons['cancel_icon2'], $VM_LANG->_('CMN_CANCEL'));
        vmMenuBar::spacer();
        vmMenuBar::endTable();
    }
    if (vmIsJoomla(1.5) && $vmLayout != 'extended' && (defined('_VM_IS_BACKEND') && stristr($_SERVER['PHP_SELF'], 'index3.php') || !defined('_VM_IS_BACKEND') && stristr($_SERVER['PHP_SELF'], 'index2.php'))) {
        $bar =& JToolBar::getInstance('toolbar');
        echo $bar->render();
        echo '<br class="clr" />';
    }
}
 /**
  * The function for all page which allow adding new items
  * usually when page= *.*_list
  */
 function LISTS_MENU_NEW()
 {
     global $page, $mosConfig_live_site, $VM_LANG, $limitstart, $vmIcons;
     $my_page = str_replace('list', 'form', $page);
     vmMenuBar::addNew("new", $my_page, $VM_LANG->_('CMN_NEW'));
     if ($page == 'admin.country_state_list') {
         // Back to the country
         vmMenuBar::divider();
         $href = $_SERVER['PHP_SELF'] . '?option=com_virtuemart&page=admin.country_list';
         vmMenuBar::customHref($href, $vmIcons['back_icon'], $vmIcons['back_icon2'], '&nbsp;' . $VM_LANG->_('PHPSHOP_BACK_TO_COUNTRY'));
     } elseif ($page == 'product.file_list') {
         // Close the window
         vmMenuBar::divider();
         vmMenuBar::cancel();
     }
     vmMenuBar::spacer();
 }