dojo.provide("parus.balanceReportCheckProtocolPrint");dojo.require("parus.parus8");dojo.require("parus.database");dojo.require("parus.balanceReportCheckProtocolTabPage");dojo.mixin(parus,{balanceReportCheckProtocolPrint:{print:function(){var f;var e;var d;var c;var b;dojo.xhrGet({url:"../.system/session.xml",handleAs:"xml",sync:true,preventCache:true,load:function(h){if(!dojo.isIE){h.normalize()}var g=h.documentElement.getElementsByTagName("*");for(var j=0;j!=g.length;j++){if(g[j].nodeName=="querydata"){f=g[j].childNodes.item(0).nodeValue}else{if(g[j].nodeName=="full"){e=(g[j].childNodes.item(0).nodeValue=="1")}else{if(g[j].nodeName=="handler"){d=g[j].childNodes.item(0).nodeValue}else{if(g[j].nodeName=="title"){c=g[j].childNodes.item(0).nodeValue}else{if(g[j].nodeName=="htmldata"){b=g[j].childNodes.item(0).nodeValue}}}}}}return(h)}});if(f){parus.database.connected=d;b=parus.balanceReportCheckProtocolTabPage.printRender(dojo.fromJson(f),e,c)}if(b){document.body.insertAdjacentHTML("afterBegin",b)}var a=document.body.firstChild;document.title=(!dojo.isIE||dojo.isIE>=10)?a.textContent:a.innerText}}});