text: JRS.CreateReport=function(e,o){var r=null,n=function(e){return r||(r=new JRS.GeneratorPropertiesDialog({advUri:e,okHandler:JRS.CreateReport.showGeneratedReport,messages:o})),r};return{showGeneratedReport:function(o){var r="reportGenerator.html?action=displayTempReportUnit&advUri="+encodeURIComponent(o.sourceURI)+"&template="+encodeURIComponent(o.template||"")+"&generator="+encodeURIComponent(o.generator||"")+"&exportFormat=html";e.ajax(r,{type:"GET",dataType:"json",success:function(e,o,r){"OK"===e.status?window.location=e.data:dialogs.errorPopup.show(e.data.msg)},error:function(e,o,r){dialogs.errorPopup.show("Unknown Error")}})},selectADV:function(){n().show()},selectGenerator:function(e){n(e).show()}}}(jQuery,__jrsConfigs__),jQuery(function(){0===jQuery("#ajaxbuffer").length&&jQuery("body").append(jQuery('<div id="ajaxbuffer" style="display:none"></div>'))});