  // Global variable for the print window 
  var windowHandle; 
  // Disable at start
  document.styleSheets[0].disabled = true;
  // Disables all of the non-print stylesheets 
  function toggleStylesheet(){
    windowHandle.document.styleSheets[1].disabled = true;
    windowHandle.document.styleSheets[2].disabled = true;
    windowHandle.document.styleSheets[3].disabled = true;	
    windowHandle.document.styleSheets[0].disabled = false;	
    windowHandle.focus(); 
    windowHandle.print();
  }

  // Open print version window 
  function showPrintVersion( ) { 
    var winattributes="width=650px,height=550px,resizable=yes,menubar,toolbar,scrollbars"; 
    windowHandle = window.open ( document.URL,"", winattributes);
    setTimeout("toggleStylesheet()",1000);
  }


  function printDoc (filename) {
    var winattributes="width=650px,height=550px,resizable=yes,menubar,toolbar,scrollbars";
    docWindow = window.open (filename,"", winattributes);
    this.focus();
    this.print();
  }

  function printWin () {
    windowHandle=this;
    setTimeout("toggleStylesheet()",1000);
  }
