abLoadOnlyOnce=false;
function getContentFrame_6559(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_6559(ifrm) {
if(!abLoadOnlyOnce) {
printPreviewTo_6559(getContentFrame_6559(ifrm));
pvResize_6559(ifrm);
}
}
function pvResize_6559(ifrm) {
pvFixTableWidth_6559(ifrm);
pvFixFrameHeight_6559(ifrm);
setTimeout('pvResize_6559(document.getElementById("pvIfrm_6559"))', 500);
}
function pvFixTableWidth_6559(ifrm) {
doc = getContentFrame_6559(ifrm);
tbl = doc.getElementById('abPreviewTbl');
if(tbl) {
w = ifrm.offsetWidth;
tbl.width = w;
}
}
function pvFixFrameHeight_6559(ifrm) {
doc = getContentFrame_6559(ifrm);
tbl = doc.getElementById('abPreviewTbl');
if(tbl) {
h = tbl.offsetHeight;
ifrm.height = h;
}
}
function printPreviewTo_6559(doc) {
doc.writeln('');
doc.close();
}
document.writeln('');
document.writeln('\nsetTimeout(\'pvDoLoad_6559(document.getElementById("pvIfrm_6559"))\', 40);\n');
document.writeln('\nsetTimeout(\'pvResize_6559(document.getElementById("pvIfrm_6559"))\', 100);\n');