Add an IFRAME to the page:
<IFRAME id = "divfrm" src = "" scrolling = "no" frameborder = "0" style = "position: absolute;
Top: 0px; left: 0px; display: none; "> </iframe>
Then add the IFRAME in the script that displays the DIV:
VaR divid = Document. getelementbyid ("udivid ");
VaR ifrref = Document. getelementbyid ("divfrm ");
Divid. style. zindexes = "100 ";
Divid. style. Display = "";
VaR v_left = (document. Body. clientWidth-divId.clientWidth)/2 + document. Body. scrollleft;
VaR v_top = (document. Body. clientHeight-divId.clientHeight)/2 + document. Body. scrolltop;
Divid. style. Left = v_left;
Divid. style. Top = v_top;
Ifrref. style. width = divid. offsetwidth;
Ifrref. style. Height = divid. offsetheight;
Ifrref. style. Top = divid. style. Top;
Ifrref. style. Left = divid. style. Left;
Ifrref. style. zindex = divid. style. zindex-1;
Ifrref. style. Display = "Block ";