Modal Windows and flow of program

I am opening a window with the following code.



dhxWins = new dhtmlXWindows();

var win2 = dhxWins.createWindow(‘auxiliar’,300,300,300, 300);

win2.setModal(true);

alert(‘Prueba de Modal’);



The alert is executed and not wait until the window is closed.



Is possible with Dhtmlxwindows interrupt the flow of the program until a modal window is closed