var toolbar=new dojox.sketch.Toolbar({"figure":figure}); node.appendChild(toolbar.domNode); return toolbar;