adds a dhtmlxForm object to the pop-up window
var myPop = new dhtmlXPopup({ ... }); var myForm = myPop.attachForm([ {type: "input", label: "Email Address", name: "email"}, {type: "password", label: "Password", name: "pwd"} ]);
The parameter is optional. If you need, you can load the form's data later, e.g. with the loadStruct() method.