Inside popup window to display form

I am using this function,When this function is called the window will popup and in window i have written code for form and i have atteched form this way
“var form = dhxWins.window(“w1”).attachForm(windowForm);” but it shows me this error…“Microsoft JScript runtime error: Object doesn’t support this property or method”.
So kindly help me.

function createWindow() {
debugger;
var windowForm = [{
type: “settings”,
position: “label-left”,
labelWidth: 100,
inputWidth: 120
}, {
type: “button”,
value: “Search”
},{
type: “button”,
value: “Proceed”
}];

dhxWins = new dhtmlXWindows();
dhxWins.setImagePath("../MiDHTMLx/dxWindows/codebase/imgs/")      
w1 = dhxWins.createWindow("w1", 0, 0, 800, 500);
dhxWins.window("w1").center();
dhxWins.window("w1").setText("Massage MetaData Serach");
dhxWins.window("w1").setModal(true);
var form = dhxWins.window("w1").attachForm(windowForm);

}

Hello
Make sure, what you’ve unclkude all required files in your library. See an example of form in window below:
dhtmlx.com/docs/products/dht … indow.html