<!--

function printDoc (strUrl) {
  if (window.print && window.frames && window.frames.hiddenIframe) {
    var strHtml = '';
    strHtml += '<html>';
    strHtml += '<body onload="parent.printFrame(window.frames.printerContainer);">';
    strHtml += '<iframe name="printerContainer" src="' + strUrl + '"><\/iframe>';
    strHtml += '<\/body><\/html>';
    var objIFrameDocument = window.frames.hiddenIframe.document;
    objIFrameDocument.open();
    objIFrameDocument.write(strHtml);
    objIFrameDocument.close();
  }
  else {
    if (confirm('Do you want to print this page?'))
    {
      var objWin = window.open('', 'printerWindow', 'width=600,height=300,resizable,scrollbars,toolbar,menubar');
      var strHtml = '';
      strHtml += '<html>';
      strHtml += '<frameset rows="100%, *" ' + 'onload="opener.printFrame(window.printerContainer);">';
      strHtml += '<frame name="printerContainer" src="' + strUrl + '" \/>';
      strHtml += '<frame src="about:blank" \/>';
      strHtml += '<\/frameset><\/html>';
      objWin.document.open();
      objWin.document.write(strHtml);
      objWin.document.close();
    }
  }
}
function printFrame (objFrame) {
  if (objFrame.print) {
    objFrame.focus();
    objFrame.print();
  }
}

//-->
