var w = null; var oldColor = ""; var lastHighlight = ""; function OpenCenteredWindow(url) { var xMax; var xOffset; var yMax; var yOffset; var newContent; var newUrl; var idValue; var nameValue; var arr; if ((w != null) && (!w.closed)) { w.location.href = url; w.focus(); return; } if (document.all) xMax = screen.width, yMax = screen.height; else if (document.layers) xMax = window.outerWidth, yMax = window.outerHeight; else xMax = 640, yMax=480; xOffset = (xMax - 638)/2, yOffset = (yMax - 300)/2; w = window.open(url, "boawin", "width=638,height=300,left=" + xOffset.toString() + ",top=" + yOffset.toString() + ", screenX=" + xOffset.toString() + ",screenY=" + yOffset.toString() + ", resizable=yes, status=0,directories=0,toolbar=0,menubar=0,scrollbars=1"); if (w.creator == null) { w.creator = window; w.opener = window; w.creator.name = "form"; w.name = "boawin"; } w.focus(); } function printReport() { document.getElementById('btnPrint').style.visibility = 'hidden'; document.getElementById('btnClose').style.visibility = 'hidden'; document.getElementById('btnView').style.visibility = 'hidden'; window.print(); document.getElementById('btnPrint').style.visibility = 'visible'; document.getElementById('btnClose').style.visibility = 'visible'; document.getElementById('btnView').style.visibility = 'visible'; } function printCredit() { document.getElementById('btnPrint').style.visibility = 'hidden'; document.getElementById('btnClose').style.visibility = 'hidden'; window.print(); document.getElementById('btnPrint').style.visibility = 'visible'; document.getElementById('btnClose').style.visibility = 'visible'; }