 var bp=r('JSESSIONID');var bl=r('bl');function OutOfMemoryError(){alert('Your local Java Runtime Environment ran out of memory.\n\n'
+ 'Try giving it more memory:\n'
+ '    1. Open the Java Control Panel\n'
+ '    2. Click the Java tab\n'
+ '    3. Click the View button\n'
+ '    4. Double-click in the Java Runtime Parameters column\n'
+ '    5. Enter \"-Xms128m -Xmx256m\"\n'
+ '    6. Click the OK button.\n'
+ '    7. Click the Apply button\n'
+ '    8. Click the OK button.\n'
+ '    9. Restart your browser.\n');}function r(name){var bK=name+"=";var cc=document.cookie.split(';');for(var i=0;i<cc.length;i++){var c=cc[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(bK)==0)return c.substring(bK.length,c.length);}return null;};function n(name,value,bU){if(bU){var bO=new Date();bO.setTime(bO.getTime()+(bU*24*60*60*1000));var expires="; expires="+bO.toGMTString();}else var expires="";document.cookie=name+"="+value+expires+"; path=/";};function P(name){n(name,"",-1);};var aY=navigator.appName;var bw=false;var aX=false;if((aY=='Mozilla') || (aY=='Netscape')){bw=true;}if(aY=='Microsoft Internet Explorer'){aX=true;}if((navigator.userAgent.match("rv:1\.9"))||(navigator.userAgent.match("rv:1\.9\.1"))||(navigator.userAgent.match("rv:1\.9\.2"))){v('FF3','true',1);FF3=true;}else{v('FF3','false',1);FF3=false;}var ag=null;function aA(){document.body.style.cursor="wait";};function ae(){document.body.style.cursor="default";};function d(bq,bB){if(document.layers){document.layers[bq].visibility=bB?"show":"hide";}else if(document.getElementById){var cb=document.getElementById(bq);cb.style.visibility=bB?"visible":"hidden";}else if(document.all){document.all[bq].style.visibility=bB?"visible":"hidden";}};function v(bR,value,bn){var bx=new Date();bx.setDate(bx.getDate()+bn);document.cookie=bR+"="+escape(value)+((bn==null)?"":";expires="+bx.toGMTString());};function g(){d('ar',1);if(aX==true){document.getElementById('ad').innerHTML="<iframe src='additional_instructions.html' width='100%' height='100%' scrolling='yes'></iframe>";}else{document.getElementById('ad').innerHTML="<iframe src='additional_instructions.html' width='100%' height='415px' scrolling='yes'></iframe>";}};function o(){d('ar',1);if(aX==true){document.getElementById('ad').innerHTML="<iframe src='xsl_locations.html' width='100%' height='100%' scrolling='yes'></iframe>";}else{document.getElementById('ad').innerHTML="<iframe src='xsl_locations.html' width='100%' height='415px' scrolling='yes'></iframe>";}};function A(){d('ar',1);if(aX==true){document.getElementById('ad').innerHTML="<iframe src='response_messages.jsp' width='100%' height='100%' scrolling='yes'></iframe>";}else{document.getElementById('ad').innerHTML="<iframe src='response_messages.jsp' width='100%' height='415px' scrolling='yes'></iframe>";}};function L(){var aP;if(navigator.appVersion.indexOf("Win")!= -1)aP="Windows";if(navigator.appVersion.indexOf("Mac")!= -1)aP="MacOS";if(navigator.appVersion.indexOf("X11")!= -1)aP="UNIX";if(navigator.appVersion.indexOf("Linux")!= -1)aP="Linux";return aP;};function K(bb){alert('The project XML file must use a \".xml\" extension.');};function M(bb){alert("Your uncompressed project totals "+bb+" bytes. \n There will be a delay "+"while compressing it and it may be too large "+"for this version of Mr. XML Publisher.");};function D(bb){alert("The size of the archive containing your project is over "+"the limit. \n"+"The limit in the Internet demo version of Mr. XML Publisher is "+bb+" bytes.");};function F(bb){alert("Parsing your project's XML generated the "+"following error message: \n\n"+bb+"\n\n");};function O(bb){alert("The project XML file\'s PUBLIC identifier is: "+"\n\n       "+bb+"\n\n"+"Mr. XML Publisher considers this PUBLIC identifier "+"to be in error for a DocBook XML document.");};function Q(bb){alert("Zipped project archive written to: "+"\n"+bb+"\n");};var al;var aM;var ac=null;var aW=null;var aN=null;var ap=null;var complete=null;var be=null;var bc=null;function C(){var X='NONE';if((document.aa.style.value=='')||(document.aa.style.value=='NONE')){alert('Please select a style.');return false;}X=document.T.as.value;if((X=='null')||(X=='')||(X=='NONE')){alert('Please use the Browse button to select an archive '+'of the XML project you wish to format. \nIt must '+'be a zipped archive created by Mr. XML Publisher '+'during your current session.');return false;}var aV=document.applets[0].bC(X);document.T.bs.value=aV;if((aV==null)||(aV=='')||(aV=='NONE')){alert("Select the project's XML file. Mr. XML Publisher will "+"create a zip archive of the project. Then you can "+"upload it. \nMr. XML Publisher will not accept "+"zipped archives that it did not create.");return false;}var bk=document.applets[0].bN(X);if((bk==false)&&(document.aa.style.value=='COMMAND_DOCBOOK_XSLTPROC_MAN_PAGES')){alert('DocBook XSL creates man pages from <refentry> elements, '+'but the parser did not find any <refentry> elements '+'in your project\'s XML. Subsequently, your request is '+'certain to fail. If you want to produce man pages from '+'DocBook XML, you must use one or more <refentry> '+'elements in the XML.');return false;}var bH=document.applets[0].bZ(X);document.T.bv.value=bH;if(document.T.aT.checked==true){document.T.ao.value='true';}else if(document.T.aT.checked==false){document.T.ao.value='false';}ag=document.applets[0].bI(X);al=document.applets[0].bV(X);var av=document.applets[0].bP();if(al>av){alert("I'm sorry. The size limit for project uploads in "+"this version \n of Mr. XML Publisher is "+av+" bytes.");return false;}aM=document.applets[0].bM(X);var bA=document.applets[0].bW();if(aM>bA){alert("I'm sorry. This server limits the maximum number of "+"resources you are allowed to include via your "+"IncludeMap.xml file to "+bA+". You are "+"currently attempting to include "+aM+".");return false;}var bi=document.T.as.value;var bm=document.T.as.value;bi=bi.substring(bi.length-4,bi.length);bm=bm.substring(bm.length-7,bm.length);bi=bi.toLowerCase();bm=bm.toLowerCase();var bd=document.applets[0].bE(X);document.T.by.value=bd;if((bd==null)||(bd=='')||(bd=='NONE')){alert("Select the project's XML file. Mr. XML Publisher will "+"create a zip archive of the project. Then you can "+"upload it. \nMr. XML Publisher will not accept "+"zipped archives that it did not create.");return false;}if((bi!='.zip')&&(bi!='.tar')&&(bm!='.tar.gz')&&(bi!='.tgz')&&(bi!='.jar')){alert('Project uploads must be packed as zip, jar, tar, '+'or tar.gz archives, and the uploaded archive '+' must have an appropriate filename extension.');return false;}if((ag!=null)&&(document.T.ao.value!="true")){var bj=confirm("Use "+ag+" as an XSL customization layer?\n\n"+"OK = YES, "+"Cancel = NO\n");if(bj){document.T.ao.value="true";}else{document.T.ao.value="false";}}if((ag==null)&&(document.T.ao.value=="true")){bz=document.applets[0].bQ(X);if(bz){var ai=document.getElementsByTagName("option");var ay=new Object();for(i=0;i<ai.length;i++){ay[ai[i].value]=ai[i].id;}for(description in ay){if(description==document.aa.style.value){var aO=document.applets[0].bu(X);var aZ=ay[description];var ba=aZ.replace(/\\/g,"/");var aI="file://"+ba;if(aO!=aI){alert("Your project's customization "+"layer is attempting to import XSL from "+"the server, but it's using an incorrect "+"href attribute value for the style "+"selected. The <xsl:import> element's "+"href attribute value from your "+"cutomization layer is: "+aO+". The correct value is: "+aI);return false;}}}}else{alert("Your instructions say to use an XSL customization "+"layer, but your project does not contain an "+"appropriately named XSL file. The file containing your "+"XSL customization layer must be named the same as your "+"project\'s XML file, but with a '.xsl' extension "+"(lowercase).");return false;}}if((ag!=null)&&(document.T.ao.value=="true")){var ai=document.getElementsByTagName("option");var ay=new Object();for(i=0;i<ai.length;i++){ay[ai[i].value]=ai[i].id;}for(description in ay){if(description==document.aa.style.value){var aO=document.applets[0].bu(X);var aZ=ay[description];var ba=aZ.replace(/\\/g,"/");var aI="file://"+ba;if(aO!=aI){alert("Your project's customization "+"layer is attempting to import XSL from "+"the server, but it's using an incorrect "+"href attribute value for the style "+"selected. The <xsl:import> element's "+"href attribute value from your "+"cutomization layer is: "+aO+". The correct value is: "+aI);return false;}}}}if(false){}else{document.T.style.value=document.aa.style.value;if((document.aa.style.value.indexOf('ECLIPSE')!= -1)){document.T.an.value="false";l();}if(document.T.an.value=='true'){setTimeout("f();",250);document.getElementById('aJ').innerHTML="";document.getElementById('aC').innerHTML="";document.getElementById('aG').innerHTML="";document.getElementById('aF').innerHTML="";d('aL',1);document.getElementById('am').disabled=true;document.T.bo.disabled=true;return true;}else{return false;}}};function H(){if(ap=='true'){if(window.XMLHttpRequest){ac=new XMLHttpRequest();}else if(window.ActiveXObject){ac=new ActiveXObject("Microsoft.XMLHTTP");}if(ac!=null){ac.open("POST","/XML_Publisher/Stop",true);ac.onreadystatechange=function(){};ac.send(null);}alert('The server will need several seconds to cancel the job, '+'possibly a minute or so. Please be patient.');}else{alert('No jobs are currently running on the server for you.');}};function f(){aN=0;aW=0;ap='false';complete='false';first='true';if(window.XMLHttpRequest){ac=new XMLHttpRequest();}else if(window.ActiveXObject){ac=new ActiveXObject("Microsoft.XMLHTTP");}if(ac!=null){ac.open("GET","/XML_Publisher/Progress",true);ac.onreadystatechange=e;ac.send(null);}else{alert("Your browser does not support XMLHTTP.");}};function e(){if(ac.readyState==4){var aU=ac.responseText.split(" ");aW=aU[0];ap=aU[1];if(((aW<al)&&(ap=='false')&&(complete=='false')&&(aN<100))||(first=='true')){first='false';aN=(((aW/al)*100)|0);if(be==null){document.getElementById('aJ').innerHTML="Uploading . . .";be=" .";}else{document.getElementById('aJ').innerHTML="Uploading . . ."+be;be=be+" .";}ac.open("GET","/XML_Publisher/Progress",true);ac.onreadystatechange=e;setTimeout("ac.send(null);",750);}else{document.getElementById('aJ').innerHTML="Uploaded 100%";aN=100;if(ap=='true'){if(bc==null){document.getElementById('aC').innerHTML="Started job on server . . . ";bc=" .";}else{document.getElementById('aG').innerHTML="Processing"+bc;bc=bc+" .";}ac.open("GET","/XML_Publisher/Progress",true);ac.onreadystatechange=e;setTimeout("ac.send(null);",750);}else{document.getElementById('aF').innerHTML="Completed";complete='true';setTimeout("d('aL',0);",500);document.getElementById('am').disabled=false;document.getElementById('bT').disabled=false;be=null;bc=null;}}}};function I(){document.T.as.disabled=false;};function G(bb){alert(bb);};function k(){var aP=L();if(aP=="Windows"){document.XMLP_JavaUtils.az();}if(aP=="Linux"){document.applets[0].az();}else{document.applets[0].az();}};function B(){var width=700;var height=600;var left=parseInt((screen.availWidth/2)-(width/2));var top=parseInt((screen.availHeight/2)-(height/2));var V="width="+width+",height="+height+",status=0,scrollbars=0,resizable=no,left="+left+",top="+top+"screenX="+left+",screenY="+top;at=window.open("at.html","e_p_window",V);if(at.opener==null){at.opener=self;}};function w(){var width=675;var height=125;var left=parseInt((screen.availWidth/2)-(width/2));var top=parseInt((screen.availHeight/2)-(height/2));var V=null;var aB=L();if(aB=="Windows"){V="width="+width+",height="+height+",status=0,scrollbars=0,resizable=no,left="+left+",top="+top+"screenX="+left+",screenY="+top;}else{V="width=500px,height=60px,status=0,resizable=yes, left=-"+screen.availWidth+"px,top="+screen.availHeight+"px";}switch(document.aa.style.value){case "NONE":alert('Please select a style.');break;case "COMMAND_DOCBOOK_FOP_94_PDF": case "COMMAND_DOCBOOK_FOP_95_PDF": case "COMMAND_DOCBOOK_SAXON_FOP_95_PDF": case "COMMAND_DOCBOOK_XALAN_FOP_95_PDF": case "COMMAND_DOCBOOK_FOP_95_PDF_SCRIPT": case "COMMAND_DOCBOOK_FOP_95_PDF_MAKEFILE": case "COMMAND_DOCBOOK_FOP_95_PDF_ANT": case "COMMAND_DOCBOOK_FOP_95_PDF_CALABASH":aj=window.open("dbxslcfg_FO.html","dbxslcfg_fo_window",V);if(aj.opener==null){aj.opener=self;}break;case ("COMMAND_DOCBOOK_XSLTPROC_HTML_SINGLE"): case ("COMMAND_DOCBOOK_SAXON_HTML_SINGLE"): case ("COMMAND_DOCBOOK_XALAN_HTML_SINGLE"):R=window.open("dbxslcfg_HTML.html","R",V);if(R.opener==null){R.opener=self;}break;case "COMMAND_DOCBOOK_XSLTPROC_HTML_CHUNKED": case "COMMAND_DOCBOOK_SAXON_HTML_CHUNKED": case "COMMAND_DOCBOOK_XALAN_HTML_CHUNKED":R=window.open("dbxslcfg_HTML.html","R",V);if(R.opener==null){R.opener=self;}break;case "COMMAND_DOCBOOK_XSLTPROC_XHTML_SINGLE": case "COMMAND_DOCBOOK_SAXON_XHTML_SINGLE": case "COMMAND_DOCBOOK_XALAN_XHTML_SINGLE":R=window.open("dbxslcfg_HTML.html","R",V);if(R.opener==null){R.opener=self;}break;case "COMMAND_DOCBOOK_XSLTPROC_XHTML_CHUNKED": case "COMMAND_DOCBOOK_SAXON_XHTML_CHUNKED": case "COMMAND_DOCBOOK_XALAN_XHTML_CHUNKED":R=window.open("dbxslcfg_HTML.html","R",V);if(R.opener==null){R.opener=self;}break;case "COMMAND_DOCBOOK_XSLTPROC_HTML_HELP": case "COMMAND_DOCBOOK_SAXON_HTML_HELP": case "COMMAND_DOCBOOK_XALAN_HTML_HELP":R=window.open("dbxslcfg_HTML.html","R",V);if(R.opener==null){R.opener=self;}break;case "COMMAND_DOCBOOK_XSLTPROC_JAVA_HELP": case "COMMAND_DOCBOOK_SAXON_JAVA_HELP": case "COMMAND_DOCBOOK_XALAN_JAVA_HELP":R=window.open("dbxslcfg_HTML.html","R",V);if(R.opener==null){R.opener=self;}break;case "COMMAND_DOCBOOK_XSLTPROC_ECLIPSE_HELP": case "COMMAND_DOCBOOK_SAXON_ECLIPSE_HELP": case "COMMAND_DOCBOOK_XALAN_ECLIPSE_HELP":R=window.open("dbxslcfg_HTML.html","R",V);if(R.opener==null){R.opener=self;}break;case "COMMAND_DOCBOOK_XSLTPROC_PLAIN_TEXT":alert("There are no user-configurable parameters in the DocBook XSL stylesheets specifically for formatting plain text.");break;case "COMMAND_DOCBOOK_XSLTPROC_MAN_PAGES": case "COMMAND_DOCBOOK_SAXON_MAN_PAGES": case "COMMAND_DOCBOOK_XALAN_MAN_PAGES":ax=window.open("dbxslcfg_Man.html","ax",V);if(ax.opener==null){ax.opener=self;}break;}};function l(){if((document.aa.style.value.indexOf('ECLIPSE')!= -1)&&(document.T.au.value!="true")){var width=600;var height=600;var left=parseInt((screen.availWidth/2)-(width/2));var top=parseInt((screen.availHeight/2)-(height/2));var V="width="+width+",height="+height+",status=0,scrollbars=0,resizable=no,left="+left+",top="+top+"screenX="+left+",screenY="+top;aw=window.open("aw.html","e_p_window",V);if(aw.opener==null){aw.opener=self;}}}
