win = Ext.widget("window", {
title : "",
closeAction : "hide",
maximizable : true,
width : 400,
height : 310,
minHeight : 300,
layout : "fit",
resizable : true,
modal : true,
items : [form]
title : "",
closeAction : "hide",
maximizable : true,
width : 400,
height : 310,
minHeight : 300,
layout : "fit",
resizable : true,
modal : true,
items : [form]
});
win.removeAll(false);
win.items.add(form1);
win.doLayout();
win.show()