pane=document.createElement("div");
pane.setAttribute("id","diaDiv");
document.body.appendChild(pane);
var dia=new dijit.Dialog({title:"dojo dialog"},pane);
dia.show();
new dijit.form.Button({ "class": "large", label:"wokao",onClick:foo }, dojo.byId("id1"));