function writeActxViewer(sViewerVer, sProductLang, sPreferredViewingLang, bDrillDown, bExport, bDisplayGroupTree, bGroupTree, bAnimation, bPrint, bRefresh, bSearch, bZoom, bSearchExpert, bSelectExpert, sParamVer) { document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); } String.format = function() { if(arguments.length == 0) { return null; } var str = arguments[0]; for(var i=1;i 0) {'+ 'docUrl = docUrl.substring(0, qPos);'+ '}'+ 'webSource0.URL = docUrl + \"{1}\";'+ 'webSource0.PromptOnRefresh = {2};'+ 'webSource0.AddParameter(\"proxypath\", docUrl);'+ '{3}'+ 'CRViewer.ReportSource = webSource0;'+ 'CRViewer.DownloadResourceCab(\"{4}\");'+ 'CRViewer.ViewReport();'+ '}'+ 'catch(err) {'+ 'if((err.number & 0xFF) != 0) {'+ 'window.alert(\"The Crystal Report Viewer is unable to create its resource objects.\");'+ 'CRViewer.ReportName = {0};'+ '}'+ '}'+ '};'; function renderPageInitialize(reportName, url, promptOnRefresh, rptParameters, resourceCab) { if(rptParameters == undefined) { rptParameters = ""; } var codePageInitialize = String.format(PAGE_INITIALIZE_CODE, reportName, url, promptOnRefresh, rptParameters, resourceCab); codePageInitialize = unescape(codePageInitialize); var fPageInitialize = new Function(codePageInitialize); window.pageInitialize = fPageInitialize(); }