abLoadOnlyOnce=false; function getContentFrame_958(ifrm) { if (ifrm.contentDocument) { // NS6 return ifrm.contentDocument; } else if (ifrm.contentWindow) { // IE5.5 and IE6 return ifrm.contentWindow.document; } else if (ifrm.document) { // IE5 return ifrm.document; } return NULL; } function pvDoLoad_958(ifrm) { if(!abLoadOnlyOnce) { printPreviewTo_958(getContentFrame_958(ifrm)); pvResize_958(ifrm); } } function pvResize_958(ifrm) { pvFixTableWidth_958(ifrm); pvFixFrameHeight_958(ifrm); setTimeout('pvResize_958(document.getElementById("pvIfrm_958"))', 500); } function pvFixTableWidth_958(ifrm) { doc = getContentFrame_958(ifrm); tbl = doc.getElementById('abPreviewTbl'); if(tbl) { w = ifrm.offsetWidth; tbl.width = w; } } function pvFixFrameHeight_958(ifrm) { doc = getContentFrame_958(ifrm); tbl = doc.getElementById('abPreviewTbl'); if(tbl) { h = tbl.offsetHeight; ifrm.height = h; } } function printPreviewTo_958(doc) { doc.writeln(''); doc.close(); } document.writeln(''); document.writeln('\nsetTimeout(\'pvDoLoad_958(document.getElementById("pvIfrm_958"))\', 40);\n'); document.writeln('\nsetTimeout(\'pvResize_958(document.getElementById("pvIfrm_958"))\', 100);\n');