xmlDocument.setParameter("windowPath", Utility.getTabURL(this, tabId, "E"));
ToolBar toolbar = new ToolBar(this, vars.getLanguage(), "Expenseinvoice", (strCommand
.equals("NEW") || (data == null || data.length == 0)), "document.frmMain.inpcInvoiceId",
"", "", "".equals("Y"), "ExpenseInvoice", strReplaceWith, true);
toolbar.prepareEditionTemplate("N".equals("Y"), false, vars.getSessionValue("#ShowTest", "N")
.equals("Y"), "STD", false);
xmlDocument.setParameter("toolbar", toolbar.toString());
try {
WindowTabs tabs = new WindowTabs(this, vars, tabId, windowId);