dhtmlxwindow how cas close in child document (sorry im not g

im using this code (parent page)



window.onload = function() {

var ws= new dhtmlXWindows();

ws.setImagePath(’<%=imgF%>windowimages/’);

ws.enableAutoViewport(true);

ws.setSkin(‘dhx_blue’);

var wi = ws.createWindow(‘Login’, 0, 0, 400,100);

wi.setText(‘Login’);

ws.window(‘Login’).attachURL(‘l.j’);

ws.window(‘Login’).center();

ws.window(‘Login’).denyMove();

ws.window(‘Login’).denyResize();

ws.window(‘Login’).button(‘minmax1’).hide();

}







-child page-

parent.ws.window(‘Login’).close();



--> error --> i want close winow

ws should be global variable.