Toolbar to Accordion Cell

Hi to all,

I have got a problem to attach a toolbar to a accordion tab. This is my code

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
		<title id='title'>BESI Marine Systems GmbH & Co. KG - Auftragsbestandsliste</title>
		<link rel="stylesheet" type="text/css" href="../../dhtmlx/dhtmlx.css" />
		<script type="text/javascript" src="../../dhtmlx/dhtmlx.js"></script>
		<script src="../../dhtmlx/connector/connector.js"></script>
		<script>
			function buildInterface(){
				dhxWins = new dhtmlXWindows();
		
				// Layout
				ablLayout = new dhtmlXLayoutObject(document.body, "1C");
				ablLayout.cells("a").setText("Auftragsbestandsliste");
		
				// Grid Master
				ablGridMaster = ablLayout.cells("a").attachGrid();
				ablGridMaster.setImagePath("../../dhtmlx/imgs/");
				ablGridMaster.setHeader("Kommission,NeubauNr,Kunde,Liefertermin,KW,Auftragsart,Bestellung,Beschreibung");
				ablGridMaster.attachHeader("#text_filter,#text_filter,#select_filter,#text_filter,#select_filter,#select_filter,&nbsp;,,&nbsp;");
				ablGridMaster.setInitWidths("75,120,150,80,90,150,*,*");
				ablGridMaster.setColAlign("right,left,left,right,right,left,left,left");
				ablGridMaster.setColTypes("ro,ro,ro,ro,ro,ro,ro,ro");
				ablGridMaster.setColSorting("int,str,str,date,str,str,str,str");
				ablGridMaster.enableMultiline(true);
				ablGridMaster.init();
				ablGridMaster.loadXML("xml/master.xml");
				ablGridMaster.attachEvent("onRowDblClicked", function (rID,cInd){
					if(!dhxWins.window("ablDetailsWin")){
						win = dhxWins.createWindow("ablDetailsWin",20,20,500,800);
						win.center();
						win.attachEvent("onClose",function(){
							win.hide;							
							return true;
						});
					}
					else
						win.show("ablDetailsWin");
						dhxWins.window("ablDetailsWin").setText("Auftrag "+rID);
			
					// Accordion 
					ablAccordion = win.attachAccordion(rID,cInd);
					ablAccordion.addItem("a1", "Auftrag");
					ablAccordion.addItem("a2", "Vertrieb");
					ablAccordion.addItem("a3", "Vertriebsabwicklung");
					ablAccordion.addItem("a4", "m. Konstruktion");
					ablAccordion.addItem("a5", "e. Konstruktion");
					ablAccordion.openItem("a1");

				});
			}
			dhtmlxEvent(window,"load", buildInterface);
    </script>
		<style>
			html, body {
				width: 100%;
				height: 100%;
				margin: 0px;
				padding: 0px;
				overflow: hidden;
			}
		</style>
	</head>
	<body>
	</body>
</html>

This application shows a grid in a layout component. After a doubleclick on a row, a window will open. This window include a accordion. Everything works fine. The window.hide function also.
I want to attach for every accordion cell a separate toolbar. But when I try to attach a toolbar with this code, the toolbar will be showed but the hide function of the windows doesen´t work. The window will not hide.

vertriebsabwicklungToolbar = ablAccordion.cells("a1").attachToolbar();

Please, can anybody help me?
Kindly regrads
Daniel

Erverything works fine now. I have detached the toolbars at the “onClose”-Event of the window and now all function works.