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() {
var windowForm = [{
type: “settings”,
position: “label-left”,
labelWidth: 100,
inputWidth: 120
}, {
type: “button”,
value: “Search”
type: “button”,
value: “Proceed”

dhxWins = new dhtmlXWindows();
w1 = dhxWins.createWindow("w1", 0, 0, 800, 500);
dhxWins.window("w1").setText("Massage MetaData Serach");
var form = dhxWins.window("w1").attachForm(windowForm);


Make sure, what you’ve unclkude all required files in your library. See an example of form in window below: … indow.html