ZIndex problem

Hi!
I faced a problem connected with dialog zindex. I have a dialog which opens another dialog (don't know if it matters, I guess it could happen even with one dialog). On the second dialog I have several edits and dropdowns. zindexes of those controls are greater than dialog's zindex. But after several calls of
JQDialogOptions.Open();
JQDialogOptions.Close();
dialog div's zindex in browser becomes greater than controls ones and controls become non-editable. I tried to check dialog zindex before its opening to update the controls' ones, but this value always stays the same as specified in the form editor.
I faced a problem connected with dialog zindex. I have a dialog which opens another dialog (don't know if it matters, I guess it could happen even with one dialog). On the second dialog I have several edits and dropdowns. zindexes of those controls are greater than dialog's zindex. But after several calls of
JQDialogOptions.Open();
JQDialogOptions.Close();
dialog div's zindex in browser becomes greater than controls ones and controls become non-editable. I tried to check dialog zindex before its opening to update the controls' ones, but this value always stays the same as specified in the form editor.