// workaround for the infamous Netscape CSS- and Layer-bug:
// reloads the window on resize
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


// ----------------------------------------------------------------------------------------
// Printing
// ---------------------------------------------------------------------------------------- 
function openWindow(url,winName,w,h)  {
 
 PopupWindow=null; 
 var LeftPos=20;
 var TopPos=20;
 features = 'width='+ w + ',height='+ h + ',top=' + TopPos + ',left=' + LeftPos + ',location=no,directories=no,menubar=yes,toolbar=yes,status=no,scrollbars=yes,resizable=yes,dependent=yes';
      PopupWindow = open(url,winName,features);
      if (PopupWindow != null) { 
          PopupWindow.focus();
     }
}

function printPage() {
if (window.print) {
    window.print() ;  
} else {
    var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
    WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box    WebBrowser1.outerHTML = "";  
}
}