/**
 * IMPORTANT NOTE: This compressed javascript includes thirdparty javascripts 
 * listed at http://wiki.zoho.com/_zoho/js/thirdparty.html
 * The original javascript sources are available in the above location.
 */
function Sarissa(){}Sarissa.PARSED_OK="Document contains no parsing errors";Sarissa.PARSED_EMPTY="Document is empty";Sarissa.PARSED_UNKNOWN_ERROR="Not well-formed or other error";var _sarissa_iNsCounter=0;var _SARISSA_IEPREFIX4XSLPARAM="";var _SARISSA_HAS_DOM_IMPLEMENTATION=document.implementation&&true;var _SARISSA_HAS_DOM_CREATE_DOCUMENT=_SARISSA_HAS_DOM_IMPLEMENTATION&&document.implementation.createDocument;var _SARISSA_HAS_DOM_FEATURE=_SARISSA_HAS_DOM_IMPLEMENTATION&&document.implementation.hasFeature;var _SARISSA_IS_MOZ=_SARISSA_HAS_DOM_CREATE_DOCUMENT&&_SARISSA_HAS_DOM_FEATURE;var _SARISSA_IS_SAFARI=(navigator.userAgent&&navigator.vendor&&(navigator.userAgent.toLowerCase().indexOf("applewebkit")!=-1||navigator.vendor.indexOf("Apple")!=-1));var _SARISSA_IS_IE=document.all&&window.ActiveXObject&&navigator.userAgent.toLowerCase().indexOf("msie")>-1&&navigator.userAgent.toLowerCase().indexOf("opera")==-1;if(!window.Node||!Node.ELEMENT_NODE){Node={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12};}if(_SARISSA_IS_IE){_SARISSA_IEPREFIX4XSLPARAM="xsl:";var _SARISSA_DOM_PROGID="";var _SARISSA_XMLHTTP_PROGID="";var _SARISSA_DOM_XMLWRITER="";Sarissa.pickRecentProgID=function(_1){var _2=false;for(var i=0;i<_1.length&&!_2;i++){try{var _4=new ActiveXObject(_1[i]);o2Store=_1[i];_2=true;}catch(objException){}}if(!_2){throw "Could not retreive a valid progID of Class: "+_1[_1.length-1]+". (original exception: "+e+")";}_1=null;return o2Store;};_SARISSA_DOM_PROGID=null;_SARISSA_THREADEDDOM_PROGID=null;_SARISSA_XSLTEMPLATE_PROGID=null;_SARISSA_XMLHTTP_PROGID=null;if(!window.XMLHttpRequest){XMLHttpRequest=function(){if(!_SARISSA_XMLHTTP_PROGID){_SARISSA_XMLHTTP_PROGID=Sarissa.pickRecentProgID(["Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"]);}return new ActiveXObject(_SARISSA_XMLHTTP_PROGID);};}Sarissa.getDomDocument=function(_5,_6){if(!_SARISSA_DOM_PROGID){_SARISSA_DOM_PROGID=Sarissa.pickRecentProgID(["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.3.0"]);}var _7=new ActiveXObject(_SARISSA_DOM_PROGID);if(_6){var _8="";if(_5){if(_6.indexOf(":")>1){_8=_6.substring(0,_6.indexOf(":"));_6=_6.substring(_6.indexOf(":")+1);}else{_8="a"+(_sarissa_iNsCounter++);}}if(_5){_7.loadXML("<"+_8+":"+_6+" xmlns:"+_8+"=\""+_5+"\""+" />");}else{_7.loadXML("<"+_6+" />");}}return _7;};Sarissa.getParseErrorText=function(_9){var _a=Sarissa.PARSED_OK;if(_9.parseError.errorCode!=0){_a="XML Parsing Error: "+_9.parseError.reason+"\nLocation: "+_9.parseError.url+"\nLine Number "+_9.parseError.line+", Column "+_9.parseError.linepos+":\n"+_9.parseError.srcText+"\n";for(var i=0;i<_9.parseError.linepos;i++){_a+="-";}_a+="^\n";}else{if(_9.documentElement==null){_a=Sarissa.PARSED_EMPTY;}}return _a;};Sarissa.setXpathNamespaces=function(_c,_d){_c.setProperty("SelectionLanguage","XPath");_c.setProperty("SelectionNamespaces",_d);};XSLTProcessor=function(){if(!_SARISSA_XSLTEMPLATE_PROGID){_SARISSA_XSLTEMPLATE_PROGID=Sarissa.pickRecentProgID(["Msxml2.XSLTemplate.5.0","Msxml2.XSLTemplate.4.0","MSXML2.XSLTemplate.3.0"]);}this.template=new ActiveXObject(_SARISSA_XSLTEMPLATE_PROGID);this.processor=null;};XSLTProcessor.prototype.importStylesheet=function(_e){if(!_SARISSA_THREADEDDOM_PROGID){_SARISSA_THREADEDDOM_PROGID=Sarissa.pickRecentProgID(["Msxml2.FreeThreadedDOMDocument.5.0","MSXML2.FreeThreadedDOMDocument.4.0","MSXML2.FreeThreadedDOMDocument.3.0"]);_SARISSA_DOM_XMLWRITER=Sarissa.pickRecentProgID(["Msxml2.MXXMLWriter.5.0","Msxml2.MXXMLWriter.4.0","Msxml2.MXXMLWriter.3.0","MSXML2.MXXMLWriter","MSXML.MXXMLWriter","Microsoft.XMLDOM"]);}_e.setProperty("SelectionLanguage","XPath");_e.setProperty("SelectionNamespaces","xmlns:xsl='http://www.w3.org/1999/XSL/Transform'");var _f=new ActiveXObject(_SARISSA_THREADEDDOM_PROGID);if(_e.url&&_e.selectSingleNode("//xsl:*[local-name() = 'import' or local-name() = 'include']")!=null){_f.async=false;_f.load(_e.url);}else{_f.loadXML(_e.xml);}_f.setProperty("SelectionNamespaces","xmlns:xsl='http://www.w3.org/1999/XSL/Transform'");var _10=_f.selectSingleNode("//xsl:output");this.outputMethod=_10?_10.getAttribute("method"):"html";this.template.stylesheet=_f;this.processor=this.template.createProcessor();this.paramsSet=new Array();};XSLTProcessor.prototype.transformToDocument=function(_11){this.processor.input=_11;var _12=new ActiveXObject(_SARISSA_DOM_XMLWRITER);this.processor.output=_12;this.processor.transform();var _13=new ActiveXObject(_SARISSA_DOM_PROGID);_13.loadXML(_12.output+"");return _13;};XSLTProcessor.prototype.transformToFragment=function(_14,_15){this.processor.input=_14;this.processor.transform();var s=this.processor.output;var f=_15.createDocumentFragment();if(this.outputMethod=="text"){f.appendChild(_15.createTextNode(s));}else{if(_15.body&&_15.body.innerHTML){var _18=_15.createElement("div");_18.innerHTML=s;while(_18.hasChildNodes()){f.appendChild(_18.firstChild);}_15.removeChild(_18);}else{var _19=new ActiveXObject(_SARISSA_DOM_PROGID);if(s.substring(0,5)=="<?xml"){s=s.substring(s.indexOf("?>")+2);}var xml="".concat("<my>",s,"</my>");_19.loadXML(xml);var _18=_19.documentElement;while(_18.hasChildNodes()){f.appendChild(_18.firstChild);}_19.removeChild(_18);}}return f;};XSLTProcessor.prototype.setParameter=function(_1b,_1c,_1d){if(_1b){this.processor.addParameter(_1c,_1d,_1b);}else{this.processor.addParameter(_1c,_1d);}if(!this.paramsSet[""+_1b]){this.paramsSet[""+_1b]=new Array();}this.paramsSet[""+_1b][_1c]=_1d;};XSLTProcessor.prototype.getParameter=function(_1e,_1f){_1e=_1e||"";if(this.paramsSet[_1e]&&this.paramsSet[_1e][_1f]){return this.paramsSet[_1e][_1f];}else{return null;}};}else{if(_SARISSA_HAS_DOM_CREATE_DOCUMENT){Sarissa.__handleLoad__=function(_20){Sarissa.__setReadyState__(_20,4);};_sarissa_XMLDocument_onload=function(){Sarissa.__handleLoad__(this);};Sarissa.__setReadyState__=function(_21,_22){_21.readyState=_22;_21.readystate=_22;if(_21.onreadystatechange!=null&&typeof _21.onreadystatechange=="function"){_21.onreadystatechange();}};Sarissa.getDomDocument=function(_23,_24){var _25=document.implementation.createDocument(_23?_23:null,_24?_24:null,null);if(!_25.onreadystatechange){_25.onreadystatechange=null;}if(!_25.readyState){_25.readyState=0;}_25.addEventListener("load",_sarissa_XMLDocument_onload,false);return _25;};if(window.XMLDocument){}else{if(document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("LS","3.0")){Sarissa.getDomDocument=function(_26,_27){var _28=document.implementation.createDocument(_26?_26:null,_27?_27:null,null);return _28;};}else{Sarissa.getDomDocument=function(_29,_2a){var _2b=document.implementation.createDocument(_29?_29:null,_2a?_2a:null,null);if(_2b&&(_29||_2a)&&!_2b.documentElement){_2b.appendChild(_2b.createElementNS(_29,_2a));}return _2b;};}}}}if(!window.DOMParser){if(_SARISSA_IS_SAFARI){DOMParser=function(){};DOMParser.prototype.parseFromString=function(_2c,_2d){var _2e=new XMLHttpRequest();_2e.open("GET","data:text/xml;charset=utf-8,"+encodeURIComponent(_2c),false);_2e.send(null);return _2e.responseXML;};}else{if(Sarissa.getDomDocument&&Sarissa.getDomDocument()&&Sarissa.getDomDocument(null,"bar").xml){DOMParser=function(){};DOMParser.prototype.parseFromString=function(_2f,_30){var doc=Sarissa.getDomDocument();doc.loadXML(_2f);return doc;};}}}if(!document.importNode&&_SARISSA_IS_IE){try{document.importNode=function(_32,_33){var tmp=document.createElement("div");if(_33){tmp.innerHTML=_32.xml?_32.xml:_32.innerHTML;}else{tmp.innerHTML=_32.xml?_32.cloneNode(false).xml:_32.cloneNode(false).innerHTML;}return tmp.getElementsByTagName("*")[0];};}catch(e){}}if(!Sarissa.getParseErrorText){Sarissa.getParseErrorText=function(_35){var _36=Sarissa.PARSED_OK;if(!_35.documentElement){_36=Sarissa.PARSED_EMPTY;}else{if(_35.documentElement.tagName=="parsererror"){_36=_35.documentElement.firstChild.data;_36+="\n"+_35.documentElement.firstChild.nextSibling.firstChild.data;}else{if(_35.getElementsByTagName("parsererror").length>0){var _37=_35.getElementsByTagName("parsererror")[0];_36=Sarissa.getText(_37,true)+"\n";}else{if(_35.parseError&&_35.parseError.errorCode!=0){_36=Sarissa.PARSED_UNKNOWN_ERROR;}}}}return _36;};}Sarissa.getText=function(_38,_39){var s="";var _3b=_38.childNodes;for(var i=0;i<_3b.length;i++){var _3d=_3b[i];var _3e=_3d.nodeType;if(_3e==Node.TEXT_NODE||_3e==Node.CDATA_SECTION_NODE){s+=_3d.data;}else{if(_39==true&&(_3e==Node.ELEMENT_NODE||_3e==Node.DOCUMENT_NODE||_3e==Node.DOCUMENT_FRAGMENT_NODE)){s+=Sarissa.getText(_3d,true);}}}return s;};if(!window.XMLSerializer&&Sarissa.getDomDocument&&Sarissa.getDomDocument("","foo",null).xml){XMLSerializer=function(){};XMLSerializer.prototype.serializeToString=function(_3f){return _3f.xml;};}Sarissa.stripTags=function(s){return s.replace(/<[^>]+>/g,"");};Sarissa.clearChildNodes=function(_41){while(_41.firstChild){_41.removeChild(_41.firstChild);}};Sarissa.copyChildNodes=function(_42,_43,_44){if((!_42)||(!_43)){throw "Both source and destination nodes must be provided";}if(!_44){Sarissa.clearChildNodes(_43);}var _45=_43.nodeType==Node.DOCUMENT_NODE?_43:_43.ownerDocument;var _46=_42.childNodes;if(_45.importNode){for(var i=0;i<_46.length;i++){_43.appendChild(_45.importNode(_46[i],true));}}else{for(var i=0;i<_46.length;i++){_43.appendChild(_46[i].cloneNode(true));}}};Sarissa.moveChildNodes=function(_48,_49,_4a){if((!_48)||(!_49)){throw "Both source and destination nodes must be provided";}if(!_4a){Sarissa.clearChildNodes(_49);}var _4b=_48.childNodes;if(_48.ownerDocument==_49.ownerDocument){while(_48.firstChild){_49.appendChild(_48.firstChild);}}else{var _4c=_49.nodeType==Node.DOCUMENT_NODE?_49:_49.ownerDocument;if(_4c.importNode){for(var i=0;i<_4b.length;i++){_49.appendChild(_4c.importNode(_4b[i],true));}}else{for(var i=0;i<_4b.length;i++){_49.appendChild(_4b[i].cloneNode(true));}}Sarissa.clearChildNodes(_48);}};Sarissa.xmlize=function(_4e,_4f,_50){_50=_50?_50:"";var s=_50+"<"+_4f+">";var _52=false;if(!(_4e instanceof Object)||_4e instanceof Number||_4e instanceof String||_4e instanceof Boolean||_4e instanceof Date){s+=Sarissa.escape(""+_4e);_52=true;}else{s+="\n";var _53="";var _54=_4e instanceof Array;for(var _55 in _4e){s+=Sarissa.xmlize(_4e[_55],(_54?"array-item key=\""+_55+"\"":_55),_50+"   ");}s+=_50;}return s+=(_4f.indexOf(" ")!=-1?"</array-item>\n":"</"+_4f+">\n");};Sarissa.escape=function(_56){return _56.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;");};Sarissa.unescape=function(_57){return _57.replace(/&apos;/g,"'").replace(/&quot;/g,"\"").replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&");};function DialogBox(){}DialogBox.oDialog;DialogBox.doc;DialogBox.closeOnEscKey=true;DialogBox.iframeIEHack;DialogBox.dialogProperties=new Array("position","top","left","right","height","width","srcElement","modal","draggable","title","closeButton","closeOnEscKey","transitionType","transitionInterval","closeOnBodyClick");function showDialogBox(_58,_59,_5a,_5b,_5c){if(typeof (_59)=="undefined"){var _59="position=absmiddle";}_59=_59.split(",");var _5d;for(var i=0;i<DialogBox.dialogProperties.length;i++){_5d=false;for(var j=0;j<_59.length;j++){if(_59[j].indexOf(DialogBox.dialogProperties[i])>=0){_5d=true;break;}}self["dialog_"+DialogBox.dialogProperties[i]]=(_5d)?_59[j].substr(_59[j].indexOf("=")+1,_59[j].length).trim():"undefined";}if(document.getElementById(_5a)==null){DialogBox.oDialog=document.createElement("DIV");DialogBox.oDialog.id=_5a;document.body.appendChild(DialogBox.oDialog);}else{DialogBox.oDialog=document.getElementById(_5a);}var _58="<div id=\"_DIALOG_CONTENT\">"+_58+"</div>";var _60=0;if(dialog_width!="undefined"){_60=parseInt(dialog_width)+"px";}var box="<div class=\"optioncontainer\" align=\"center\"><table class=\"options\" ";if(_60!=0){box+="style=\"width:"+_60+"\" ";}box+="border=\"0\" cellspacing=\"0\" cellpadding=\"8\"><tr class=\"zwDialogTDBLine\">";if(dialog_draggable!="undefined"&&dialog_draggable=="no"){box+="<td><h2>";}else{if(_5a&&$(_5a)){box+="<td class=\"boxHeader drag\" onMouseDown=\"captureDialogBox(event,'"+_5a+"')\"><h2>";}else{box+="<td class=\"boxHeader drag\" onMouseDown=\"captureDialogBox(event)\"><h2>";}}if(dialog_title!="undefined"){if(dialog_title.charAt(0)=="'"&&dialog_title.charAt(dialog_title.length-1)=="'"){dialog_title=dialog_title.substr(1,dialog_title.length-2);}if(dialog_title.trim().length==0){dialog_title="&nbsp;";}}else{dialog_title="&nbsp;";}box+=dialog_title+"</td><td align=\"right\" width=\"1%\">";if(dialog_closeButton!="undefined"&&dialog_closeButton=="no"){box+="&nbsp;</td>";}else{if(_5a&&$(_5a)){box+="<div class=\"clsbutton\" onClick=\"closeDialogBox('"+_5a+"');\"></div></td>";}else{box+="<div class=\"clsbutton\" onClick=\"closeDialogBox();\"></div></td>";}}box+="</tr>";box+="<tr><td class=\"boxContent\" colspan=\"2\">"+_58+"</td></tr></table></div>";DialogBox.oDialog.style.display="";var _62=true;if(dialog_closeButton!="undefined"){if(dialog_title=="&nbsp;"&&dialog_closeButton=="no"){_62=false;}}if(_62){DialogBox.oDialog.innerHTML="<table cellpadding='0' cellspacing='0'><tr><td height='100%' style='display:block'>"+box+"</td></tr></table>";}else{DialogBox.oDialog.innerHTML="<table cellpadding='0' cellspacing='0'><tr><td height='100%' style='display:block'>"+_58+"</td></tr></table>";}_Dcont=document.getElementById("_DIALOG_CONTENT");if(_Dcont.innerHTML==""){_Dcont.appendChild(_5b);_5b.style.display="block";}DialogBox.oDialog.style.position="absolute";DialogBox.oDialog.style.left="-1000px";DialogBox.oDialog.style.top="-1000px";DialogBox.oDialog.style.zIndex="100";var _63=DialogBox.oDialog.getElementsByTagName("SCRIPT");for(var i=0;i<_63.length;i++){var _64=document.createElement("SCRIPT");_64.type="text/javascript";_64.language="javascript";if(_63[i].src!=""){_64.src=_63[i].src;}_64.text=_63[i].text;if(typeof document.getElementsByTagName("HEAD")[0]=="undefined"){document.createElement("HEAD").appendChild(_64);}else{document.getElementsByTagName("HEAD")[0].appendChild(_64);}}if(browser_opera){var _65=_58;var _66=DialogBox.oDialog.getElementsByTagName("STYLE");for(var i=0;i<_66.length;i++){_66[i].innerHTML=_65.substring(_65.indexOf("<style>")+7,_65.indexOf("</style>")-1);_65=_65.substring(_65.indexOf("</style>")+8,_65.length);}}if(dialog_width!="undefined"){if(browser_ie){DialogBox.oDialog.childNodes[0].style.width=parseInt(dialog_width)+"px";}else{if(browser_nn4||browser_nn6){DialogBox.oDialog.childNodes.item(0).style.width=parseInt(dialog_width)+"px";}}}if(dialog_height!="undefined"){if(browser_ie){DialogBox.oDialog.childNodes[0].style.height=parseInt(dialog_height)+"px";}else{if(browser_nn4||browser_nn6){DialogBox.oDialog.childNodes.item(0).style.height=parseInt(dialog_height)+"px";}}}oDialogContent=document.getElementById("_DIALOG_CONTENT");var _67=0,top=0,_69=0;if(browser_opera){if(dialog_width!="undefined"){oDialogContent.style.width=parseInt(dialog_width)+"px";}else{oDialogContent.style.width=oDialogContent.offsetWidth+"px";DialogBox.oDialog.style.width=oDialogContent.offsetWidth+"px";}}if(browser_nn4||browser_nn6){if(dialog_width!="undefined"){oDialogContent.style.width=parseInt(dialog_width)+"px";}else{oDialogContent.style.width=(oDialogContent.offsetWidth+20)+"px";}}if(dialog_height!="undefined"){if(browser_ie&&(parseInt(dialog_height)<oDialogContent.offsetHeight)){_67=-15;}oDialogContent.style.height=parseInt(dialog_height)+"px";}oDialogContent.style.overflow="auto";var _6a=DialogBox.oDialog.offsetWidth;var _6b=DialogBox.oDialog.offsetHeight;DialogBox.doc=findDocDim();if(dialog_closeOnEscKey!="undefined"&&dialog_closeOnEscKey=="no"){DialogBox.closeOnEscKey=false;}else{DialogBox.closeOnEscKey=true;}if(!browser_opera){if(dialog_modal!="undefined"&&dialog_modal=="yes"){freezeDialogBackground();}else{if(document.getElementById("FreezeLayer")!=null){document.body.removeChild(document.getElementById("FreezeLayer"));}}}if(dialog_srcElement!="undefined"){srcElement=getObj(dialog_srcElement);}else{if(srcElement=="undefined"){srcElement=document.body;}}if(dialog_left!="undefined"){_67+=parseInt(dialog_left);}if(dialog_right!="undefined"){_69+=parseInt(dialog_right);}if(dialog_top!="undefined"){top+=parseInt(dialog_top);}if(dialog_position!="undefined"&&dialog_position=="relative"){_67+=findPosX(srcElement)+((srcElement.offsetWidth)?srcElement.offsetWidth:0)-_6a;top+=findPosY(srcElement)+((srcElement.offsetHeight)?srcElement.offsetHeight:0)+2;}else{if(dialog_position!="undefined"&&dialog_position=="absolute"){_67+=document.body.scrollLeft;top+=document.body.scrollTop;}else{_67=(DialogBox.doc.width/2)-(_6a/2)+document.body.scrollLeft;top=(DialogBox.doc.height/2)-(_6b/2)+document.body.scrollTop;}}if(dialog_transitionType!="undefined"){if(dialog_transitionInterval=="undefined"){dialog_transitionInterval=10;}Effect.init({type:dialog_transitionType,speed:dialog_transitionInterval,layerId:_5a,layerTop:top,layerLeft:_67});Effect.display();}else{if(dialog_right!="undefined"){DialogBox.oDialog.style.left=getPageWidth()-_69-_6a-10+"px";}else{DialogBox.oDialog.style.left=_67+"px";}DialogBox.oDialog.style.top=top+"px";}if(browser_ie&&!browser_opera){DialogBox.iframeIEHack=document.createElement("IFRAME");DialogBox.iframeIEHack.id="iframeIEHack";DialogBox.iframeIEHack.scrolling="no";DialogBox.iframeIEHack.frameBorder=0;if(parent["CONTEXT_PATH"]!=null){DialogBox.iframeIEHack.src=CONTEXT_PATH+"/framework/html/blank.html";}else{DialogBox.iframeIEHack.src=staticURL+"/images/spacer.gif";}DialogBox.iframeIEHack.style.position="absolute";DialogBox.iframeIEHack.style.zIndex="98";DialogBox.iframeIEHack.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)";if(dialog_modal!="undefined"&&dialog_modal=="yes"){DialogBox.iframeIEHack.style.width=document.getElementById("FreezeLayer").style.width;DialogBox.iframeIEHack.style.top="0px";DialogBox.iframeIEHack.style.left="0px";}else{DialogBox.iframeIEHack.style.width=DialogBox.oDialog.offsetWidth+"px";DialogBox.iframeIEHack.style.height=DialogBox.oDialog.offsetHeight+"px";DialogBox.iframeIEHack.style.top=top+"px";DialogBox.iframeIEHack.style.left=_67+"px";}document.body.appendChild(DialogBox.iframeIEHack);}scrollEnd=(_6b-(DialogBox.doc.height-(top-document.body.scrollTop)))+scrollConst;if(scrollEnd>0){cnt=0;}if(!browser_opera){if(dialog_modal!="undefined"&&dialog_modal=="yes"){document.getElementById("FreezeLayer").style.width=getPageWidth()+"px";document.getElementById("FreezeLayer").style.height=getPageHeight()+"px";if(browser_ie){DialogBox.iframeIEHack.style.height=document.getElementById("FreezeLayer").style.height;}}}if(dialog_closeOnBodyClick=="yes"){if(browser_ie){window.event.cancelBubble=true;}else{if(browser_nn6){_5c.stopPropagation();}}document.onclick=closeDialogBox;}Utils._addEvent(document,"keydown",function(_6c){if(DialogBox.closeOnEscKey){WikiCommon.processKeyPressFun((_6c)?_6c:window.event,closeDialogBox,27);}},"closeDialogBox");return false;}function freezeDialogBackground(){var _6d=document.createElement("DIV");_6d.id="FreezeLayer";_6d.className="freezeLayer";_6d.style.width="100%";_6d.style.zIndex="99";document.body.appendChild(_6d);}var diffLeft=0,diffTop=0;function captureDialogBox(ev,id){if(id){DialogBox.oDialog=$(id);}DialogBox.oDialog.style.cursor="move";if(browser_ie){diffLeft=window.event.clientX+document.body.scrollLeft-parseInt(findPosX(DialogBox.oDialog));diffTop=window.event.clientY+document.body.scrollTop-parseInt(findPosY(DialogBox.oDialog));}else{if(browser_nn4||browser_nn6){diffLeft=ev.pageX-parseInt(findPosX(DialogBox.oDialog));diffTop=ev.pageY-parseInt(findPosY(DialogBox.oDialog));}}document.onmousemove=moveDialogBox;document.onmouseup=releaseDialogBox;}function moveDialogBox(ev){clearTextSelection();if(browser_ie){if(document.getElementById("FreezeLayer")!=null||browser_opera){DialogBox.oDialog.style.left=window.event.clientX+document.body.scrollLeft-diffLeft+"px";DialogBox.oDialog.style.top=(window.event.clientY+document.body.scrollTop-diffTop<0)?0:(window.event.clientY+document.body.scrollTop-diffTop)+"px";}else{DialogBox.oDialog.style.left=window.event.clientX+document.body.scrollLeft-diffLeft+"px";DialogBox.oDialog.style.top=(window.event.clientY+document.body.scrollTop-diffTop<0)?0:(window.event.clientY+document.body.scrollTop-diffTop)+"px";}}else{if(browser_nn4||browser_nn6){DialogBox.oDialog.style.left=ev.pageX-diffLeft+"px";DialogBox.oDialog.style.top=(ev.pageY-diffTop<0)?0:(ev.pageY-diffTop)+"px";}}}function releaseDialogBox(){DialogBox.oDialog.style.cursor="default";document.onmousemove=null;document.onmouseup=null;}function buzzerDialogBox(){clearTextSelection();if(browser_ie){var l=parseInt(DialogBox.oDialog.style.left)+parseInt(document.body.scrollLeft);DialogBox.oDialog.style.left=(l-1)+"px";DialogBox.oDialog.style.left=(l)+"px";}else{if(browser_nn4||browser_nn6){var l=parseInt(DialogBox.oDialog.style.left);DialogBox.oDialog.style.left=(l-1)+"px";DialogBox.oDialog.style.left=(l)+"px";}}}function closeDialogBox(id){hideLoading();if(id&&$(id)){DialogBox.oDialog=$(id);}if(DialogBox.oDialog!=null){DialogBox.oDialog.parentNode.removeChild(DialogBox.oDialog);if(document.getElementById("FreezeLayer")!=null){document.body.removeChild(document.getElementById("FreezeLayer"));}if(browser_ie&&!browser_opera){if(DialogBox.iframeIEHack){document.body.removeChild(DialogBox.iframeIEHack);DialogBox.iframeIEHack=null;}else{if($("iframeIEHack")){$("iframeIEHack").parentNode.removeChild($("iframeIEHack"));}}}}if(document.onclick==closeDialogBox){document.onclick=null;}}var scrollEnd=0,cnt=0;function scrollPage(){if(cnt<=scrollEnd){document.body.scrollTop+=10;cnt+=10;}else{scrollEnd=cnt=0;if(!scrollInterval){scrollInterval=10;}clearInterval(scrollInterval);}}function showURLInDialogBox(url,_74,_75,_76,_77){try{if(parent["USESUBREQESTINDIALOG"]){if(url.indexOf("SUBREQUEST")==-1){url=getURLSuffixed(url);url+="SUBREQUEST=true";}}}catch(e){}showLoading();var _78="GET";var _79=false;if(_76){_78="POST";_79=true;}else{_76="";}if(!_77){_77="zwDialogBoxDiv";}$1(url,_78,_76,true,function(rt){showDialogBox(rt,_74,_77);hideLoading();},_79);if(_75){var _7b=document.getElementById?document.getElementById(_75):_75;if(_7b){_7b.focus();}}}function showLoading(){hideLoading();if($("zwLoadingIndicator")){$("zwLoadingIndicator").style.display="block";}var _7c=document.createElement("div");_7c.id="zwLoadingIndicator";_7c.innerHTML=w_obj.LOADING;_7c.style.position="absolute";_7c.style.top=document.body.scrollTop+150+"px";var _7d=getScreenWidth();_7c.style.left=(_7d/2-130)+"px";_7c.innerHTML="<div style=\"border:1px solid #CFCFCF;border-bottom:3px solid #CCCCCC; text-align:left;padding:5px; width: 240px; z-index: 1; display: block; background:#FFFFFF;color:#666666;font-weight:bold;font-size:1.5em;\">"+w_obj.LOADING+"<span id=\"zwLdngAnim\"> . . .</span></div>";document.body.appendChild(_7c);$("zwLoadingIndicator").style.display="block";zwShowDotAnimations("zwLdngAnim",3);}function hideLoading(){if($("zwLoadingIndicator")){document.body.removeChild($("zwLoadingIndicator"));stopDotAnimations(loadngAnimIntrvl);}}var loadngAnimIntrvl;function zwShowDotAnimations(obj,_7f){clearInterval(loadngAnimIntrvl);var str="";loadngAnimIntrvl=setInterval(function(){str+=" . ";if(str.length>3*_7f){str=" . ";}if($(obj)){$(obj).innerHTML=str;}},300);}function stopDotAnimations(obj){clearInterval(loadngAnimIntrvl);}function Utils(){}function $(id,doc){if(!doc){doc=document;}return doc.getElementById(id);}function Utils(){}Utils.toggleButtonValue=function(_84,_85,_86,_87,_88,_89){var _8a=eval("document."+_84);var len=_8a.length;for(i=0;i<len;i++){var _8c=_8a.item(i);var _8d=eval("frmItem."+_85);var _8e=_8d.value;if(_8e==_86){_8d.value=_87;_8d.onclick=_89;}else{_8d.value=_86;_8d.onclick=_88;}}};Utils.hideOrShowButtons=function(_8f,_90){for(i in _90){var _91=_90[i];var _92=eval("document."+_8f);var len=_92.length;for(j=0;j<len;j++){var _94=_92.item(j);var _95=eval("frmItem."+_91);if(_95.style.display=="none"){_95.style.display="inline";}else{_95.style.display="none";}}}};Utils.getElementsByClassName=function(ele,_97,_98){var _99=ele.getElementsByTagName(_97);var _9a=new Array();for(var i=0;i<_99.length;i++){if(Utils.hasClass(_99[i],_98)){_9a[_9a.length]=_99[i];}}return _9a;};Utils.getElementList=function(_9c,_9d){var _9e=[];var _9f=eval("document."+_9c);var len=_9f.length;for(j=0;j<len;j++){var _a1=_9f.item(j);var _a2=_a1.getElementsByTagName("span");var _a3=_a2[0];if(_a3.id==_9d){_9e[j]=_a3;}}return _9e;};Utils.getFormElementList=function(_a4,_a5){var _a6=[];var _a7=eval("document."+_a4);var len=_a7.length;for(j=0;j<len;j++){var _a9=_a7.item(j);_a6[j]=eval("frmItem."+_a5);}return _a6;};Utils.removeCarriageReturns=function(str,_ab){if(!_ab){_ab="\n";}var _ac=str.indexOf(_ab);var _ad="";var i=0;while(_ac!=-1){_ad+=str.substring(i,_ac);i=_ac+_ab.length;_ad+=" ";_ac=str.indexOf(_ab,i);}_ad+=str.substring(i,str.length);return _ad;};Utils.escapeAmpersands=function(str,_b0){if(!_b0){_b0="&";}var _b1=str.indexOf(_b0);var _b2="";var i=0;while(_b1!=-1){_b2+=str.substring(i,_b1);i=_b1+_b0.length;_b2+="$AMPSERAND$";_b1=str.indexOf(_b0,i);}_b2+=str.substring(i,str.length);return _b2;};Utils.getCookieValue=function(_b4){var len=_b4.length;var _b6=(document.cookie).indexOf(_b4);if(_b6==-1){return null;}var _b7=_b6+len;var _b8=(document.cookie).indexOf(";",_b7);return (document.cookie).substring(_b7+1,_b8);};Utils.showOrHideBox=function(_b9,_ba){var _bb=$(_ba);var _bc=_bb.getElementsByTagName("div");var _bd=_b9.getElementsByTagName("img");for(var i=0;i<_bc.length;i++){var _bf=_bc[i];if(_bf.style.display!="none"){var img=_bd[0];img.src="/wo/images/toggledown.jpg";_bf.style.display="none";}else{var img=_bd[0];img.src="/wo/images/toggleup.jpg";_bf.style.display="inline";}}};Utils.hasClass=function(_c1,_c2){if(!_c1.className){return false;}return (_c1.className.search("(^|\\s)"+_c2+"(\\s|$)")!=-1);};Utils.showProgressIndicator=function(){var _c3=$("processIcon");if(_c3){_c3.style.display="inline";}};Utils.hideProgressIndicator=function(){var _c4=$("processIcon");if(_c4){_c4.style.display="none";}};Utils.showMsg=function(msg){var _c6=$("processIcon");if(_c6){_c6.style.display="inline";}};Utils.hideMsg=function(){var _c7=$("processIcon");if(_c7){_c7.style.display="none";}};Utils.openDiv=function(_c8,val){if(!val){val="block";}if($(_c8)){$(_c8).style.display=val;}};Utils.hideDiv=function(_ca){if($(_ca)){$(_ca).style.display="none";}};Utils.closeDiv=function(_cb){};Utils.createElement=function(tag,_cd,_ce){var el=document.createElement(tag);if(_cd){var _d0=_cd.split(" ");for(var i in _d0){var _d2=_d0[i];var _d3=_d2.split("=");var _d4=_d3[0];var _d5=_d3[1];if(_d4&&_d5){el.setAttribute(_d4,_d5);if(_d4=="class"){el.className=_d5;}}else{if(_d4){el.setAttribute(_d4,"");}}}}if(_ce){var _d6=null;if(typeof _ce=="string"){_d6=document.createTextNode(_ce);}else{_d6=_ce;}el.appendChild(_d6);}return el;};Utils.createElementFromDoc=function(doc,tag,_d9,_da){var el=doc.createElement(tag);if(_d9){var _dc=_d9.split(" ");for(var i in _dc){var _de=_dc[i];var _df=_de.split("=");var _e0=_df[0];var _e1=_df[1];if(_e0&&_e1){el.setAttribute(_e0,_e1);if(_e0=="class"){el.className=_e1;}}else{el.setAttribute(_e0,"");}}}if(_da){var _e2=null;if(typeof _da=="string"){_e2=doc.createTextNode(_da);}else{_e2=_da;}el.appendChild(_e2);}return el;};Utils.clearDiv=function(div,_e4){var _e5=$(div);if(_e5){_e5.innerHTML="";if(_e4){_e5.style.display="none";}}};Utils.loadInBody=function(_e6,_e7){var _e8=$("body");var _e9=$("bodyC");var _ea=Writer.currentDocInfo;var _eb,_ec;if($("wo_innerbody_iframe")){_eb=$("wo_innerbody_iframe");_ec=$("wo_innerbody");}else{_e8.innerHTML="";_ec=document.createElement("div");_eb=document.createElement("iframe");_ec.id="wo_innerbody";_eb.id="wo_innerbody_iframe";_e8.appendChild(_ec);_ec.appendChild(_eb);}var ht1=((Writer.leftPanelON)?Writer.getNormalEditorFrameHeight():Writer.getMaximizedEditorFrameHeight())+56;var ht=ht1;if(_ea&&_ea.CATEGORY=="SEARCH"){ht=ht1+50;}_e8.style.paddingLeft=2;_e8.style.paddingRight=3;function setContForPreview(){try{var doc=$("wo_innerbody_iframe").contentWindow.document;doc.open();doc.write(_e6);doc.close();if(!_e7&&doc.getElementById("stylesheetforeditor")){doc.getElementById("stylesheetforeditor").parentNode.removeChild(doc.getElementById("stylesheetforeditor"));}}catch(ex){Writer.log("ex:"+ex);}}setTimeout(setContForPreview,100);_eb.style.width="100%";if(Writer.docInfoFooterHide){ht=ht+32;}_eb.style.height=ht+"px";_eb.style.border="1px solid #ccc";if(_ea.CATEGORY=="OWNED"||_ea.CATEGORY=="PUBLIC DOCUMENTS"){if($("shareinfobutton")){$("shareinfobutton").style.display="block";}}else{if($("shareinfobutton")){$("shareinfobutton").style.display="none";}}};Utils.loadInPreview=function(_f0,_f1){var _f2=$("body");var _f3=$("bodyC");var _f4=Writer.currentDocInfo;var _f5,_f6;if($("wo_innerbody_iframe")){_f5=$("wo_innerbody_iframe");_f6=$("wo_innerbody");}else{_f2.innerHTML="";_f6=document.createElement("div");_f5=document.createElement("iframe");_f6.id="wo_innerbody";_f5.id="wo_innerbody_iframe";_f2.appendChild(_f6);_f6.appendChild(_f5);}var ht1=((Writer.leftPanelON)?Writer.getNormalEditorFrameHeight():Writer.getMaximizedEditorFrameHeight())+56;var ht=ht1;if(_f4&&_f4.CATEGORY=="SEARCH"){ht=ht1+50;}_f2.style.paddingLeft=2;_f2.style.paddingRight=3;function setContForPreview(){try{var doc=$("wo_innerbody_iframe");doc.src=_f0;if(!_f1&&doc.getElementById("stylesheetforeditor")){doc.getElementById("stylesheetforeditor").parentNode.removeChild(doc.getElementById("stylesheetforeditor"));}}catch(ex){Writer.log("ex:"+ex);}}setTimeout(setContForPreview,100);_f5.style.width="100%";if(Writer.docInfoFooterHide||MenuActions.hidePageViewFooter=="true"){ht=ht+32;}MenuActions.hidePageViewFooter="false";_f5.style.height=ht+"px";_f5.style.border="1px solid #ccc";if(_f4.CATEGORY=="OWNED"||_f4.CATEGORY=="PUBLIC DOCUMENTS"){if($("shareinfobutton")){$("shareinfobutton").style.display="block";}}else{if($("shareinfobutton")){$("shareinfobutton").style.display="none";}}};Utils.getPos=function(el){var r={offsetLeft:el.offsetLeft,offsetTop:el.offsetTop};if(el.offsetParent){var tmp=Utils.getPos(el.offsetParent);r.offsetLeft+=tmp.offsetLeft;r.offsetTop+=tmp.offsetTop;r.offsetRight+=tmp.offsetRight;}return r;};Utils.validateDoc=function validate(_fd){if(!_fd||_fd.length==0){alert("Provide a name for the document");return false;}if(_fd.trim().length==0){alert("Your document name consists of only spaces. Please provide a valid name");return false;}if(_fd.indexOf("'")>=0||_fd.indexOf("\"")>=0||_fd.indexOf("\\")>=0||_fd.indexOf("\n")>=0||_fd.indexOf("&#10;")>=0){alert("Special characters such as \\,',\" are not allowed in document name");return false;}return true;};Utils.showMsgDisplay=function(msg,_ff){var _100=$("msgarea");_100.innerHTML=msg;_100.style.display="inline";setTimeout(function(){Utils.hideMsgDisplay();},_ff);};Utils.showBlogMsg=function(msg){Utils.showMsgDisplay(msg,3000);};Utils.changeClass=function(arr,_103){for(i=0;i<arr.length;i++){var id=arr[i];var el=$(id);if(el){el.className=_103;}}};Utils.showMsgInId=function(msg,id){var _108=$(id);if(_108){_108.innerHTML="";_108.className="redmsg";var _109=document.createTextNode(msg);_108.appendChild(_109);}};Utils.showLockMsg=function(user,x,y){var l=$("lockdiv");if(l){var s=$("lockdivname");if(s&&user){s.innerHTML=user;}MenuActions._addEvent(document,"mousedown",MenuActions.lockClick);l.style.left="";l.style.right="";this.tot=document.body.offsetWidth;if(((this.tot)*0.6)<x){this.xval=document.body.offsetWidth-x+150;l.style.left=this.xval+"px";}else{l.style.left=x+"px";}l.style.width="300px";l.style.top=y+4+"px";l.style.position="absolute";PublicEmail.openSlider("lockdiv",true);}};Utils.hideLockMsg=function(){var l=$("lockdiv");if(l){l.style.display="none";}};Utils.hideMsgDisplay=function(){var _110=$("msgarea");_110.innerHTML="";_110.style.display="none";};Utils.validateTags=function(_111){var _112=/[:|\\|<|>|*|\||\/|'|%|#|&|?]/;if(_112.test(_111)){return false;}return true;};Utils.impDocConventionCheck=function(_113,_114,iurl){var el1=$("importStatusMsg");if(!_113){if((!_113||_113.length==0)&&!iurl){el1.innerHTML="All the fields are empty ";el1.style.display="inline";return false;}if(_113.indexOf("'")>=0||_113.indexOf("\"")>=0||_113.indexOf("\\")>=0){alert("Special characters are not allowed in document name");return false;}}var fext;if(_113&&_113.length>0){if(_114.indexOf(".")!=-1){fext=_114.substring(_114.lastIndexOf(".")+1,_114.length);el1.style.display="none";}else{el1.innerHTML="Importing file name should have a extension";el1.style.display="inline";return false;}var _118=["odt","sxw","doc","rtf","png","jpg","gif","txt","html","htm"];var _119=false;for(i=0;i<_118.length;i++){if(_118[i]==fext.toLowerCase()){_119=true;break;}}if(!_119){el1.innerHTML="Importing of ."+fext+" file is currently not supported";el1.style.display="inline";return false;}}var el=$("importprocess");if(el){el.style.display="inline";}};Utils.showDocName=function(_11b){var _11c;if(_11b.lastIndexOf("/")!=-1){_11c=_11b.substring(_11b.lastIndexOf("/")+1,_11b.length);}else{_11c=_11b.substring(_11b.lastIndexOf("\\")+1,_11b.length);}if(_11c.indexOf(".")!=-1){_11c=_11c.substring(0,_11c.indexOf("."));}document.importDoc.docname.value=_11c;if(!_11b||_11b.length==0){}};Utils.selectTextBox=function(id){var el=$(id);if(el){el.focus();el.select();}};Utils.getElementsByAttribute=function(oElm,_120,_121,_122){var _123=(_120=="*"&&oElm.all)?oElm.all:oElm.getElementsByTagName(_120);var _124=new Array();var _125=(typeof _122!="undefined")?new RegExp("(^|\\s)"+_122+"(\\s|$)"):null;var _126;var _127;for(var i=0;i<_123.length;i++){_126=_123[i];_127=_126.getAttribute(_121);if(typeof _127=="string"&&_127.length>0){if(typeof _122=="undefined"||(_125&&_125.test(_127))){_124.push(_126);}}}return _124;};if(typeof Array.prototype.push!="function"){Array.prototype.push=ArrayPush;function ArrayPush(_129){this[this.length]=_129;}}var chatcnt=0;Utils.showChatInfo=function(htm,more){if(chatcnt!=0){var _12c=$("chatmsg").cloneNode(true);_12c.id="chatmsg_"+chatcnt;var _12d=Utils.getElementsByAttribute(_12c,"span","id","_msg")[0];_12d.id="_msg_"+chatcnt;_12d.innerHTML=htm;moreInfo_chatcnt=Utils.getElementsByAttribute(_12c,"span","id","_moreInfo")[0];moreInfo_chatcnt.id="_moreInfo_"+chatcnt;zwclosechatmsg_chatcnt=Utils.getElementsByAttribute(_12c,"td","id","zwclosechatmsg")[0];zwclosechatmsg_chatcnt.id="zwclosechatmsg_"+chatcnt;zwclosechatmsg_chatcnt.onclick=function(){var val=this.id;val=val.substring(val.indexOf("_")+1,val.length);Writer.closeSlider("chatmsg_"+val);};shwid=_12c;msg=_12d;moreInfo=moreInfo_chatcnt;document.body.appendChild(_12c);}else{shwid=$("chatmsg");msg=$("_msg");msg.innerHTML=htm;moreInfo=$("_moreInfo");}moreInfo.innerHTML=more;if(HTMLArea.is_ie){shwid.style.left=document.body.offsetWidth-70-$("leftPanelTD").offsetWidth;if(!more){if(chatcnt!=0){height=50*(chatcnt+1);shwid.style.top=document.body.offsetHeight-height;}else{shwid.style.top=document.body.offsetHeight-58;}}else{if(chatcnt!=0){height1=150*(chatcnt+1);shwid.style.top=document.body.offsetHeight-height1;}else{shwid.style.top=document.body.offsetHeight-150;}}}else{shwid.style.left=document.body.offsetWidth-70-$("leftPanelTD").offsetWidth;if(!more){if(chatcnt!=0){height2=58*(chatcnt+1);shwid.style.top=document.body.offsetHeight-height2;}else{shwid.style.top=document.body.offsetHeight-58;}}else{if(chatcnt!=0){height3=140*(chatcnt+1);shwid.style.top=document.body.offsetHeight-height3;}else{shwid.style.top=document.body.offsetHeight-140;}}}shwid.style.width="248px";if(chatcnt!=0){PublicEmail.openSlider("chatmsg_"+chatcnt,true);Utils.closeChatInfo=setTimeout(function(_12f){Writer.closeSlider(_12c.getAttribute("id"));},6000);}else{PublicEmail.openSlider("chatmsg",true);Utils.closeChatInfo=setTimeout(function(){Writer.closeSlider("chatmsg");},6000);}chatcnt++;};Utils.showInfo=function(htm){shwid=$("wordcnt");contid=$("_wordcnt");contid.innerHTML=htm;if(HTMLArea.is_ie){shwid.style.left=document.body.offsetWidth-280;shwid.style.top=document.body.offsetHeight-98;}else{shwid.style.left=document.body.offsetWidth-258;shwid.style.top=document.body.offsetHeight-76;}shwid.style.width="248px";PublicEmail.openSlider("wordcnt",true);setTimeout(function(){Writer.closeSlider("wordcnt");},4000);};Utils.findDocDimension=function(){if(browser_ie){return {width:document.body.offsetWidth+document.body.scrollLeft,height:document.body.offsetHeight+document.body.scrollTop};}else{if(browser_nn4||browser_nn6){return {width:window.innerWidth+document.body.scrollLeft,height:window.innerHeight+document.body.scrollTop};}}};Utils.showCenterMsg=function(_131,_132,x,y,_135){var _136=$(_131);if(!_136){return;}_136.innerHTML=_132;if(x&&y){_136.style.position="absolute";_136.style.left=x+"px";_136.style.top=y+"px";}if(_135){_136.style.width=_135;}_136.style.display="block";};Utils.showLoadingMsg=function(msg){if(!msg){msg="Loading ...";}var doc=Utils.findDocDimension();var left=(doc.width/2)-document.body.scrollLeft;var top;if(isIE){top=doc.height/2-100;}else{top=(doc.height/2)-100;}Utils.showCenterMsg("loading_msg",msg,left,top,100);};Utils.hideLoadingMsg=function(){var _13b=$("loading_msg");if(_13b){_13b.style.display="none";}};Utils.insertMessage=function(id,msg){var el=$(id);if(el){Utils.clearDiv(id);Utils.openDiv(id,"inline");el.innerHTML=msg;}};Utils.showHelp=function(_13f,_140){var ev=(is_ie)?window.event:_13f;var _142=(is_ie)?ev.srcElement:ev.target;var r=Utils.getPos(_142);var x=r.offsetLeft+5;var y=r.offsetTop+_142.offsetHeight+3;id=$("zohohelp");var id1=$("zohohelp1");var _147=$(_140);if(_147){id1.innerHTML=_147.innerHTML;}id.style.left=x+"px";id.style.top=y+"px";id.style.display="block";if(Writer.editor){var doc=Writer.editor._editor._doc;MenuActions._addEvent(doc,"mousedown",MenuActions.documentClickHelpClear);}MenuActions._addEvent(document,"mousedown",MenuActions.documentClickHelpClear);};Utils.fadeIn=function(div){if(!div){return;}var _14a=30;div.style.display="block";div.zalpha=0;div.style.opacity=div.zalpha/10;div.style.filter="alpha(opacity="+(div.zalpha*10)+")";div.fadeInIntvl=window.setInterval(function(){Utils.fadeInStart(div);},_14a);};Utils.fadeOut=function(div){if(!div){return;}var _14c=30;div.zalpha=9;div.style.opacity=div.zalpha/10;div.style.filter="alpha(opacity="+(div.zalpha*10)+")";div.fadeOutIntvl=window.setInterval(function(){Utils.fadeOutStart(div);},_14c);};Utils.fadeInStart=function(div){if(!div){return;}if(!div.fadeInIntvl){return;}var _14e=(!div.zalpha)?0:div.zalpha;if(_14e<10){div.style.opacity=_14e/10;div.style.filter="alpha(opacity="+(_14e*10)+")";_14e++;div.zalpha=_14e;}else{div.style.opacity=0.99;div.style.filter="alpha(opacity=100)";div.zalpha=undefined;window.clearInterval(div.fadeInIntvl);}};Utils.fadeOutStart=function(div){if(!div||!div.fadeOutIntvl){return;}var _150=(!div.zalpha)?0:div.zalpha;if(_150>0){div.style.opacity=(_150/10);div.style.filter="alpha(opacity="+(_150*10)+")";_150--;div.zalpha=_150;}else{_150=0;div.style.opacity=0.01;div.style.filter="alpha(opacity=0)";div.style.display="none";div.zlpha=undefined;window.clearInterval(div.fadeOutIntvl);if(Utils.onFadeOut){Utils.onFadeOut();Utils.onFadeOut=undefined;}}};function pausecomp(_151){date=(new Date()).getTime();var _152=null;do{_152=(new Date()).getTime();}while(_152-date<_151);}function postAjax(_153,url,nvp){_153.open("POST",url,true);_153.setRequestHeader("Content-type","application/x-www-form-urlencoded;charset=UTF-8");_153.setRequestHeader("Content-length",nvp.length);_153.send(nvp);}function getXmlhttp(){if(window.XMLHttpRequest){var _156=new XMLHttpRequest();}else{try{var _156=new ActiveXObject("Microsoft.XMLHTTP");}catch(ee){try{var _156=new ActiveXObject("Microsoft.XMLDOM");}catch(e){var _156=new ActiveXObject("Msxml2.XMLHTTP");}}}return _156;}function encodeHtml(str){str=str.replace("<","&lt;");str=str.replace(">","&gt;");return str;}Utils.findPosX=function(obj){var _159=0;if(document.getElementById||document.all){while(obj.offsetParent){_159+=obj.offsetLeft;obj=obj.offsetParent;}}else{if(document.layers){_159+=obj.x;}}return _159;};Utils.findPosY=function(obj){var _15b=0;if(document.getElementById||document.all){while(obj.offsetParent){_15b+=obj.offsetTop;obj=obj.offsetParent;}}else{if(document.layers){_15b+=obj.y;}}return _15b;};Utils.trimSpaces=function(str){return str.replace(/(\s+)/g,"");};Utils.isImage=function(file){if(file){if(/(\.(gif|jpg|jpeg|bmp|png))$/i.test(file.value)){return true;}}return false;};Utils.isEmail=function(str){var a="@";var l=str.length;var d=".";if(l==0){alert("Please Enter Email ID");return false;}if(str.indexOf(a)==-1||str.indexOf(a)==0||str.indexOf(a)==l-1){alert("Please Enter Valid Email ID for "+"\""+str+"\"");return false;}if(str.indexOf(d)==-1||str.indexOf(d)==0||str.indexOf(d)==l-1){alert("Please Enter Valid Email ID for "+"\""+str+"\"");return false;}return true;};Utils.getTimeStamp=function(){var d=new Date();return (d.getDate()+","+(d.getMonth()+1)+","+d.getFullYear());};function selectShareTab(_163){var _164=new Array("share_within_individuals","share_within_groups","shared_details","manage_groups");$(_163+"_tab").className="hdrPopTabSel2";$(_163).style.display="block";for(var i=0;i<_164.length;i++){if(_164[i]!=_163){$(_164[i]+"_tab").className="hdrPopTabUnsel2";$(_164[i]).style.display="none";}}if(_163=="share_within_individuals"){$("shareEmailContentFlag").checked=false;setSpecifyContent();$("shareList").focus();}else{if(_163=="share_within_groups"){Groups.init();setTimeout(function(){Sharing.loadGroupShare();},500);}else{if(_163=="shared_details"){Sharing.createHTML("sharedinfo");}else{if(_163=="manage_groups"){var _166=$("manage_groups");var _167=Writer.iamServer+"/ui/groups/groups.jsp?service=true&service_language="+MenuActions.userLocale;var _168="<iframe style=\"border:0px;height:90%;width:100%;border-bottom:1px solid #999;margin-bottom:3px\" scrolling=\"auto\" src=\""+_167+"\">";_166.innerHTML=_168;var _169=document.createElement("p");_169.style.margin="0px;";_169.style.padding="0px;";_169.align="center";_166.appendChild(_169);Writer.log(" button loaded");var _16a=document.createElement("input");_16a.type="button";_16a.className="divclosebutton";_16a.value=Writer.geti18n("CLOSE");_16a.onclick=function(){Sharing.closeDiv();};_169.appendChild(_16a);}}}}}Utils.insertMeta=function(n,c){var d=Writer.editor._editor._iframe.contentWindow.document;var meta=d.createElement("meta");meta.setAttribute("id",n);meta.setAttribute("content",c);d.getElementsByTagName("head")[0].appendChild(meta);};Utils.getMetaElement=function(n){var d=Writer.editor._editor._iframe.contentWindow.document;var list=d.getElementsByTagName("meta");for(var i=0;i<list.length;i++){var m=list[i].getAttribute("id");if(m!=null&&m.toLowerCase()==n){return list[i];}}};Utils.getOuterHtml=function(n){var d=Writer.editor._editor._iframe.contentWindow.document;var span=d.createElement("span");span.appendChild(n);return span.innerHTML;};Utils.getWidnowHeight=function(){var wh;if(window.innerHeight){wh=window.innerHeight;}else{if(document.body.clientHeight){wh=document.body.clientHeight;}}return wh;};Utils.setStyleAttributes=function(node,attr){var _17a=attr.split(";");for(var i in _17a){var nv=_17a[i].split(":");if(nv[0]=="undefined"||nv[0]==""||nv[0]==" "){continue;}Utils.setStyleAttribute(node,nv[0],nv[1]);}};Utils.setStyleAttribute=function(node,name,val){if(node==null){return;}var sty=node.getAttribute("style"),_181,_182="";if(sty&&sty!=null){var _181=(typeof sty=="object")?sty.cssText.split(";"):sty.split(";");for(var i in _181){if(_181[i]==""){continue;}var nv=_181[i].split(":");var _185=nv[0].trim(),_186=nv[1].trim();if(name.trim()==_185.toLowerCase()){continue;}_182+=(_185+":"+_186+";");}}_182+=(name+":"+val+";");if(HTMLArea.is_ie){node.style.cssText=_182;}else{node.setAttribute("style",_182);}};Utils.isValidEmail=function(str){var l=str.length;if(l==0){return false;}var _189=/^[a-zA-Z0-9]([\w\-\.\+]*)@([\w\-\.]*)(\.[a-zA-Z]{2,4}(\.[a-zA-Z]{2}){0,2})$/i;if(_189.test(str)){return true;}else{return false;}};if(document.all){var browser_ie=true;}else{if(document.layers){var browser_nn4=true;}else{if(document.layers||(!document.all&&document.getElementById)){var browser_nn6=true;}}}if(window.navigator.userAgent.toUpperCase().indexOf("OPERA")>=0){var browser_opera=true;}function findPosX(obj){var _18b=0;if(document.getElementById||document.all){while(obj.offsetParent){_18b+=obj.offsetLeft;obj=obj.offsetParent;}}else{if(document.layers){_18b+=obj.x;}}return _18b;}function findPosY(obj){var _18d=0;if(document.getElementById||document.all){while(obj.offsetParent){_18d+=obj.offsetTop;obj=obj.offsetParent;}}else{if(document.layers){_18d+=obj.y;}}return _18d;}function findDocDim(){if(browser_ie){return {width:document.body.offsetWidth,height:document.body.offsetHeight};}else{if(browser_nn4||browser_nn6){return {width:window.screen.width-((scrX-pgeX)+document.body.scrollLeft),height:window.screen.height-((scrY-pgeY)+document.body.scrollTop)};}}}var scrollConst=0;if(browser_nn4||browser_nn6){scrollConst=125;}var scrX=0,scrY=0,pgeX=0,pgeY=0,srcElement;if(browser_ie){document.attachEvent("onclick",popUpListener);}else{if(browser_nn4||browser_nn6){document.addEventListener("click",popUpListener,true);}}function popUpListener(e){if(browser_ie){srcElement=window.event.srcElement;}else{if(browser_nn4||browser_nn6){srcElement=e.target;scrX=e.screenX;scrY=e.screenY;pgeX=e.pageX;pgeY=e.pageY;}}}function getObj(n,d){var p,i,x;if(!d){d=document;}if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}if(!(x=d[n])&&d.all){x=d.all[n];}for(i=0;!x&&i<d.forms.length;i++){x=d.forms[i][n];}for(i=0;!x&&d.layers&&i<d.layers.length;i++){x=getObj(n,d.layers[i].document);}if(!x&&d.getElementById){x=d.getElementById(n);}return x;}String.prototype.trim=function(){var x=this;x=x.replace(/^\s*(.*)/,"$1");x=x.replace(/(.*?)\s*$/,"$1");return x;};function reloadAndCloseWindow(_195){if(self.parent.window.opener!=null){self.parent.window.opener.addRequestParams(self.parent.window.opener.ROOT_VIEW_ID,_195);self.parent.window.opener.refreshCurrentView();}self.parent.window.close();}function enableCustomization(){var _196=stateData[ROOT_VIEW_ID]["_D_RP"];if(_196!=null){stateData[ROOT_VIEW_ID]["_D_RP"]=_196+"PERSONALIZE=TRUE";}else{stateData[ROOT_VIEW_ID]["_D_RP"]="PERSONALIZE=TRUE";}refreshCurrentView();}function enableViewMode(){var _197=stateData[ROOT_VIEW_ID]["_D_RP"];if(_197!=null){stateData[ROOT_VIEW_ID]["_D_RP"]=_197+"PERSONALIZE=FALSE";}else{stateData[ROOT_VIEW_ID]["_D_RP"]="PERSONALIZE=FALSE";}refreshCurrentView();}function showBorder(_198){element=document.getElementById(_198+"_Border");element.className="showDivBorder";}function hideBorder(_199){element=document.getElementById(_199+"_Border");element.className="divBorder";}function searchViews(_19a){document.getElementById("views").className="show";return updateSearchData("ListViewConfigurations",_19a);}function expandCollapse(_19b,_19c){var ids=new Array("rmImg","avlImg");var tabs=new Array("_RmTab","_AvlTab");if(document.getElementById("_NewTab")!=null){ids[ids.length]="newImg";tabs[tabs.length]="_NewTab";}if(document.getElementById("_SearchTab")!=null){ids[ids.length]="srcImg";tabs[tabs.length]="_SearchTab";}for(var i=0;i<tabs.length;i++){currId=tabs[i];if(currId==_19b){if(document.getElementById(_19b).className=="show"){document.getElementById(_19b).className="hide";document.getElementById(_19c).className="collapse";document.getElementById("views").className="hide";}else{document.getElementById(_19b).className="show";document.getElementById(_19c).className="expand";if(currId=="_SearchTab"){document.getElementById("views").className="hide";document.getElementById("orgTab1").className="hide";document.getElementById("orgTab2").className="hide";document.getElementById("dummyTab1").className="show";document.getElementById("dummyTab2").className="show";}if(currId=="_AvlTab"){document.getElementById("views").className="show";document.getElementById("orgTab1").className="show";document.getElementById("orgTab2").className="show";document.getElementById("dummyTab1").className="hide";document.getElementById("dummyTab2").className="hide";if(stateData["ListViewConfigurations"]){updateSearchData("ListViewConfigurations",document.getElementById("groupSearch"));}}if(currId=="_RmTab"){document.getElementById("views").className="hide";document.getElementById("orgTab1").className="show";document.getElementById("orgTab2").className="show";document.getElementById("dummyTab1").className="hide";document.getElementById("dummyTab2").className="hide";}if(currId=="_NewTab"){document.getElementById("views").className="hide";}}}else{document.getElementById(currId).className="hide";document.getElementById(ids[i]).className="collapse";}}}function enableForm(_1a0){document.getElementById(_1a0+"ReadMode").className="hide";document.getElementById(_1a0+"EditMode").className="show";}var customize_uniqueId=null;function showCustomizeLinks(_1a1,id,_1a3,_1a4){customize_uniqueId=referenceIds[_1a4];_1a1=_1a1+_1a4;getObj(_1a1).style.display="block";getObj(_1a1).style.left=findPosX(getObj(id));getObj(_1a1).style.top=findPosY(getObj(id))+getObj(id).offsetHeight;}function hideCustomizationMenu(ev){if(browser_ie){currElement=window.event.srcElement;}else{if(browser_nn4||browser_nn6){currElement=ev.target;}}var id=currElement.id;if(id.indexOf("ICM")<0&&customize_uniqueId!=null){var _1a7=stateData[customize_uniqueId]["ID"];var _1a8=document.getElementById("GridCustomizationLinks"+_1a7);if(_1a8!=null){if(getObj("GridCustomizationLinks"+_1a7).style.display=="block"){getObj("GridCustomizationLinks"+_1a7).style.display="none";}}_1a8=document.getElementById("TabCustomizationLinks"+_1a7);if(_1a8!=null){if(getObj("TabCustomizationLinks"+_1a7).style.display=="block"){getObj("TabCustomizationLinks"+_1a7).style.display="none";}}}}function openCustomizationWindow(url,_1aa){url=url+"&UNIQUEID="+customize_uniqueId;window.open(url,customize_uniqueId,_1aa);}function openCW(url,type,_1ad,_1ae,_1af){var uId=referenceIds[_1ad];var _1b1=stateData[uID]["_VN"];url=url+"?VIEWNAME="+_1b1+"&UNIQUEID="+uId;if(type!=null){url=ul+"&TYPE="+type;}if(_1ae!=null){url=url+"&"+_1ae;}window.open(url,uId,_1af);}function popWindow(url,name,x,y,_1b6){var posX=(screen.width/2)-(x/2);var posY=(screen.height/2)-(y/2);var _1b9="width="+x+",height="+y+",innerWidth="+x+",innerHeight="+y+",left="+posX+",top="+posY+",screenX="+posX+",screenY="+posY+",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,"+"resizable="+_1b6;var _1ba=window.open(url,name,_1b9);if(window.focus){_1ba.focus();}}function addContentToMessageDiv(_1bb,_1bc,_1bd){var _1be=document.getElementById(_1bb);var _1bf=document.getElementById(_1bc);if(_1be!=null&&_1bf!=null){_1bf.innerHTML=_1be.innerHTML;}if(_1bd==null||_1bd){document.body.scrollTop=0;document.body.scrollLeft=0;}}function promptViewTitleIfReq(_1c0,frm){var _1c2=prompt("Enter View Title");if(_1c2==null){return false;}frm.VIEWNAME.value=_1c2;frm.TITLE.value=_1c2;return true;}function isCookieEnabled(){var _1c3=true;if(document.cookie==""){document.cookie="AcceptsCookiesCheck=yes";if(document.cookie.indexOf("AcceptsCookiesCheck=yes")==-1){_1c3=false;}}document.cookie="";return _1c3;}function isBrowserSupported(){var agt=navigator.userAgent.toLowerCase();this.major=parseInt(navigator.appVersion);this.minor=parseFloat(navigator.appVersion);this.nav=((agt.indexOf("mozilla")!=-1)&&(agt.indexOf("spoofer")==-1)&&(agt.indexOf("compatible")==-1)&&(agt.indexOf("opera")==-1)&&(agt.indexOf("webtv")==-1));this.nav5up=(this.nav&&(this.major>=5));this.ie=(agt.indexOf("msie")!=-1);this.ie5up=(this.ie&&(this.major==4)&&(agt.indexOf("msie 6.0")>0));this.opera=(agt.indexOf("opera")!=-1);if((this.nav5up||this.ie5up)&&!this.opera){return true;}else{return false;}}function getURLSuffixed(url){if(url.lastIndexOf("?")==-1){url+="?";}else{if(url.indexOf("?")>0&&url.charAt(url.length-1)!="&"){url+="&";}}return url;}function appendParamToUrl(url,_1c7,_1c8){if(_1c8==null){return url;}return getURLSuffixed(url)+_1c7+"="+escape(_1c8);}function showMessage(_1c9,_1ca){var _1cb="";if(_1ca=="true"){_1cb=_1cb.concat("<Input type='button' class='successMessage'>");}else{_1cb=_1cb.concat("<Input type='button' class='failureMessage'>");}_1cb=_1cb.concat(_1c9);var _1cc=document.getElementById("messagediv");_1cc.innerHTML=_1cb;_1cc.className="MessageDiv";}function getXMLHttpRequest(){var _1cd=false;try{_1cd=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{_1cd=new ActiveXObject("Microsoft.XMLHTTP");}catch(E){_1cd=false;}}if(!_1cd&&typeof XMLHttpRequest!="undefined"){_1cd=new XMLHttpRequest();}return _1cd;}function findTD(_1ce){var _1cf;var _1d0=_1ce.parentNode;while(_1d0){if(_1d0.tagName=="TD"){_1cf=_1d0;break;}_1d0=_1d0.parentNode;}return _1cf;}function findOtherTD(_1d1){var i=0;var _1d3=new Array();var _1d4=_1d1.previousSibling;while(_1d4){_1d3[i]=_1d4;_1d4=_1d4.previousSibling;i++;}var _1d5=_1d1.nextSibling;while(_1d5){_1d3[i]=_1d5;_1d5=_1d5.nextSibling;i++;}return _1d3;}function rowSelect(_1d6){var _1d7="";_1d7=findTD(_1d6);var _1d8=new Array();_1d8=findOtherTD(_1d7);_1d7.className=(_1d6.checked)?_1d7.className+" select":_1d7.className.substr(0,_1d7.className.indexOf("select"));for(var i=0;i<_1d8.length;i++){_1d8[i].className=(_1d6.checked)?_1d8[i].className+" select":_1d8[i].className.substr(0,_1d8[i].className.indexOf("select"));}if(_1d6.type=="radio"){var _1da=_1d6.value;var _1db=_1d6.form.elements[_1d6.name];for(var i=0;i<_1db.length;i++){if(i!=_1d6.value){_1d7=findTD(_1d6.form.elements[_1d6.name][i]);_1d8=new Array();_1d8=findOtherTD(_1d7);if(_1d7.className.indexOf("select")>=0){_1d7.className=_1d7.className.substr(0,_1d7.className.indexOf("select"));for(var j=0;j<_1d8.length;j++){_1d8[j].className=_1d8[j].className.substr(0,_1d8[j].className.indexOf("select"));}}}}}}function rowHover(oTR,_1de){for(var i=0;i<oTR.childNodes.length;i++){if(document.all){oTD=oTR.childNodes[i];}else{oTD=oTR.childNodes.item(i);}if(oTD&&oTD.tagName=="TD"){if(oTD.className.indexOf("select")<0){oTD.className=(_1de)?oTD.className+" hilite":oTD.className.substr(0,oTD.className.indexOf("hilite"));}}}}function clearTextSelection(){if(document.selection){document.selection.empty();}else{if(window.getSelection){window.getSelection().removeAllRanges();}}}function checkForAD(form){var val=form.j_username.value;if(val.indexOf("\\")>0){var val1=val.substring(0,val.indexOf("\\"));var val2=val.substring(val.indexOf("\\")+1);form.j_username.value=val2;var obj=document.createElement("input");obj.type="hidden";obj.value=val1;obj.name="domainName";form.appendChild(obj);alert(form.domainName.value);}}var saveUsingTiddlyWikiSaver=false;var options={};options.chkRegExp=false;options.chkCaseSens=false;options.chkAnimate=true;options.txtUserName="YourName";var animating=0;var animaterID;var zoomerElement=null;var zoomerStart;var zoomerTarget;var zoomerStartScroll;var zoomerTargetScroll;var zoomerProgress;var zoomerStep;var sliderElement=null;var sliderDeleteAfterwards;var sliderOpening;var sliderRealHeight;var sliderProgress;var sliderStep;function startAnimating(){if(animating++==0){animaterID=window.setInterval("doAnimate();",25);}}function stopAnimating(){if(--animating==0){window.clearInterval(animaterID);}}function doAnimate(){if(sliderElement){doSlider();}}function startSlider(e,_1e6,_1e7,_1e8){stopSlider();sliderDeleteMode=_1e8;sliderElement=e;sliderElement.style.display="block";sliderElement.style.height="auto";sliderRealHeight=sliderElement.offsetHeight;sliderOpening=_1e6;sliderStep=_1e7?0.01:0.16;if(_1e6){sliderProgress=0;sliderElement.style.height="2px";sliderElement.style.display="block";}else{sliderStep=-sliderStep;sliderProgress=1;}sliderElement.style.overflow="hidden";startAnimating();}function stopSlider(){if(sliderElement){stopAnimating();if(sliderOpening){sliderElement.style.height="auto";}else{switch(sliderDeleteMode){case "none":sliderElement.style.display="none";break;case "all":sliderElement.parentNode.removeChild(sliderElement);break;case "children":while(sliderElement.hasChildNodes()){sliderElement.removeChild(sliderElement.firstChild);}break;}}sliderElement=null;}advStopSlider();}function doSlider(){sliderProgress+=sliderStep;if((sliderProgress<0)||(sliderProgress>1)){stopSlider();}else{var f=slowInSlowOut(sliderProgress);var h=sliderRealHeight*f;sliderElement.style.height=(h<=2)?2:h;sliderElement.style.opacity=f;}}function slowInSlowOut(_1eb){return (1-((Math.cos(_1eb*Math.PI)+1)/2));}var sliderQueue=new Array();var advSliderCount=0;function advStartSlider(e,_1ed,_1ee,_1ef){var val={};val.e=e;val.opening=_1ed;val.slowly=_1ee;val.deleteMode=_1ef;sliderQueue.push(val);if(sliderQueue.length==1){advSliderCount=0;startSlider(e,_1ed,_1ee,_1ef);}}var animate_stopsliderevent=null;function advStopSlider(){advSliderCount++;if(advSliderCount%2==0){var val=sliderQueue.shift();if(sliderQueue.length>0){var _1f2=sliderQueue.shift();setTimeout(function(){startSlider(_1f2.e,_1f2.opening,_1f2.slowly,_1f2.deleteMode);},10);}else{if(animate_stopsliderevent){setTimeout(function(){animate_stopsliderevent();animate_stopsliderevent=null;},100);}}}}function XComponentLoader(){this.UIComponentLoader=new XComponentLoader.XUILoader();this.JSComponentLoader=new XComponentLoader.JSLoader();}XComponentLoader.prototype.loadComponent=function(_1f3){try{var _1f4=_1f3.TYPE;switch(_1f4){case "UI":this.UIComponentLoader.loadUI(_1f3);break;case "WRITER_ENGINE":this.JSComponentLoader.includeScripts(_1f3.CONTEXT_PATH,_1f3.VERSION);break;case "JSPATCH1":this.JSComponentLoader.applyPatch1();break;case "EXEC":this.JSComponentLoader.exec(_1f3.JS,_1f3.ACTION);}}catch(ex){alert(ex);}};XComponentLoader.prototype.exec=function(_1f5,_1f6){this.JSComponentLoader.exec(_1f5,_1f6);};XComponentLoader.XUILoader=function(){this.loadUI=_XUILoader_loadUI;};function _XUILoader_loadUI(_1f7){try{var _1f8=new XMLHttpRequest();_1f8.open("GET",_1f7.URL,true);_1f8.onreadystatechange=function(){if(_1f8.readyState==4){var msg=_1f8.responseText;if(_1f7.UPDATE_UI){var el=document.getElementById(_1f7.UPDATE_UI);if(el){el.innerHTML=msg;}}if(_1f7.CALLBACK){_1f7.CALLBACK(msg);}if(_1f7.ONLOAD){_1f7.ONLOAD();}}};_1f8.send(null);}catch(ex){alert("Loading Component Failed : "+ex);}}XComponentLoader.JSLoader=function(){this.jsContextPath="";this.jsVersion="";this.jsPatch1=false;this.jsComponent=new Array();this.onJSLoad=new Array();this.patchParams={};this.writerScripts=[];this.silentPatch=[];};XComponentLoader.JSLoader.prototype.exec=function(_1fb,_1fc){if(this.jsComponent[_1fb]){_1fc();}else{this.loadJS(_1fb,_1fc);}};XComponentLoader.JSLoader.prototype.applyPatch1=function(){var _1fd=this.jsVersion;var doc=document;var _1ff=this.jsContextPath;var _200=this.silentPatch;for(var j=0;j<_200.length;j++){this.includeScriptInDoc(doc,_1ff+_200[j]+"?sid="+_1fd,window);}this.jsPatch1=true;};XComponentLoader.JSLoader.prototype.includeScripts=function(_202,_203){_203=(!_203)?"0":_203;this.jsContextPath=_202;this.jsVersion=_203;var _204=this.writerScripts;for(var j=0;j<_204.length;j++){this.includeJS(_202+_204[j]+"?sid="+_203,window);}};XComponentLoader.JSLoader.prototype.includeJS=function(_206,win){var _208=_206.lastIndexOf("/");var _209=_206;if(_208>-1){_209=_206.substring(_208+1);}var _20a=this.getJSFileName(_206);if(this.jsComponent[_20a]){return;}if(parent==win){document.writeln(this.getScriptInc(_206));this.jsComponent[_20a]=true;}else{var doc=document;this.includeScriptInDoc(doc,_206);}};XComponentLoader.JSLoader.prototype.getJSFileName=function(_20c){var _20d=_20c.lastIndexOf("/");var _20e=_20c;if(_20d>-1){_20e=_20c.substring(_20d+1);}var _20f=_20e.indexOf("?");if(_20f>-1){_20e=_20e.substring(0,_20f);}return _20e;};XComponentLoader.JSLoader.prototype.getScriptInc=function(_210){var _211=this.getJSFileName(_210);return "<script src='"+_210+"' type='text/javascript'></script>";};XComponentLoader.JSLoader.prototype.includeScriptInDoc=function(doc,_213){var _214=this;var _215=this.getJSFileName(_213);var e=doc.createElement("script");e.src=_213;e.type="text/javascript";if(is_ie){setTimeout(function(){_214.checkJSLoadCompletion(e);},100);}else{e.onload=function(){_214.jsComponent[_215]=true;if(_214.onJSLoad[_215]){_214.onJSLoad[_215]();}};}doc.getElementsByTagName("head")[0].appendChild(e);};XComponentLoader.JSLoader.prototype.checkJSLoadCompletion=function(obj){var _218=this;if(obj.readyState!="loaded"&&obj.readyState!="complete"){setTimeout(function(){_218.checkJSLoadCompletion(obj);},100);}else{var src=obj.src;var _21a=_218.getJSFileName(src);_218.jsComponent[_21a]=true;if(_218.onJSLoad[_21a]){_218.onJSLoad[_21a]();}}};XComponentLoader.JSLoader.prototype.loadJS=function(_21b,_21c){var _21d=this.jsVersion;var doc=document;var _21f=this.jsContextPath;if(_21c){this.onJSLoad[_21b]=_21c;}if(!staticURL){this.includeScriptInDoc(doc,_21f+"/js/"+_21b+"?sid="+_21d,window);}else{this.includeScriptInDoc(doc,staticURL+"/js/"+_21b,window);}};function Tagging(){}Tagging.addTag=function(tags){var _221="";if(document.tagDoc){_221=document.tagDoc.tagName.value;}if(tags){_221=tags;}if(_221==""||_221.trim()==""){return false;}if(!Utils.validateTags(_221)){alert(Writer.geti18n("Nospecialcharacterssuchas_areallowed"));return false;}if(Writer.currentDocInfo&&Writer.currentDocInfo.DOCUMENT_ID!=0){var _222=Writer.currentDocInfo.DOCUMENT_ID;var _223=new XMLHttpRequest();_223.open("POST","tagDocument.do",true);_223.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=UTF-8");var _224="doc_id="+_222;_224+="&tag="+_221;_223.onreadystatechange=function(){if(_223.readyState==4){var _225=(_223.responseText).trim();if(_225.indexOf("ADDTAGERROR_")>=0){alert(Writer.geti18n("Tag already added for this document")+" - "+_225.substring(_225.indexOf("_")+1,_225.length));return false;}else{Writer.addTagtoList(_225);}}};_223.send(encodeURI(_224));}else{if(!Tagging.newDocumentTags){Tagging.newDocumentTags=_221;}else{Tagging.newDocumentTags+=" "+_221;}var _226=Tagging.parseTagName(_221);var tgs=Tagging.generateTagInfoString(_226);Writer.addTagtoList(tgs);}return false;};Tagging.generateTagInfoString=function(tags,ids){var tgs="[ { ADDED:[ ";for(i=0;i<tags.length;i++){tgs+="{ID:'"+((ids)?ids[i]:"0")+"', VALUE:'"+tags[i]+"' },";}tgs=tgs.substring(0,tgs.length-1);tgs+="] , DUP:[] } ]";return tgs;};Tagging.parseTagName=function(_22b){var tags=new Array();var temp="";for(i=0;i<_22b.length;i++){var c=_22b[i];if(c==","||c==" "){if(temp!=""){tags[tags.length]=temp;temp="";}}else{temp+=c;}}if(temp!=""){tags[tags.length]=temp;temp="";}return tags;};Tagging.openTextField=function(_22f){if(Writer.currentDocInfo.CATEGORY=="SHARED"&&Writer.currentDocInfo.PERMISSION=="false"){var div=document.getElementById("toAdd");if(div.style.display=="inline"){div.style.display="none";}alert(Writer.geti18n("Tags cannot be Added in read only mode"));}else{var ev=(is_ie)?window.event:_22f;var _232=(is_ie)?ev.srcElement:ev.target;var r=Utils.getPos(_232);var x=r.offsetLeft;var y=r.offsetTop+_232.offsetHeight;var div=document.getElementById("toAdd");div.style.display="inline";document.getElementById("tf").value="";document.getElementById("tf").focus();document.getElementById("tagAdder").style.display="none";var _236=new XMLHttpRequest();_236.open("GET",Writer.fixForCachingInIe("GetTags.do"),true);Writer._newArray=new Array();_236.onreadystatechange=function(){if(_236.readyState==4){Tagging.insertAutoArray(_236.responseText);}};_236.send(null);}};Tagging.insertAutoArray=function(str){var arr=str.split(",");for(i=0;i<arr.length;i++){Writer._newArray.push(arr[i]);}};Tagging.checkNameExists=function(str){for(z=0;z<Writer._newArray.length;z++){if(str==Writer._newArray[z]){return false;}}return true;};Tagging.cancelTagAdd=function(){document.getElementById("toAdd").style.display="none";document.getElementById("tagAdder").style.display="inline";};Tagging.deleteTag=function(_23a,_23b){var _23c=Writer.currentDocInfo.DOCUMENT_ID;var _23d=new XMLHttpRequest();if(Writer.currentDocInfo.CATEGORY=="SHARED"&&Writer.currentDocInfo.PERMISSION=="false"){alert(Writer.geti18n("Tags cannot be deleted in read only mode"));}else{_23d.open("POST","deleteTag.do",true);_23d.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=UTF-8");var prms="tagId="+_23a;prms+="&tagName="+_23b;prms+="&doc_id="+_23c;_23d.onreadystatechange=function(){if(_23d.readyState==4){Tagging.removeTag(_23d.responseText);}};_23d.send(encodeURI(prms));}return false;};Tagging.removeTag=function(_23f){this.resp=eval(_23f);var res=this.resp[0];if(res.RES=="yes"){var id=res.TAGID;var _242=Writer.currentDocInfo.TagInfo;for(i=0;i<_242.length;i++){if(_242[i].ID==id){_242.splice(i,1);var chld=document.getElementById(id);var par=chld.parentNode;par.removeChild(chld);break;}}var _245=Writer.tempdocInfoList;for(i=0;i<_245.length;i++){var _246=_245[i];if(_246&&_246.DOCUMENT_ID==Writer.currentDocInfo.DOCUMENT_ID){Writer.tempdocInfoList[i]=Writer.currentDocInfo;break;}}}else{alert(Writer.geti18n("ProblemonDetachingtheTAG"));}};Tagging.showTaggedDocuments=function(x,y,id,_24a){var _24b=new XMLHttpRequest();_24b.open("POST","GetTagDetails.do",true);_24b.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=UTF-8");var _24c="tag_id="+id;_24c+="&tag_val="+_24a;_24c+="&x="+x;_24c+="&y="+y;_24b.onreadystatechange=function(){if(_24b.readyState==4){Tagging.showTaggedList(_24b.responseText);}};_24b.send(encodeURI(_24c));return false;};Tagging.showTaggedList=function(_24d){MenuActions._addEvent(document,"mousedown",MenuActions.documentTagClick);this.taggedList=eval(_24d);this.pos=this.taggedList[0];this.tagedDoc=this.taggedList[1];this.sharedDocs=this.tagedDoc.SHARED;this.allDocs=this.tagedDoc.ALLDOC;this.x=this.pos.X;this.y=this.pos.Y;this.id=this.pos.tagId;this.value=this.pos.tagVal;var doc;var _24f;doc=document;var div=doc.createElement("div");div.setAttribute("id","slidedivTag");div.className="tagmenu";div.style.position="absolute";div.innerHTML="";Tagging.createInnerHTML(this.sharedDocs,this.allDocs,this.id,this.value,div,doc);doc.body.appendChild(div);this.tot=document.body.offsetWidth;if(((this.tot)*0.75)<this.x){this.xval=document.body.offsetWidth-this.x-25;div.style.right=this.xval+"px";}else{div.style.left=this.x+"px";}if(div.offsetHeight>350){div.style.overflow="auto";div.style.height="350px";div.style.width=(div.offsetWidth)+"px";}div.style.top=(this.y-(div.offsetHeight)-10)+"px";div.style.position="absolute";div.style.display="inline";};Tagging.createInnerHTML=function(_251,_252,id,_254,div,doc){this.shard=_251;this.alDocs=_252;var _257=Utils.createElementFromDoc(doc,"table","bgcolor=white border=0");_257.cellPadding=0;_257.cellSpacing=0;var _258=Utils.createElementFromDoc(doc,"tbody");for(i=0;i<this.shard.length;i++){this.doc1=this.shard[i];var _259=Utils.createElementFromDoc(doc,"a","class=tagmenulinks href=#",this.shard[i].DOCUMENT_NAME);Tagging.setAction(doc,_259,this.doc1);var tr=Utils.createElementFromDoc(doc,"tr");var td=Utils.createElementFromDoc(doc,"td","height=15");td.appendChild(_259);tr.appendChild(td);_258.appendChild(tr);}for(i=0;i<this.alDocs.length;i++){this.doc2=this.alDocs[i];var _259=Utils.createElementFromDoc(doc,"a","class=tagmenulinks href=#",this.doc2.DOCUMENT_NAME);Tagging.setAction(doc,_259,this.doc2);var tr=Utils.createElementFromDoc(doc,"tr");var td=Utils.createElementFromDoc(doc,"td","height=15");td.appendChild(_259);tr.appendChild(td);_258.appendChild(tr);}var clse=Utils.createElementFromDoc(doc,"a","class=tagcloselinks href=#",Writer.js_obj.CLOSE);clse.onclick=function(){var div=doc.getElementById("slidedivTag");div.style.display="none";document.body.removeChild(div);};var tr=Utils.createElementFromDoc(doc,"tr");var td=Utils.createElementFromDoc(doc,"td","height=15");td.appendChild(clse);tr.appendChild(td);_258.appendChild(tr);var _25e=Utils.createElementFromDoc(doc,"a","class=tagcloselinks href=deleteTag.do",Writer.js_obj.DELTAG);_25e.onclick=function(){var div=doc.getElementById("slidedivTag");div.style.display="none";Tagging.deleteTag(id,_254);return false;};var tr=Utils.createElementFromDoc(doc,"tr");var td=Utils.createElementFromDoc(doc,"td","height=15");td.appendChild(_25e);tr.appendChild(td);_258.appendChild(tr);var add=Utils.createElementFromDoc(doc,"a","class=tagcloselinks href=deleteTag.do",Writer.js_obj.ADDFOLDER);add.onclick=function(){var div=doc.getElementById("slidedivTag");div.style.display="none";Tagging.addToLeftPanelTags(id,_254);return false;};var tr1=Utils.createElementFromDoc(doc,"tr");var td1=Utils.createElementFromDoc(doc,"td","height=15");td1.appendChild(add);tr1.appendChild(td1);_258.appendChild(tr1);_257.appendChild(_258);div.appendChild(_257);};Tagging.setAction=function(doc,_265,_266){_265.onclick=function(){var div=doc.getElementById("slidedivTag");div.style.display="none";Writer.contextSwitch(_266);};};Tagging.addLeftPanelTag=function(_268){var el=document.getElementById("leftPanelTags");var _26a=_268.TAG_NAME;var _26b=_26a;if(_26a&&_26a.indexOf("\"")>=0){while(_26a.indexOf("\"")>=0){_26a=_26a.replace("\"","");}_268.TAG_NAME=_26a;}if(_26a.length>12){_26a=_26a.substring(0,12)+"...";}var _26c="<div class=\"collapsebg\"  id=\"MyTags"+_268.TAG_NAME+"\">";_26c+="<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"tabletext\" >";_26c+="<tr><td width=\"5\"  onclick=\"show('MyTags"+_268.TAG_NAME+"List','"+_268.TAG_NAME+"');Writer.loadTab('LPTags"+_268.TAG_NAME+"');\"><div class=\"arrow\"> </div> </td>";_26c+="<td width=\"100%\" style=\"padding-left:5px\"  onclick=\"show('MyTags"+_268.TAG_NAME+"List','"+_268.TAG_NAME+"');Writer.loadTab('LPTags"+_268.TAG_NAME+"');\" title=\""+_26b+"\">"+_26a+"<span id=\"totalTag"+_268.TAG_NAME+"DocumentCount\" class=\"darktext\"></span></td>";_26c+="<td width=\"5\"  onclick=\"Tagging.deleteFromLeftPanelTags('"+_268.TAG_NAME+"')\"><img src=\"./images/dialogClose.gif\" width=\"8\" height=\"7\" style=\"margin-left: 5px;margin-right: 5px\"></td>";_26c+="</tr>";_26c+="</table></div>";_26c+="<div id=\"MyTags"+_268.TAG_NAME+"List\" style=\"display:none\">";_26c+="<span id=\"lptag"+_268.TAG_NAME+"nav\">";_26c+="</span>";_26c+="<table width=\"100%\" height=\"260\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"margin-top: 3px;\">";_26c+="<tr>";_26c+="<td valign=\"top\">";_26c+="<div id=\"tagList"+_268.TAG_NAME+"\">";_26c+="</div>";_26c+="</td>";_26c+="</tr>";_26c+="</table>";_26c+="</div>";el.innerHTML+=_26c;};Tagging.updateLeftPanelTags=function(){var _26d=document.getElementById("nscontent");var _26e=document.getElementById("nscontainer");var nsb=document.getElementById("nsb");var _270=new XMLHttpRequest();_270.open("GET",Writer.fixForCachingInIe("tagutil.do"),true);_270.onreadystatechange=function(){if(_270.readyState==4){var msg=_270.responseText;var el=document.getElementById("leftPanelTags");el.innerHTML="";if(msg!="[]"){var list=eval(_270.responseText);Writer.updateLeftPanelTags(list);if(Writer.displayLists){Writer.displayLists.setTagList(list);}for(i=0;i<list.length;i++){Tagging.addLeftPanelTag(list[i]);}if(list.length>=1){_26e.style.height=(Writer.getNormalEditorHeight()+27)+"px";}if(list.length==1){Writer.toggleScrollIcon("up",false);Writer.toggleScrollIcon("down",false);}else{Writer.toggleScrollIcon("up",true);Writer.toggleScrollIcon("down",true);}}else{_26e.style.height=(Writer.getNormalEditorHeight()+27)+"px";Writer.toggleScrollIcon("up",true);Writer.toggleScrollIcon("down",true);}}};_270.send(null);};Tagging.addToLeftPanelTags=function(_274,_275){var _276=new XMLHttpRequest();_276.open("POST","tagutil.do",true);_276.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=UTF-8");var _277="action=add";_277+="&tagId="+_274;_277+="&tagName="+_275;_276.onreadystatechange=function(){if(_276.readyState==4){if(_276.responseText=="success"){Tagging.updateLeftPanelTags();}}};_276.send(encodeURI(_277));};Tagging.deleteFromLeftPanelTags=function(_278){var _279=new XMLHttpRequest();_279.open("POST","tagutil.do",true);_279.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=UTF-8");var _27a="action=delete";_27a+="&tagName="+_278;_279.onreadystatechange=function(){if(_279.readyState==4){if(_279.responseText=="success"){Tagging.updateLeftPanelTags();}}};_279.send(encodeURI(_27a));};function MenuActions(){}MenuActions.userLocale="";MenuActions.setUserLocale=function(lang){MenuActions.userLocale=lang;};function switchOnClick(tr,_27d){tr.onclick=function(){var val=_27d;window.open(val);$("switchimgdiv").style.display="none";};}function otherLinkOnClick(tr,_280){tr.onclick=function(){var val=_280;window.open(val);$("switchimgdiv").style.display="none";};}function sortOnClick(tr,val,type){tr.onclick=function(){$("sortimgdiv").style.display="none";var _285="action=save";var _286=new XMLHttpRequest();_286.open("POST","savesettings.do",true);_286.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=UTF-8");if(type=="mydocs"){_285+="&sortBy="+val;}else{if(type=="sdocs"){_285+="&SDsortBy="+val;}else{_285+="&GSDsortBy="+val;}}_286.onreadystatechange=function(){if(_286.readyState==4){var msg=_286.responseText;if(type=="mydocs"){var tmp=val.substring(val.length-1,val.length);if(tmp=="A"){image="images/down-arrow.gif";}else{image="images/up-arrow.gif";}var t="mydocs";if(val.indexOf("Name")!=-1){var fv=Writer.geti18n("NAME");insdiv="<div id='sortdiv'> <a onclick='MenuActions.sortMenu(event,6);'> "+fv+"<img src="+image+"  title='"+Writer.geti18n("SORTDOC")+"'/></a></div>";}else{var fv="";if(val.indexOf("CreatedDate")!=-1){fv=Writer.geti18n("CREATED_DATE");}else{fv=Writer.geti18n("LAST_MODIFIED");}if(fv.length>4){fv=fv.substring(0,4);}insdiv="<div id='sortdiv'> <a onclick='MenuActions.sortMenu(event,6);'> "+fv+"...<img src="+image+" title='"+Writer.geti18n("SORTDOC")+"'/></a></div>";}var _28b=document.getElementById("sortdiv");_28b.innerHTML="";_28b.innerHTML=insdiv;Writer.mdsortbyval=val;Writer.loadTab("Documents");}else{if(type=="sdocs"){var tmp=val.substring(val.length-1,val.length);if(tmp=="A"){image="images/down-arrow.gif";}else{image="images/up-arrow.gif";}tmp=val.substring(0,4);if(tmp=="Shar"){tmp="SHARED_DATE";}var t="sdocs";var fv=eval("Writer.js_obj."+tmp.toUpperCase());if(fv.length>4){fv=fv.substring(0,4);}if(tmp=="Name"){insdiv="<div id='mysharedsortdiv'> <a onclick='MenuActions.sortMenu(event,4);'> "+fv+"<img src="+image+"  title='"+Writer.geti18n("SORTDOC")+"'/></a></div>";}else{if(fv.length>3){fv=fv.substring(0,3);}insdiv="<div id='mysharedsortdiv'> <a onclick='MenuActions.sortMenu(event,4);'> "+fv+"...<img src="+image+"  title='"+Writer.geti18n("SORTDOC")+"'/></a></div>";}var _28b=document.getElementById("shrsortby");_28b.innerHTML=insdiv;Writer.sdsortbyval=val;var _28c=$("gLCombo").value;if(_28c=="Per_ShrDocuments"){Writer.loadTab("Shared Documents");}if(_28c=="Per_Groups"){Writer.loadTab("Group Documents","","","personal");}if(_28c.substring(0,_28c.indexOf("_"))=="pGrp"){var _28d=_28c.substring((_28c.indexOf("_")+1),_28c.length);Writer.loadTab("Group Documents","",_28d,"personal");}if(_28c=="Org_Groups"){Writer.loadTab("Group Documents","","","org");}if(_28c.substring(0,_28c.indexOf("_"))=="oGrp"){var _28d=_28c.substring((_28c.indexOf("_")+1),_28c.length);Writer.loadTab("Group Documents","",_28d,"org");}}else{var tmp=val.substring(val.length-1,val.length);if(tmp=="A"){image="images/down-arrow.gif";}else{image="images/up-arrow.gif";}tmp=val.substring(0,4);if(tmp=="Shar"){tmp="SHARED_DATE";}var t="gsdocs";var fv=eval("Writer.js_obj."+tmp.toUpperCase());if(fv.length>4){fv=fv.substring(0,4);}if(tmp=="Name"){insdiv="<div id='mygsharedsortdiv'> <a onclick='MenuActions.sortMenu(event,5);'> "+fv+"<img src="+image+"  title='"+Writer.geti18n("SORTDOC")+"'/></a></div>";}else{if(fv.length>3){fv=fv.substring(0,3);}insdiv="<div id='mygsharedsortdiv'> <a onclick='MenuActions.sortMenu(event,5);'> "+fv+"...<img src="+image+"  title='"+Writer.geti18n("SORTDOC")+"'/></a></div>";}var _28b=document.getElementById("mygsharedsortdiv");_28b.innerHTML=insdiv;Writer.gsdsortbyval=val;var _28c=$("gLCombo").value;if(_28c=="Per_ShrDocuments"){Writer.loadTab("Shared Documents");}if(_28c=="Per_Groups"){Writer.loadTab("Group Documents","","","personal");}if(_28c.substring(0,_28c.indexOf("_"))=="pGrp"){var _28d=_28c.substring((_28c.indexOf("_")+1),_28c.length);Writer.loadTab("Group Documents","",_28d,"personal");}if(_28c=="Org_Groups"){Writer.loadTab("Group Documents","","","org");}if(_28c.substring(0,_28c.indexOf("_"))=="oGrp"){var _28d=_28c.substring((_28c.indexOf("_")+1),_28c.length);Writer.loadTab("Group Documents","",_28d,"org");}}}}};_286.send(encodeURI(_285));var _28e=document.getElementById("sortimgdiv");_28e.innerHTML="";};}MenuActions.switchOther=function(_28f){MenuActions._addEvent(document,"mousedown",MenuActions.documentswitchClick);if(Writer.editor){var doc=Writer.editor._editor._doc;MenuActions._addEvent(doc,"mousedown",MenuActions.documentswitchClick);}MenuActions._addEvent(document,"mousedown",MenuActions.sortClick);var _291=document.getElementById("switchimgdiv");_291.innerHTML="";var ev=(is_ie)?window.event:_28f;var _293=(is_ie)?ev.srcElement:ev.target;var r=Utils.getPos(_293);var x=r.offsetLeft;var y=r.offsetTop+_293.offsetHeight;var _297=Utils.createElement("table","border=0");_297.style.backgroundColor="#F7F7F7";_297.cellPadding=0;_297.cellSpacing=0;var _298=Utils.createElement("tbody");var img="images/spacer.gif";var rimg="images/check.gif";var _29b="images/newwindow.gif";var _29c="sea-blue";var len=Writer.otherOptions.length;for(var i=0;i<len;i++){var tr=Utils.createElement("tr");if(i==2||i==4||i==7){var td=document.createElement("td");td.setAttribute("colspan","2");td.className="menuSeparator";var _2a1="";imgNodel=Utils.createElement("img","src=/images/spacer-active.gif");td.appendChild(imgNodel);tr.appendChild(td);}else{var _2a1="";imgNodel=Utils.createElement("img","src="+img+" width=5 height=2");var _2a2=Utils.createElement("td",null,imgNodel);tr.appendChild(_2a2);var _2a3=document.createTextNode(Writer.geti18n(Writer.otherOptions[i]));var temp=Utils.createElement("a","href=javascript:; class=switchmenulinks",_2a3);var _2a5=Utils.createElement("td",null,temp);_2a5.height="20px";var _2a6=Utils.createElement("img","src="+_29b);_2a6.align="absmiddle";_2a5.appendChild(_2a6);tr.appendChild(_2a5);var _2a7=Utils.createElement("td");tr.appendChild(_2a7);tr.onmouseover=function(_2a8){this.className="mdsort";};tr.onmouseout=function(_2a9){this.className="";};otherLinkOnClick(_2a5,Writer.otherOptionsLink[i]);}_298.appendChild(tr);}_297.appendChild(_298);_291.className="tagmenu";_291.style.right="";_291.style.left=x+"px";_291.style.top=y+4+"px";_291.style.position="absolute";_291.style.display="block";_291.style.padding="3px ";_291.style.border="2px solid";_291.style.borderColor="#A2D2E8";_291.appendChild(_297);};MenuActions.switchMenu=function(_2aa,len){MenuActions._addEvent(document,"mousedown",MenuActions.documentswitchClick);if(Writer.editor){var doc=Writer.editor._editor._doc;MenuActions._addEvent(doc,"mousedown",MenuActions.documentswitchClick);}MenuActions._addEvent(document,"mousedown",MenuActions.sortClick);var _2ad=document.getElementById("switchimgdiv");_2ad.innerHTML="";var ev=(is_ie)?window.event:_2aa;var _2af=(is_ie)?ev.srcElement:ev.target;var r=Utils.getPos(_2af);var x=r.offsetLeft;var y=r.offsetTop+_2af.offsetHeight;var _2b3=Utils.createElement("table","border=0");_2b3.style.backgroundColor="#F7F7F7";_2b3.cellPadding=0;_2b3.cellSpacing=0;var _2b4=Utils.createElement("tbody");var img="images/spacer.gif";var rimg="images/check.gif";var _2b7="images/newwindow.gif";var _2b8="sea-blue";var len=Writer.otherService.length;for(var i=0;i<len;i++){var tr=Utils.createElement("tr");var _2bb="";imgNodel=Utils.createElement("img","src="+img+" width=5 height=2");var _2bc=Utils.createElement("td",null,imgNodel);tr.appendChild(_2bc);var _2bd=document.createTextNode(Writer.otherService[i]);var temp=Utils.createElement("a","href=javascript:; class=switchmenulinks",_2bd);var _2bf=Utils.createElement("td",null,temp);_2bf.height="20px";var _2c0=Utils.createElement("img","src="+_2b7);_2c0.align="absmiddle";_2bf.appendChild(_2c0);tr.appendChild(_2bf);var _2c1=Utils.createElement("td");tr.appendChild(_2c1);tr.onmouseover=function(_2c2){this.className="mdsort";};tr.onmouseout=function(_2c3){this.className="";};switchOnClick(_2bf,Writer.otherServiceLink[i]);_2b4.appendChild(tr);}_2b3.appendChild(_2b4);_2ad.className="tagmenu";_2ad.style.right="";_2ad.style.left=x+"px";_2ad.style.top=y+4+"px";_2ad.style.position="absolute";_2ad.style.display="block";_2ad.style.padding="3px ";_2ad.style.border="2px solid";_2ad.style.borderColor="#A2D2E8";_2ad.appendChild(_2b3);};MenuActions.sortMenu=function(_2c4,len){MenuActions._addEvent(document,"mousedown",MenuActions.sortClick);var type="";if(len==6){type="mydocs";}if(len==4){type="sdocs";}if(len==5){type="gsdocs";}var _2c7=document.getElementById("sortimgdiv");_2c7.innerHTML="";var ev=(is_ie)?window.event:_2c4;var _2c9=(is_ie)?ev.srcElement:ev.target;var r=Utils.getPos(_2c9);var x=r.offsetLeft;var y=r.offsetTop+_2c9.offsetHeight;var _2cd=Utils.createElement("table","border=0");_2cd.cellPadding=0;_2cd.cellSpacing=0;var _2ce=Utils.createElement("tbody");var _2cf=new Array("scroll-down.gif","scroll-up.gif","scroll-down.gif","scroll-up.gif","scroll-down.gif","scroll-up.gif");var text;var _2d1;if(len==6){text=new Array(Writer.js_obj.NAME,Writer.js_obj.NAME,Writer.js_obj.CREATED_DATE,Writer.js_obj.CREATED_DATE,Writer.js_obj.LAST_MODIFIED,Writer.js_obj.LAST_MODIFIED);_2d1=new Array("NameA","Name","CreatedDateA","CreatedDate","LastModifiedA","LastModified");}else{if(len==4){text=new Array(Writer.js_obj.NAME,Writer.js_obj.NAME,Writer.js_obj.SHARED_DATE,Writer.js_obj.SHARED_DATE,Writer.js_obj.MOD_TIME,Writer.js_obj.MOD_TIME);_2d1=new Array("NameA","Name","SharedDateA","SharedDate","LastModifiedA","LastModified");}else{text=new Array(Writer.js_obj.NAME,Writer.js_obj.NAME,Writer.js_obj.SHARED_DATE,Writer.js_obj.SHARED_DATE,Writer.js_obj.MOD_TIME,Writer.js_obj.MOD_TIME);_2d1=new Array("NameA","Name","SharedDateA","SharedDate","LastModifiedA","LastModified");len=4;}}var img="images/spacer.gif";var rimg="images/check.gif";var _2d4=new Array();var _2d5="sea-blue";for(var i=0;i<len;i++){var tr=Utils.createElement("tr");var timp="images/"+_2d5+"/"+_2cf[i];var _2d9="";if((type=="mydocs"&&_2d1[i]==Writer.mdsortbyval)||(type=="sdocs"&&_2d1[i]==Writer.sdsortbyval)||(type=="gsdocs"&&_2d1[i]==Writer.gsdsortbyval)){imgNodel=Utils.createElement("img","src="+rimg+" width=9 height=9");}else{imgNodel=Utils.createElement("img","src="+img+" width=5 height=2");}var _2da=Utils.createElement("td",null,imgNodel);tr.appendChild(_2da);var _2db=document.createTextNode(text[i]);var temp=Utils.createElement("a","href=javascript:; class=tagmenulinks1",_2db);var _2dd=Utils.createElement("td",null,temp);tr.appendChild(_2dd);var _2de=Utils.createElement("img","src="+timp+" width=12 height=12");var _2df=Utils.createElement("td",null,_2de);tr.appendChild(_2df);tr.onmouseover=function(_2e0){this.className="mdsort";};tr.onmouseout=function(_2e1){this.className="";};var tmp=_2d1[i];sortOnClick(tr,tmp,type);_2ce.appendChild(tr);}_2cd.appendChild(_2ce);if(len==2){x=x-2;}else{x=x-25;}_2c7.className="tagmenu";_2c7.style.right="";_2c7.style.left=x+"px";_2c7.style.top=y+4+"px";_2c7.style.position="absolute";_2c7.style.display="block";_2c7.appendChild(_2cd);};MenuActions.sortClick=function(ev){ev||(ev=window.event);var el=is_ie?ev.srcElement:ev.target;var div=document.getElementById("sortimgdiv");for(;el!=null&&el!=div;el=el.parentNode){}if(el==null){div.innerHTML="";div.style.display="none";MenuActions._removeEvent(document,"mousedown",MenuActions.sortClick);}};MenuActions.importCSS=function(doc,_2e7){if(_2e7==""){return;}if(typeof (doc.createStyleSheet)=="undefined"){var elm=doc.createElement("link");elm.rel="stylesheet";elm.href=_2e7;if((headArr=doc.getElementsByTagName("head"))!=null&&headArr.length>0){headArr[0].appendChild(elm);}}else{var _2e9=doc.createStyleSheet(_2e7);}};MenuActions.removeCSS=function(doc,_2eb){if(_2eb==""){return;}var i,a,main;for(i=0;(a=document.getElementsByTagName("link")[i]);i++){if(a.href==_2eb){if((headArr=doc.getElementsByTagName("head"))!=null&&headArr.length>0){headArr[0].removeChild(a);}}}};MenuActions.changeImageSkins=function(_2ef,_2f0){var imgs=document.getElementsByTagName("img");for(i=0;i<imgs.length;i++){var src=imgs[i].src;if(src.indexOf("images/"+_2ef+"/")>=0){src=src.replace("images/"+_2ef+"/","images/"+_2f0+"/");}imgs[i].src=src;}};MenuActions.loadMenuActions=function(_2f3,_2f4){var _2f5=document.getElementById("menuactions");if(!_2f5){return;}_2f5.innerHTML="";_2f5.width="50%";var _2f6=Utils.createElement("table","border=0");_2f6.cellPadding=0;_2f6.cellSpacing=3;var _2f7=[];var _2f8=Utils.createElement("tbody");var _2f9=Utils.createElement("tr");var _2fa="";for(var i=0;i<_2f3.length;i++){var _2fc=_2f3[i];var _2fd=_2f3[i];var _2fd="";if(_editor_lang!="en"){if(_2f3[i].length>=10){_2fd=_2f3[i].substring(0,10);}else{_2fd=_2f3[i];}_2fa=document.createTextNode(_2fd);}else{_2fa=document.createTextNode(_2f3[i]);}var _2fe=Utils.createElement("a","href=# class=actions",_2fa);if(_2fe){_2fe.setAttribute("alt",_2fc);_2fe.setAttribute("title",_2fc);}var _2ff=Utils.createElement("td",null,_2fe);_2ff.setAttribute("nowrap","");_2f7[i]=_2fe;_2f9.appendChild(_2ff);var _300=Utils.createElement("img","src=images/spacer.gif width=3 height=2");var _301=Utils.createElement("td",null,_300);_2f9.appendChild(_301);if(i<_2f3.length-1){var _302=Utils.createElement("td","class=pipe valign=middle");_302.innerHTML="|";_2f9.appendChild(_302);var _303=Utils.createElement("img","src=images/spacer.gif width=3 height=2");var _304=Utils.createElement("td",null,_303);_2f9.appendChild(_304);}}_2f8.appendChild(_2f9);_2f6.appendChild(_2f8);_2f5.appendChild(_2f6);MenuActions.addClickEvents(_2f3,_2f7);};MenuActions.preview="false";MenuActions.spell="false";MenuActions.addClickEvents=function(_305,_306){MenuActions.spell="true";for(var i=0;i<_305.length;i++){var _308=_305[i];switch(_308){case Writer.js_obj.EDIT:var node=_306[i];node.onclick=function(_30a){MenuActions.preview="false";var ev=(is_ie)?window.event:_30a;var _30c=(is_ie)?ev.srcElement:ev.target;var r=Utils.getPos(_30c);var x=r.offsetLeft;var y=r.offsetTop+_30c.offsetHeight;MenuActions.chkDocLockAndEdit(x,y);};break;case Writer.js_obj.QUIT_SHARED_EDIT:var node=_306[i];node.onclick=function(_310){Writer.saveSharedEdit();};break;case Writer.js_obj.SAVE:var x;var y;if(Writer.publicEditor){var node=_306[i];node.onclick=function(_313){var ev=(is_ie)?window.event:_313;var _315=(is_ie)?ev.srcElement:ev.target;var r=Utils.getPos(_315);x=r.offsetLeft;y=r.offsetTop+_315.offsetHeight;if(Writer.remoteDocEditor){Writer.saveDocument();}};}else{var node=_306[i];node.onclick=function(){Writer.saveDocument();};}break;case Writer.js_obj.SAVE_TO_MY_ACCOUNT+"("+Writer.accountEmailId+")":var node=_306[i];node.onclick=function(){Writer.saveDocument();};break;case Writer.js_obj.SAVE_AS_TEMPLATE:MenuActions.currentEdit="doc";var node=_306[i];node.onclick=function(){Writer.saveTempDocument();};break;case Writer.js_obj.SAVETEMPLATE:MenuActions.currentEdit="template";var node=_306[i];node.onclick=function(){Writer.saveTemplate();};break;case Writer.js_obj.PREVIEW:var node=_306[i];node.onclick=function(){Writer.viewmode=true;if((Writer.currentDocInfo.CATEGORY=="SHARED")||(Writer.currentDocInfo.SHAREDTO&&Writer.currentDocInfo.SHAREDTO!="")){Writer.changeSharedEditMode(function(){if(Writer.lockedSegment){Writer.markSegment(Writer.lockedSegment,false);}if(Writer.editor){Writer.documentContent=Writer.editor.getHTML();pausecomp(500);Writer.unlockAndSaveSegment(Writer.viewDocument);}},"read");MenuActions.preview="true";}else{Writer.viewDocument();MenuActions.preview="true";}};break;case Writer.geti18n("RegeneratePageView"):case Writer.geti18n("PageView"):var node=_306[i];node.onclick=function(){MenuActions.pageView="true";MenuActions.hidePageViewFooter="true";Writer.viewmode=true;if((Writer.currentDocInfo.CATEGORY=="SHARED")||(Writer.currentDocInfo.SHAREDTO&&Writer.currentDocInfo.SHAREDTO!="")){Writer.changeSharedEditMode(function(){if(Writer.lockedSegment){Writer.markSegment(Writer.lockedSegment,false);}if(Writer.editor){Writer.documentContent=Writer.editor.getHTML();pausecomp(500);Writer.unlockAndSaveSegment(Writer.viewPagedDocument);}},"read");MenuActions.preview="true";}else{Writer.viewPagedDocument();}};break;case Writer.geti18n("Print"):var node=_306[i];node.onclick=function(){var _317=Writer.geti18n("PrintConfirmationAlert");for(var i=1;i<=6;i++){var srch="$"+i;_317=Writer.replacei18nText(_317,srch,"\"");}if(!Writer.remoteDocEditor&&!Writer.publicEditor){var ok=confirm(_317+"\n"+"\n"+Writer.geti18n("PrintProceedAnyway"));}else{ok=true;}if(ok){if($("wo_innerbody_iframe")){var doc=$("wo_innerbody_iframe").contentWindow;if(HTMLArea.is_ie){doc.document.execCommand("print");}else{doc.print();}}else{if(Writer.editor._editor._iframe.contentWindow){if(HTMLArea.is_ie){Writer.editor._editor._iframe.contentWindow.document.execCommand("print");}else{Writer.editor._editor._iframe.contentWindow.print();}}}}};break;case Writer.js_obj.PREVIEW_TEMPLATE:var node=_306[i];node.onclick=function(){if(Writer.tempid&&Writer.authid&&Writer.tempname){Writer.hideQuickFormat();Writer.handleTemplateView(Writer.tempid,Writer.authid,Writer.tempname);}};break;case Writer.js_obj.CREATEDOCUMENT:var node=_306[i];node.onclick=function(){if(MenuActions.currentEdit&&MenuActions.currentEdit=="template"){MenuActions.currentEdit="";}Writer.createTempDoc(Writer.tempid,Writer.authid,Writer.tempname);};break;case Writer.js_obj.EDITTEMPLATE:var node=_306[i];node.onclick=function(){Writer.editTemplate();};break;case Writer.js_obj.RESTORE:var node=_306[i];node.onclick=function(){if(Writer.currentDocInfo){Writer.restoreDocument(Writer.currentDocInfo.DOCUMENT_ID);}};break;case Writer.js_obj.RECENTDOCUMENTS:var node=_306[i];node.onclick=function(_31c){var ev=(is_ie)?window.event:_31c;var _31e=(is_ie)?ev.srcElement:ev.target;var r=Utils.getPos(_31e);var x=r.offsetLeft;var y=r.offsetTop+_31e.offsetHeight;MenuActions.showRecentDocuments(x,y);};break;case Writer.js_obj.HISTORY:var node=_306[i];node.onclick=function(){Writer.viewmode=true;Writer.historyview=true;if(Writer.checkSave()&&!Writer.sharedEditMode){if(Writer.editor){Writer.aftersave=function(){Writer.showHistory();};Writer.autoSaveDocument();}else{Writer.showHistory();}}else{if(Writer.currentDocInfo.DOCUMENT_NAME!=Writer.js_obj.Untitled){var _322=Writer.geti18n("Cannot view History in collaborative editing mode");for(var i=1;i<=2;i++){var srch="$"+i;_322=Writer.replacei18nText(_322,srch,"\n");}alert(_322);}return;}};break;case "View":var node=_306[i];node.href="/docview.do?docId="+Writer.currentDocInfo.DOCUMENT_ID+"&mode=read&nolog="+Writer.nolog+"&displayall="+Writer.displayall;break;case Writer.js_obj.VIEWVERSION:var node=_306[i];node.onclick=function(_325){var ev=(is_ie)?window.event:_325;var _327=(is_ie)?ev.srcElement:ev.target;var r=Utils.getPos(_327);var x=r.offsetLeft;var y=r.offsetTop+_327.offsetHeight;MenuActions.listVersions(x,y);};break;case Writer.js_obj.OLDEST:var node=_306[i];node.onclick=function(){Writer.versioning.loadFirstVersion();};break;case Writer.js_obj.LATEST:var node=_306[i];node.onclick=function(){Writer.versioning.loadLatestVersion();};break;case Writer.js_obj.NEWER:var node=_306[i];node.onclick=function(){Writer.versioning.loadNewerVersion();};break;case Writer.js_obj.OLDER:var node=_306[i];node.onclick=function(){Writer.versioning.loadOlderVersion();};break;case Writer.js_obj.SHARE:var node=_306[i];node.onclick=function(){if(Writer.currentDocInfo.VERSION&&(Writer.currentDocInfo.VERSION=="-0.0"||Writer.currentDocInfo.VERSION=="0.0")){alert(Writer.geti18n("SAVEMSG1"));return;}MenuActions.shareDocument();if(MenuActions.userLocale=="ja"||MenuActions.userLocale=="zh"){$(MenuActions.userLocale+"ID").selected=true;}else{$("enID").selected=true;}var _32b=document.getElementById("shareList");var _32c=document.getElementById("shareEmailSubject");var _32d=document.getElementById("shareEmailContentFlag");var _32e=document.getElementById("shareEmailContent");var _32f=document.getElementById("shareEmailContentTD");var _330=document.getElementById("shareType1");_32b.value="";_32c.value=Writer.geti18n("SHAREINFO");_32d.checked=false;_32f.className="hide";_32e.value="";_330.checked=true;};break;case Writer.js_obj.PUBLISH:var node=_306[i];node.onclick=function(_331){if(Writer.currentDocInfo.VERSION&&(Writer.currentDocInfo.VERSION=="-0.0"||Writer.currentDocInfo.VERSION=="0.0")){alert(Writer.geti18n("SAVEMSG1"));return;}var ev=(is_ie)?window.event:_331;var _333=(is_ie)?ev.srcElement:ev.target;var r=Utils.getPos(_333);var x=r.offsetLeft;var y=r.offsetTop+_333.offsetHeight;if(Writer.checkSave()){MenuActions.showPublish(x,y);}};break;case Writer.js_obj.POST_BLOG:var node=_306[i];node.onclick=function(_337){var ev=(is_ie)?window.event:_337;var _339=(is_ie)?ev.srcElement:ev.target;var r=Utils.getPos(_339);var x=r.offsetLeft;var y=r.offsetTop+_339.offsetHeight;if(Writer.publicDocEditor||Writer.publicEditor){PublicBlog.pubPostBlog();}else{}};break;case Writer.js_obj.EMAIL:var node=_306[i];node.onclick=function(_33d){if(MenuActions.userLocale=="ja"||MenuActions.userLocale=="zh"){$(MenuActions.userLocale+"ID1").selected=true;}else{$("enID1").selected=true;}var ev=(is_ie)?window.event:_33d;var _33f=(is_ie)?ev.srcElement:ev.target;var r=Utils.getPos(_33f);var x=r.offsetLeft;var y=r.offsetTop+_33f.offsetHeight;if(Writer.checkSave()){MenuActions.showEmail(x,y);}};break;case Writer.js_obj.EXPORT:var node=_306[i];node.onclick=function(_343){var ev=(is_ie)?window.event:_343;var _345=(is_ie)?ev.srcElement:ev.target;var r=Utils.getPos(_345);var x=r.offsetLeft;var y=r.offsetTop+_345.offsetHeight;if(!Writer.publicEditor){if(Writer.checkSave()){MenuActions.showExportAs(x,y);}}else{MenuActions.showExportAs(x,y);}};break;case Writer.js_obj.SAVEAS:var node=_306[i];node.onclick=function(_349){var ev=(is_ie)?window.event:_349;var _34b=(is_ie)?ev.srcElement:ev.target;var r=Utils.getPos(_34b);var x=r.offsetLeft;var y=r.offsetTop+_34b.offsetHeight;if(!Writer.publicEditor){MenuActions.showSaveAs(x,y);}else{MenuActions.showExportAs(x,y);}};break;case Writer.geti18n("Download As"):var node=_306[i];node.onclick=function(_34f){var ev=(is_ie)?window.event:_34f;var _351=(is_ie)?ev.srcElement:ev.target;var r=Utils.getPos(_351);var x=r.offsetLeft;var y=r.offsetTop+_351.offsetHeight;MenuActions.showExportAs(x,y);};break;case Writer.js_obj.PRINTPREVIEW:var node=_306[i];node.onclick=function(){Writer.printPreview();};break;case Writer.js_obj.EXPORT_TL:var node=_306[i];node.onclick=function(){Writer.exporttoLibraray(Writer.tempname);};break;case Writer.js_obj.DIGISIGN:var node=_306[i];node.onclick=function(){Writer.initESignLoad();};break;case Writer.geti18n("PageSetup"):var node=_306[i];node.onclick=function(){Docprops.init();};break;case Writer.geti18n("HeaderFooter"):var node=_306[i];node.onclick=function(){Docprops.init("true");};break;case "View":var node=_306[i];node.href="/docview.do?docId="+Writer.currentDocInfo.DOCUMENT_ID+"&mode=read&nolog="+Writer.nolog+"&displayall="+Writer.displayall;break;}}};MenuActions.shareDocument=function(){if(Writer.currentDocInfo.VERSION&&(Writer.currentDocInfo.VERSION=="-0.0"||Writer.currentDocInfo.VERSION=="0.0")){alert(Writer.geti18n("SAVEMSG1"));return;}if(Writer.checkSave()){ShareMenu.createShareDialog();}};MenuActions.editDocument=function(_355,_356){var ev=(is_ie)?window.event:_355;var _358=(is_ie)?ev.srcElement:ev.target;var r=Utils.getPos(_358);var x=r.offsetLeft;var y=r.offsetTop+_358.offsetHeight;if(_356&&Writer.sharedEditMode){alert(Writer.geti18n("Cannotrevertincollaborativeeditingmode"));}else{MenuActions.chkDocLockAndEdit(x,y,_356);}};MenuActions.deleteDocument=function(_35c,_35d){if(!confirm(Writer.geti18n("Areyouwanttodeletethisversion"))){return;}if(_35d&&Writer.sharedEditMode){alert(Writer.geti18n("Cannotdeleteincollaborativeeditingmode"));}else{var _35e=Writer.currentDocInfo.DOCUMENT_ID;var _35f=$("versionList").value;var _360=new XMLHttpRequest();_360.open("POST","DeleteDocVersion.do",true);_360.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=UTF-8");var _361="DOCUMENT_ID="+_35e;_361+="&version="+_35f;_360.onreadystatechange=function(){if(_360.readyState==4){var resp=_360.responseText;if(resp=="latestVersion"){alert(Writer.geti18n("Youcan_tdeletethelatestversionoffile"));}else{if(resp=="successfullyDeleted"){Utils.showBlogMsg(Writer.js_obj.DOCTRASHMSG);Writer.showHistory();}}}};_360.send(_361);}};MenuActions.showRecentDocuments=function(x,y){MenuActions._addEvent(document,"mousedown",MenuActions.documentClick);var _365=Writer.displayLists.docList;var _366=10;Utils.showMsg(Writer.js_obj.LOADING);var _367=new XMLHttpRequest();switch(Writer.selectedTab){case Writer.js_obj.DOCUMENTS:_367.open("GET","GetDocs.do?fromIndex=0&perPage="+_366,true);break;case Writer.js_obj.SHARE_DOCUMENTS:_367.open("GET","GetSharedDocs.do?fromIndex=0&perPage="+_366,true);break;}_367.onreadystatechange=function(){if(_367.readyState==4){var _368=_367.responseText;var _369=_368.substring(0,_368.indexOf(":"));var _36a=_368.substring(_368.indexOf(":")+1,_368.length);var list=eval(_36a);if(list.length<_366){_366=list.length;}var _36c=document.getElementById("slidediv");var i=0;while(i<_366){var _36e=list[i];if(_36e.DOCUMENT_ID!=Writer.currentDocInfo.DOCUMENT_ID){var _36f=document.createTextNode(_36e.DOCUMENT_NAME);var _370=Utils.createElement("a","href=javascript:; class=toungelink",_36f);_370.docInfo=_36e;_370.onclick=function(){if(Writer.selectedTab=="Documents"){Writer.loadDocument(this.docInfo);}else{Writer.loadSharedDocument(this.docInfo);}_36c.innerHTML="";_36c.style.display="none";};_36c.appendChild(_370);}i++;}var _371=_36c.childNodes;if(_371.length==0){var _36f=document.createTextNode("No Documents");_36c.appendChild(_36f);}_36c.className="tounge";_36c.style.left=x+"px";_36c.style.top=y+4+"px";_36c.style.position="absolute";_36c.style.display="block";Utils.hideMsg();}};_367.send(null);};MenuActions._addEvent=function(el,_373,func){if(is_ie){el.attachEvent("on"+_373,func);}else{el.addEventListener(_373,func,true);}};MenuActions._removeEvent=function(el,_376,func){if(is_ie){el.detachEvent("on"+_376,func);}else{el.removeEventListener(_376,func,true);}};MenuActions.documentClick=function(ev){ev||(ev=window.event);var el=is_ie?ev.srcElement:ev.target;var div=document.getElementById("slidediv");for(;el!=null&&el!=div;el=el.parentNode){}if(el==null){div.innerHTML="";div.style.display="none";MenuActions._removeEvent(document,"mousedown",MenuActions.documentClick);}};MenuActions.documentswitchClick=function(ev){ev||(ev=window.event);var el=is_ie?ev.srcElement:ev.target;var div=document.getElementById("switchimgdiv");for(;el!=null&&el!=div;el=el.parentNode){}if(el==null){div.innerHTML="";div.style.display="none";MenuActions._removeEvent(document,"mousedown",MenuActions.documentClick);}};MenuActions.documentTagClick=function(ev){ev||(ev=window.event);var el=is_ie?ev.srcElement:ev.target;var div=document.getElementById("slidedivTag");if(div){for(;el!=null&&el!=div;el=el.parentNode){}if(el==null){document.body.removeChild(div);MenuActions._removeEvent(document,"mousedown",MenuActions.documentTagClick);}}};MenuActions.documentClick1=function(ev){ev||(ev=window.event);var el=is_ie?ev.srcElement:ev.target;var div=document.getElementById("slidediv1");for(;el!=null&&el!=div;el=el.parentNode){}if(el==null){div.innerHTML="";div.style.display="none";MenuActions._removeEvent(document,"mousedown",MenuActions.documentClick1);}};MenuActions.documentClickHelpClear=function(ev){ev||(ev=window.event);var el=is_ie?ev.srcElement:ev.target;var div=document.getElementById("zohohelp");for(;el!=null&&el!=div;el=el.parentNode){}if(el==null){div.style.display="none";var div1=document.getElementById("zohohelp1");div1.innerHTML="";MenuActions._removeEvent(document,"mousedown",MenuActions.documentClickHelpClear);}};MenuActions._stopEvent=function(ev){if(is_ie){ev.cancelBubble=true;ev.returnValue=false;}else{ev.preventDefault();ev.stopPropagation();}};MenuActions.listVersions=function(x,y){MenuActions._addEvent(document,"mousedown",MenuActions.documentClick);var div=document.getElementById("slidediv");var _38c=Writer.versioning;var _38d=Writer.currentVersionDetail;for(var i=_38c.versioningDetails.length-1;i>=0;i--){var _38f=_38c.versioningDetails[i];if(_38d&&_38d.VERSION==_38f.VERSION){continue;}var _390=document.createTextNode(_38f.UPDATED_TIME);var _391=Utils.createElement("a","href=javascript:; class=toungelink",_390);_391.versionDetail=_38f;_391.onclick=function(){Writer.loadVersion(this.versionDetail);};div.appendChild(_391);}div.className="historytounge";div.style.left=x+"px";div.style.top=y+4+"px";div.style.position="absolute";div.style.display="block";};MenuActions.importClick=function(ev){ev||(ev=window.event);var el=is_ie?ev.srcElement:ev.target;var div=document.getElementById("wo_upload_div");for(;el!=null&&el!=div;el=el.parentNode){}if(el==null){div.style.display="none";MenuActions._removeEvent(document,"mousedown",MenuActions.importClick);}};MenuActions.emailClick=function(ev){ev||(ev=window.event);var el=is_ie?ev.srcElement:ev.target;var div=document.getElementById("wo_email_div");for(;el!=null&&el!=div;el=el.parentNode){}if(el==null){div.style.display="none";MenuActions._removeEvent(document,"mousedown",MenuActions.emailClick);}};MenuActions.lockClick=function(ev){ev||(ev=window.event);var el=is_ie?ev.srcElement:ev.target;var div=document.getElementById("lockdiv");for(;el!=null&&el!=div;el=el.parentNode){}if(el==null){div.style.display="none";MenuActions._removeEvent(document,"mousedown",MenuActions.lockClick);}};MenuActions.showEmail=function(x,y){MenuActions._addEvent(document,"mousedown",MenuActions.documentClick);if(Writer.editor){var doc=Writer.editor._editor._doc;MenuActions._addEvent(doc,"mousedown",MenuActions.documentClick);}var _39e=document.createTextNode(Writer.js_obj.EMAILOUT);var _39f=Utils.createElement("a","href=javascript:; class=tagmenulinks",_39e);_39f.onclick=function(){var div=document.getElementById("slidediv");div.innerHTML="";div.style.display="none";PublicEmail.showEmailUI(x,y);};var div=document.getElementById("slidediv");div.className="tagmenu";div.appendChild(_39f);var _3a2=document.createTextNode(Writer.js_obj.EMAILIN);var _3a3=Utils.createElement("a","href=javascript:; class=tagmenulinks",_3a2);_3a3.onclick=function(){var div=document.getElementById("slidediv");div.innerHTML="";div.style.display="none";PublicEmail.openSlider("emailInDiv");};if(!Writer.Rebrand){div.appendChild(_3a3);}div.className="tagmenu";div.style.right="";div.style.left=x+"px";div.style.top=y+4+"px";div.style.position="absolute";div.style.display="block";};MenuActions.newBlogPost=function(){var tmp=loader.JSComponentLoader.jsComponent;Writer.log("JS:"+tmp["blog.js"]);Blog.onBlogServicesUpdate=function(){Blog.loadPost();};$("blogusername").value="";$("blogpassword").value="";$("blogStatusMsg").value="";$("blogCategoryLabelDIV").value="";$("blogCategoryDIV").value="";Blog.updateBlogServices();};MenuActions.updateBlogPost=function(){Blog.updateBlogServices1();Blog.getBlogPostUpdateOptions();};MenuActions.showPublish=function(x,y){MenuActions._addEvent(document,"mousedown",MenuActions.documentClick);if(Writer.editor){var doc=Writer.editor._editor._doc;MenuActions._addEvent(doc,"mousedown",MenuActions.documentClick);}var div=document.getElementById("slidediv");div.className="tagmenu1";var div1=document.createElement("div");div1.id="slidepublicdiv";div1.style.display="none";div1.className="tagmenu1";div.appendChild(div1);if(Writer.currentDocInfo.BLOGGED=="true"){var _3ab=Writer.js_obj.UPDATE_BLOG;var _3ac=document.createTextNode(_3ab);var _3ad=Utils.createElement("a","href=javascript:; class=tagmenulinks",_3ac);_3ad.onclick=function(){var div=document.getElementById("slidediv");div.innerHTML="";div.style.display="none";loader.exec("blog.js",function(){setTimeout(function(){MenuActions.updateBlogPost();},200);});};div.appendChild(_3ad);}else{var _3af=document.createTextNode(Writer.js_obj.POST_BLOG);var _3b0=Utils.createElement("a","href=javascript:; class=tagmenulinks",_3af);_3b0.onclick=function(){var div=document.getElementById("slidediv");div.innerHTML="";div.style.display="none";Utils.clearDiv("blogStatusMsg");Utils.clearDiv("blogStatusMsg1");var tmp=loader.JSComponentLoader.jsComponent;Writer.log("~JS:"+tmp["blog.js"]);loader.exec("blog.js",function(){setTimeout(function(){MenuActions.newBlogPost();},200);});};div.appendChild(_3b0);MenuActions._addEvent(_3b0,"mouseover",MenuActions.elementMouseOut);}if(Writer.zoid!=-1){if(Writer.currentDocInfo&&Writer.currentDocInfo.PUBLIC=="YES"){var _3b3="";if(Writer.currentDocInfo&&Writer.currentDocInfo.PUB_SCOPE=="public"){_3b3=Writer.js_obj.PublishedURL;}else{_3b3=Writer.js_obj.InternallyPublishedURL;}var _3b4=document.createTextNode(_3b3);var _3b5=Utils.createElement("a","href=javascript:; class=tagmenulinks",_3b4);_3b5.onclick=function(){var div=document.getElementById("slidediv");div.innerHTML="";div.style.display="none";Sharing.publicInfo();};div.appendChild(_3b5);var _3b7=Writer.js_obj.CancelPublic;var _3b8=document.createTextNode(_3b7);var _3b9=Utils.createElement("a","href=javascript:; class=tagmenulinks",_3b8);_3b9.onclick=function(){var div=document.getElementById("slidediv");div.innerHTML="";div.style.display="none";Sharing.sharePublic("cancel_publish");};div.appendChild(_3b9);if(Writer.PUBLISH_DOCUMENT==true){if(Writer.currentDocInfo&&Writer.currentDocInfo.PUB_SCOPE=="corporate"){var _3ab=Writer.js_obj.PublictoExternalWorld;var _3ac=document.createTextNode(_3ab);var _3ad=Utils.createElement("a","href=javascript:; class=tagmenulinks",_3ac);_3ad.onclick=function(){var div=document.getElementById("slidediv");Sharing.publicExternal=true;div.innerHTML="";div.style.display="none";var _3bc=new XMLHttpRequest();_3bc.open("GET","sharePublic.do?actid=validate_public",true);_3bc.onreadystatechange=function(){if(_3bc.readyState==4){var resp=(_3bc.responseText).trim();if(resp&&resp==="need_captcha"){alert("You can publish max 3 documents externally at a 5 min interval.");}else{PublicEmail.openSlider("publishMsgUI");}}};_3bc.send(null);};div.appendChild(_3ad);}}}else{var _3b3=Writer.js_obj.MAKEPUBLIC;var _3b4=document.createTextNode(_3b3);var _3b5=Utils.createElement("a","href=javascript:; class=tagmenulinks");_3b5.innerHTML="<span><b style=\"float:right\"><img style=\"border:none\" src=\"/images/next_n.gif\"/></b>Make Public</span>";div.appendChild(_3b5);MenuActions._addEvent(_3b5,"mouseover",MenuActions.elementMouseOver);}}else{if(Writer.currentDocInfo&&Writer.currentDocInfo.PUBLIC=="YES"){var _3b3=Writer.js_obj.PUBLIC_INFO;var _3b4=document.createTextNode(_3b3);var _3b5=Utils.createElement("a","href=javascript:; class=tagmenulinks",_3b4);_3b5.onclick=function(){var div=document.getElementById("slidediv");div.innerHTML="";div.style.display="none";Sharing.publicInfo();};div.appendChild(_3b5);}var _3b3=Writer.js_obj.MAKEPUBLIC;var _3bf=false;if(Writer.currentDocInfo&&Writer.currentDocInfo.PUBLIC=="YES"){_3b3=Writer.js_obj.CAN_PUB_SHARING;_3bf=true;}var _3b4=document.createTextNode(_3b3);var _3b5=Utils.createElement("a","href=javascript:; class=tagmenulinks",_3b4);_3b5.onclick=function(){var div=document.getElementById("slidediv");div.innerHTML="";div.style.display="none";if(_3bf){Sharing.sharePublic("cancel_publish");}else{var _3c1=new XMLHttpRequest();_3c1.open("GET","sharePublic.do?actid=validate_public",true);_3c1.onreadystatechange=function(){if(_3c1.readyState==4){var resp=(_3c1.responseText).trim();if(resp&&resp==="need_captcha"){alert("You can publish max 3 documents at a 5 min interval.");}else{PublicEmail.openSlider("publishMsgUI");}}};_3c1.send(null);}};div.appendChild(_3b5);}var _3b7=Writer.js_obj.DOCROLL;var _3b8=document.createTextNode(_3b7);var _3b9=Utils.createElement("a","href=javascript:; class=tagmenulinks",_3b8);_3b9.onclick=function(){var div=document.getElementById("slidediv");div.innerHTML="";div.style.display="none";Writer.showDocrollScript(Writer.loginName);};div.appendChild(_3b9);MenuActions._addEvent(_3b9,"mouseover",MenuActions.elementMouseOut);div.className="tagmenu1";div.style.right="";div.style.left=x+"px";div.style.top=y+4+"px";div.style.position="absolute";div.style.display="block";};MenuActions.elementMouseOut=function(ev){var div1=document.getElementById("slidepublicdiv");div1.style.display="none";};MenuActions.elementMouseOver=function(ev){ev||(ev=window.event);var el=is_ie?ev.srcElement:ev.target;var _3c8=(is_ie)?ev.srcElement:ev.target;var r=Utils.getPos(_3c8);var x=r.offsetLeft;var y=r.offsetTop+_3c8.offsetHeight;var div1=document.getElementById("slidepublicdiv");for(;el!=null&&el!=div;el=el.parentNode){}if(el==null){div1.innerHTML="";MenuActions.showSubPublishMenu(x,y);}};MenuActions.showSubPublishMenu=function(x,y){MenuActions._addEvent(document,"mousedown",MenuActions.documentClick);if(Writer.editor){var doc=Writer.editor._editor._doc;MenuActions._addEvent(doc,"mousedown",MenuActions.documentClick);}var div=document.getElementById("slidepublicdiv");div.className="tagmenu1";var text="";if(Writer.orgName!=null){text=Writer.js_obj.Within+" "+Writer.orgName;}else{text=Writer.js_obj.WithinOrganisation;}var _3d2=document.createTextNode(text);var _3d3=Utils.createElement("a","href=javascript:; class=tagmenulinks",_3d2);_3d3.onclick=function(){var div=document.getElementById("slidediv");div.innerHTML="";div.style.display="none";PublicEmail.openSlider("publishMsgUI1");};div.appendChild(_3d3);if(Writer.PUBLISH_DOCUMENT==true){var text=Writer.js_obj.ToExternalWorld;var _3d2=document.createTextNode(text);var _3d3=Utils.createElement("a","href=javascript:; class=tagmenulinks",_3d2);_3d3.onclick=function(){Sharing.publicExternal=true;var div=document.getElementById("slidediv");div.innerHTML="";div.style.display="none";var _3d6=new XMLHttpRequest();_3d6.open("GET","sharePublic.do?actid=validate_public",true);_3d6.onreadystatechange=function(){if(_3d6.readyState==4){var resp=(_3d6.responseText).trim();if(resp&&resp==="need_captcha"){alert("You can publish max 3 documents externally at a 5 min interval.");}else{PublicEmail.openSlider("publishMsgUI");}}};_3d6.send(null);};div.appendChild(_3d3);}var div1=document.getElementById("slidediv");div.className="tagmenu1";div.style.right="";div.style.left=div1.offsetWidth+-4+"px";div.style.top=div1.childNodes[2].offsetHeight+"px";div.style.position="absolute";div.style.display="block";};MenuActions.createMenuLink=function(_3d9,fmt){var _3db=Utils.createElement("a","href=javascript:; class=tagmenulinks",_3d9);_3db.onclick=function(){var div=document.getElementById("slidediv");div.innerHTML="";div.style.display="none";PublicEmail.exportCurrentDocument(fmt,false);return false;};return _3db;};MenuActions.showExportAs=function(x,y){MenuActions._addEvent(document,"mousedown",MenuActions.documentClick);if(Writer.editor){var doc=Writer.editor._editor._doc;MenuActions._addEvent(doc,"mousedown",MenuActions.documentClick);}var div=document.getElementById("slidediv");div.className="tagmenu";if(Writer.publicDocEditor||Writer.publicEditor){var fmt=[["doc",Writer.js_obj.DOC],["docx",Writer.js_obj.DOCX],["odt",Writer.js_obj.ODT],["pdf",Writer.js_obj.PDF],["latex",Writer.js_obj.LATEX],["sxw",Writer.js_obj.SXW],["rtf",Writer.js_obj.RTF],["txt",Writer.js_obj.TXT],["html",Writer.js_obj.HTML]];}else{var fmt=[["doc",Writer.js_obj.DOC],["docx",Writer.js_obj.DOCX],["odt",Writer.js_obj.ODT],["pdf",Writer.js_obj.PDF],["latex",Writer.js_obj.LATEX],["sxw",Writer.js_obj.SXW],["rtf",Writer.js_obj.RTF],["txt",Writer.js_obj.TXT],["html",Writer.js_obj.HTML]];}for(i=0;i<fmt.length;i++){var _3e2=document.createTextNode(fmt[i][1]);var _3e3=MenuActions.createMenuLink(_3e2,fmt[i][0]);div.appendChild(_3e3);}div.className="tagmenu";div.style.right="";div.style.left=x+"px";div.style.top=y+4+"px";div.style.position="absolute";div.style.display="block";};MenuActions.showSaveAs=function(x,y){MenuActions._addEvent(document,"mousedown",MenuActions.documentClick);if(Writer.editor){var doc=Writer.editor._editor._doc;MenuActions._addEvent(doc,"mousedown",MenuActions.documentClick);}var _3e7=document.createTextNode(Writer.js_obj.NEWDOCUMENT);var _3e8=Utils.createElement("a","href=javascript:; class=tagmenulinks",_3e7);_3e8.onclick=function(){var div=document.getElementById("slidediv");div.innerHTML="";div.style.display="none";Writer.saveAsNewDocument();};var div=document.getElementById("slidediv");div.className="tagmenu";div.appendChild(_3e8);var _3eb=Writer.js_obj.TEMPLATE;var _3ec=document.createTextNode(_3eb);var _3ed=Utils.createElement("a","href=javascript:; class=tagmenulinks",_3ec);_3ed.onclick=function(){var div=document.getElementById("slidediv");div.innerHTML="";div.style.display="none";Writer.saveTempDocument();};div.appendChild(_3ed);div.className="tagmenu";div.style.right="";div.style.left=x+"px";div.style.top=y+4+"px";div.style.position="absolute";div.style.display="block";};MenuActions.chkDocLockAndEdit=function(x,y,_3f1){if((Writer.currentDocInfo.CATEGORY=="SHARED")||(Writer.currentDocInfo.SHAREDTO&&Writer.currentDocInfo.SHAREDTO.length>0)){if(_3f1){Writer.documentContent=Writer.revertbackup;Writer.editDocument();return;}if(Writer.currentDocInfo.CATEGORY!="OWNED"&&Writer.currentDocInfo.PERMISSION=="false"){alert(Writer.js_obj.SHARE_INFO);return;}var el=document.getElementById("wo_innerbody");if(el){Writer.documentContent=el.innerHTML;}var _3f3=Writer.currentDocInfo;Writer.contextSwitch(_3f3);}else{if(!Writer.viewmode){Writer.autoSaveDocument();}if(_3f1){Writer.documentContent=Writer.revertbackup;}Writer.editDocument();}};MenuActions.createTempDoc=function(ev){ev||(ev=window.event);var el=is_ie?ev.srcElement:ev.target;var div=document.getElementById("wo_temp_div");for(;el!=null&&el!=div;el=el.parentNode){}if(el==null){div.innerHTML="";div.style.display="none";MenuActions._removeEvent(document,"mousedown",MenuActions.createTempDoc);}};MenuActions.propertiesClick=function(ev){ev||(ev=window.event);var el=is_ie?ev.srcElement:ev.target;var _3f9=Writer.editor;var _3fa=["propdiv","slidediv","PropPaddingDiv","PropBorderSizeDiv","PropBorderStyleDiv"];var _3fb=function(tmp){var _3fd=true;for(var j=0;j<_3fa.length;j++){if(document.getElementById(_3fa[j])==tmp){_3fd=false;break;}}Writer.log("found:"+_3fd);return _3fd;};var div=document.getElementById("propdiv");for(;el!=null&&el!=div&&_3fb(el);el=el.parentNode){}if(el==null){for(var j=0;j<_3fa.length;j++){if(document.getElementById(_3fa[j])){document.getElementById(_3fa[j]).style.display="none";}}MenuActions._removeEvent(document,"mousedown",MenuActions.propertiesClick);}};MenuActions.srchClick=function(ev){ev||(ev=window.event);var el=is_ie?ev.srcElement:ev.target;var _403=$("srchTab");var _404=$("searchResult");var _405=$("featureSearchResult");for(;el!=null&&el!=_404&&el!=_405&&el!=_403;el=el.parentNode){}if(el==null){_404.style.display="none";_405.style.display="none";MenuActions._removeEvent(document,"mousedown",MenuActions.srchClick);}};Versioning.MODIFIED_DOC_OBJ=1;Versioning.NEW_DOC_OBJ=2;Versioning.DELETED_DOC_OBJ=3;function Versioning(_406){this.versioningDetails=_406;this.currentNum=this.versioningDetails.length-1;this.htmlContentList=[];this.mergedXMLs=[];this.xmlContentList=[];this.parseXML=_Versioning_parseXML;this.parseVersioningDetails=_Versioning_parseVersioningDetails;this.getDocumentContent=_Versioning_getDocumentContent;this.currentVersion="1.0";this.currentNum=0;this.parseDocObjs=_Versioning_parseDocObjs;this.traverseDocObj=_Versioning_traverseDocObj;this.getHtmlContent=_Versioning_getHtmlContent;this.mergeVersions=_Versioning_mergeVersions;this.mergeXMLs=_Versioning_mergeXMLs;this.getElementById=_Versioning_getElementById;this.copyStyleNodes=_Versioning_copyStyleNodes;this.updateAttributes=_Versioning_updateAttributes;this.replaceFragmentObject=_Versioning_replaceFragmentObject;this.replaceOrAppendStyleNode=_Versioning_replaceOrAppendStyleNode;this.deleteDocObjs=_Versioning_deleteDocObjs;this.loadFirstVersion=_Versioning_loadFirstVersion;this.loadLatestVersion=_Versioning_loadLatestVersion;this.loadNewerVersion=_Versioning_loadNewerVersion;this.loadOlderVersion=_Versioning_loadOlderVersion;}function _Versioning_parseVersioningDetails(){var _407=this.versioningDetails.length;for(var i=0;i<_407;i++){var _409=this.versioningDetails[i];_409.versionNum=i;this.xmlContentList[_409.VERSION]=this.parseXML(_409.DOCUMENT_CONTENT);}var _40a=this.versioningDetails[0].VERSION;this.mergedXMLs[_40a]=this.xmlContentList[_40a];this.currentVersion=this.versioningDetails[_407-1].VERSION;this.currentNum=_407-1;}function _Versioning_parseXML(_40b){var _40c=Sarissa.getDomDocument();_40c.async=false;_40c.loadXML(_40b);if(_40c.parseError!=0){alert(Sarissa.getParseErrorText(_40c));return null;}return _40c;}function _Versioning_getDocumentContent(_40d){var _40e=this.htmlContentList[_40d];if(_40e){return _40e;}var _40f=this.mergedXMLs[_40d];if(_40f){var _40e=this.getHtmlContent(_40f);this.htmlContentList[_40d]=_40e;return _40e;}var _410=this.versioningDetails.length;for(var i=0;i<_410-1;i++){var _412=this.versioningDetails[i];if(_412.VERSION!=_40d){var _413=this.versioningDetails[i+1];if(_413){this.mergeVersions(_412.VERSION,_413.VERSION);}}else{break;}}_40f=this.mergedXMLs[_40d];if(_40f){var _40e=this.getHtmlContent(_40f);this.htmlContentList[_40d]=_40e;return _40e;}return null;}function _Versioning_getHtmlContent(_414){var _415=HTMLGen.constructHtml(_414);return _415;}function _Versioning_mergeVersions(_416,_417){var _418=this.mergedXMLs[_417];if(_418){return;}var _419=this.mergedXMLs[_416];var _41a=this.xmlContentList[_417];var _41b=this.mergeXMLs(_419,_41a);this.mergedXMLs[_417]=_41b;}function _Versioning_mergeXMLs(_41c,_41d){var _41e=_41c.documentElement;var _41f=_41d.documentElement;var _420=_41e.cloneNode(true);var temp=_420.getElementsByTagName("DocumentObjects");this.docObjsNode=temp[0];var _422=_420.getElementsByTagName("Styles");this.styleNodes=_422[0];this.xmlDoc=Sarissa.getDomDocument();var _423=_41f.childNodes;for(var j=0;j<_423.length;j++){var _425=_423[j];var _426=_425.nodeName;switch(_426){case "DocumentObjects":this.parseDocObjs(_425);break;case "Styles":this.copyStyleNodes(_425);break;case "DeletedDocObjs":this.deleteDocObjs(_425);break;}}var _427="<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";var _428=new XMLHelper();var _429=[];_429["name"]=_420.getAttribute("name");_429["title"]=_420.getAttribute("title");_429["version"]=_420.getAttribute("version");_427+=_428.createXMLString("Document",_429);this.xmlDoc.loadXML(_427);var _42a=this.xmlDoc.documentElement;_42a.appendChild(this.docObjsNode);_42a.appendChild(this.styleNodes);return this.xmlDoc;}function _Versioning_parseDocObjs(node){var _42c=node.childNodes;for(var k=0;k<_42c.length;k++){var _42e=_42c[k];this.traverseDocObj(_42e);}}function _Versioning_traverseDocObj(node){var _430=node.cloneNode(true);var _431=_430.getAttribute("stat");var stat=parseInt(_431);switch(stat){case Versioning.MODIFIED_DOC_OBJ:this.updateAttributes(_430);var _433=node.nodeName;if(_433!="FOBJ"){this.parseDocObjs(node);}else{this.replaceFragmentObject(_430);}break;case Versioning.NEW_DOC_OBJ:var _434=_430.getAttribute("parentid");var _435=null;if(_434){_435=this.getElementById(this.docObjsNode,_434);}else{_435=this.docObjsNode;}var _436=_430.getAttribute("previd");if(_436){var _437=this.getElementById(_435,_436);var _438=_437.nextSibling;if(_438){_435.insertBefore(_430,_438);var _439=_430.getAttribute("id");_438.setAttribute("previd",_439);var _43a=_438.getAttribute("id");_430.setAttribute("nextid",_43a);_437.setAttribute("nextid",_439);}else{_435.appendChild(_430);var _439=_430.getAttribute("id");_437.setAttribute("nextid",_439);}}else{var _43b=_435.firstChild;if(!_43b){_435.appendChild(_430);}else{_435.insertBefore(_430,_43b);var _439=_430.getAttribute("id");_43b.setAttribute("previd",_439);var _43c=_43b.getAttribute("id");_430.setAttribute("nextid",_43c);}}break;}}function _Versioning_getElementById(node,id){if(!node||node.nodeType==Node.TEXT_NODE){return null;}var _43f=node.childNodes;if(!_43f||_43f.length==0){var _440=node.getAttribute("id");if(!_440||_440.length==0){return null;}}var _440=node.getAttribute("id");if(_440&&_440==id){return node;}for(var i=0;i<_43f.length;i++){var _442=_43f[i];var node=this.getElementById(_442,id);if(node){return node;}}return null;}function _Versioning_copyStyleNodes(node){if(!this.styleNodes||this.styleNodes.childNodes.length==0){this.styleNodes=this.xmlDoc.createElement("Styles");}var _444=node.childNodes;for(var k=0;k<_444.length;k++){var _446=_444[k].cloneNode(true);this.replaceOrAppendStyleNode(_446);}}function _Versioning_updateAttributes(node){var id=node.getAttribute("id");var _449=this.getElementById(this.docObjsNode,id);var _44a=node.attributes;for(var l=0;l<_44a.length;l++){var attr=_44a[l];_449.setAttribute(attr.name,attr.value);}}function _Versioning_replaceFragmentObject(node){var id=node.getAttribute("id");var _44f=this.getElementById(this.docObjsNode,id);var _450=_44f.parentNode;var _451=_44f.nextSibling;if(_451){_450.insertBefore(node,_451);}else{_450.appendChild(node);}_450.removeChild(_44f);}function _Versioning_replaceOrAppendStyleNode(_452){var _453=this.styleNodes.childNodes;var _454=false;var _455=null;for(var l=0;l<_453.length;l++){var _457=_453[l];var _458=_457.getAttribute("class");var _459=_452.getAttribute("class");if(_458==_459){_455=_457;_454=true;break;}}if(_454){var _45a=_455.nextSibling;if(_45a){this.styleNodes.insertBefore(_452,_45a);}else{this.styleNodes.appendChild(_452);}this.styleNodes.removeChild(_455);}else{this.styleNodes.appendChild(_452);}}function _Versioning_deleteDocObjs(node){var _45c=node.childNodes;for(var l=0;l<_45c.length;l++){var _45e=_45c[l];var _45f=_45e.firstChild;var id=_45f.nodeValue;var _461=this.getElementById(this.docObjsNode,id);if(_461){var _462=_461.parentNode;_462.removeChild(_461);}}}function _Versioning_loadFirstVersion(){if(this.currentNum==0){return;}Writer.loadVersion(this.versioningDetails[0]);}function _Versioning_loadLatestVersion(){if(this.currentNum==(this.versioningDetails.length-1)){return;}Writer.loadVersion(this.versioningDetails[(this.versioningDetails.length)-1]);}function _Versioning_loadNewerVersion(){if(this.currentNum==(this.versioningDetails.length-1)){return;}Writer.loadVersion(this.versioningDetails[parseInt(this.currentNum)+1]);}function _Versioning_loadOlderVersion(){if(this.currentNum==0){return;}Writer.loadVersion(this.versioningDetails[this.currentNum-1]);}function WikiCommon(){}WikiCommon.tempContent;WikiCommon.createPageParent="";WikiCommon.createPageSubDomain="";WikiCommon.createPageGroupID="";WikiCommon.menuclicked=false;WikiCommon.selectedTag=0;function $(id,doc){if(!doc){doc=document;}return doc.getElementById(id);}$1=function(url,_466,_467,sync,func,csrf){var _46b=new XMLHttpRequest();if(csrf){if(_466=="POST"){_467+="&"+csrfPN+"="+csrfPV;}else{url+="&"+csrfPN+"="+csrfPV;}}_46b.open(_466,url,sync);_46b.onreadystatechange=function(){if(_46b.readyState==4){if(typeof func=="function"){func(_46b.responseText);}}};if(_466=="POST"){_46b.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=UTF-8");_46b.send(_467);}else{_46b.send(null);}};WikiCommon.shortenString=function(str,len,_46e){if(str&&str!=""){str=str.replace(/-/g," ").replace(/   /g," - ");var _46f=str.length;var _470="";if(_46f<len){return str;}_470=str.substring(0,len);if(_46e){_470+=" . . .";}return _470;}else{return "";}};WikiCommon.getLimitedString=function(str,_472,_473){var _474=str.length;if(_474<=_472){return str;}str=str.substring(0,_472);if(_473){str=str.substring(0,(_472-3));str+="...";}return str;};var agt=navigator.userAgent.toLowerCase();var is_ie=((agt.indexOf("msie")!=-1)&&(agt.indexOf("opera")==-1));var isIE=((agt.indexOf("msie")!=-1)&&(agt.indexOf("opera")==-1));WikiCommon.loginDialog=function(_475){if(_475){_url="/jsp/wikilogout.jsp?logout=true&targetURL="+document.URL;_islogin=false;showURLInDialogBox(WikiCommon.fixForIeCache(_url),"position=absolute, top=100, left=250, closeButton=no, modal=no");}else{_url="/login.do?d=1&serviceurl="+encodeURIComponent(document.URL);showURLInDialogBox(_url,"position=absolute, top=100, left=250, width=550, closeOnEscKey=yes, closeButton=yes, modal=yes, title="+w_obj.SIGNIN+"/"+w_obj.SIGNUP+", draggable=yes");}};WikiCommon.loadRecentWikis=function(type){var _477=document.getElementById?document.getElementById("recentWikis"):recentWikis;if(typeof _477=="undefined"||_477==null){return false;}var _478;if(window.cdocinfo){_478=window.cdocinfo.DOCUMENT_NAME_URL;}if($("rwPanelBody")){$("rwPanelBody").innerHTML=w_obj.LOADING+"...";}var _479="cat="+WikiCommon.wikiInfo.DOC_CATEGORY+"&docname="+_478+"&sdomain="+WikiCommon.wikiInfo.SUBDOMAIN;if(type){_479+="&type="+type;}$1("/rwikis.do","POST",_479,true,function(res){$("recentWikis").innerHTML=res;},false);};WikiCommon.loadPageNavigator=function(page){var _47c=document.getElementById?document.getElementById("pageNavigator"):pageNavigator;if(typeof _47c=="undefined"||_47c==null){return false;}var page=(page=="")?WikiCommon.wikiInfo.DOCUMENT_NAME:page;var _47d="cat="+WikiCommon.wikiInfo.DOC_CATEGORY+"&docname="+encodeURIComponent(page)+"&sdomain="+WikiCommon.wikiInfo.SUBDOMAIN;if(isNew){_47d+="?pid="+WikiCommon.wikiInfo.PARENTID;}$1("/pagenavigatorrld.im","POST",_47d,true,function(rt){$("pageNavigator").innerHTML=rt;},true);};WikiCommon.loadGlobalLinks=function(){var _47f=document.getElementById?document.getElementById("globalLinks"):globalLinks;if(typeof _47f=="undefined"||_47f==null){return false;}var val={};val.TYPE="UI";val.URL=WikiCommon.fixForIeCache("/custompanel.im?sdomain="+WikiCommon.wikiInfo.SUBDOMAIN);val.UPDATE_UI="globalLinks";val.CALLBACK=function(){WikiCommon.openSlider("globalLinks");};(new XComponentLoader()).loadComponent(val);};WikiCommon.loadMyGroups=function(mode,_482,_483){var _484=document.getElementById?document.getElementById("myGroupsSpan"):myGroupsSpan;if(typeof _484=="undefined"||_484==null){return false;}var _485=null;if(mode=="add"){if(_482!=""&&_483!=""){_485="mode=add&IID="+_482+"&sdomain="+_483;}}else{if(mode=="del"){if(!confirm(w_obj.WANNA_UNSUBSCRIBE_4M_GP)){return false;}if(_482!=""&&_483!=""){_485="mode=del&IID="+_482+"&sdomain="+_483;}}}$1("/MyGroups.do","POST",_485,true,function(rt){WikiCommon.openSlider("myGroupsSpan");_484.innerHTML=rt;var _487=_484.getElementsByTagName("SCRIPT");for(var i=0;i<_487.length;i++){var _489=document.createElement("SCRIPT");_489.type="text/javascript";_489.language="javascript";if(_487[i].src!=""){_489.src=_487[i].src;}_489.text=_487[i].text;if(typeof document.getElementsByTagName("HEAD")[0]=="undefined"){document.createElement("HEAD").appendChild(_489);}else{document.getElementsByTagName("HEAD")[0].appendChild(_489);}}},true);return false;};WikiCommon.translatePage=function(){var _48a=WikiCommon.getObject("contentTdId");if(_48a){}if(_iseditable&&window.location.href.indexOf("WikiEditor.im")!=-1){if(!Writer.displayLists){Writer.displayLists=new FileLists();Writer.displayLists.contextSwitch=Writer.contextSwitch;}}if(!WikiCommon.wikiInfo.DOCUMENT_NAME){return false;}if(WikiCommon.wikiInfo.DOCUMENT_NAME==""||isNew){return false;}else{if(WikiCommon.wikiInfo.DOCUMENT_NAME=="GlobalLinks"||WikiCommon.wikiInfo.DOCUMENT_NAME=="CustomTopPanel"){return false;}}var _48b=document.getElementById?document.getElementById("contentArea"):contentArea;if(_48b){if(_iseditable){if(!isNew){}}}};WikiCommon.toggleTOC1=function(_48c){if(_48c==null){_48c=document.getElementById?document.getElementById("contentArea"):contentArea;}var _48d=false;var _48e=document.getElementById?document.getElementById("zwTOCDiv"):zwTOCDiv;var _48f=new Array("H1","H2","H3");if(_48c&&_48c.hasChildNodes()){var str="";for(var i=0;i<_48c.childNodes.length;i++){citem=_48c.childNodes.item(i);if(WikiCommon.checkBlockTag(citem.tagName,_48f)){_48d=true;var _492="0px";var _493=citem.tagName;var _494=citem.innerHTML;var _495=citem.innerHTML;_494=_494.replace(/<[^>]*>/g,"");var _496=_494.replace(/ /g,"_");var _497="<a name=\""+_496+"\"></a>";citem.innerHTML=_495.replace(_497,"");citem.innerHTML=_497+citem.innerHTML;if(_493=="H2"){_492="10px";}else{if(_493=="H3"){_492="20px";}}str+="<span style=\"margin-left: "+_492+"; line-height: 20px;\"><img src=\"/_zoho/images/arrow.gif\"/> <a href=\"#"+_496+"\">"+_494+"</a></span><br/>";}}}var _498=document.getElementById?document.getElementById("zwTOCLink"):zwTOCLink;if(_498&&_48e){if(_498.innerHTML=="Table Of Contents [show]"){_48e.style.backgroundColor="#EFEFEF";_48e.style.display="block";_48e.innerHTML=str;_498.innerHTML="Table of Contents [Hide]";}else{_498.innerHTML="Table of Contents [Show]";_48e.style.display="none";}if(_48d){_498.style.display="inline";}else{_498.style.display="none";_48e.style.display="none";}}};WikiCommon.checkBlockTag=function(_499,_49a){for(var i=0;(i<_49a.length);i++){if(_49a[i]==_499){return true;break;}}return false;};WikiCommon.fixForIeCache=function(_49c){if(is_ie){var _49d=(new Date()).getTime();var _49e="atime="+_49d;var _49f=/paramStr/;if(!_49f.test(_49c)){_49c=_49c.replace(/\?atime=([0-9]+)$/,"").replace(/\?atime=([0-9]+)/gi,"?").replace(/\&atime=([0-9]+)\&/,"&").replace(/\&atime=([0-9]+)/,"");if(_49c.indexOf("?")==-1&&_49c.indexOf("&")==-1){_49e="?"+_49e;}else{_49e="&"+_49e;}return (_49c+_49e);}}return _49c;};WikiCommon.getObject=function(_4a0){var obj=(document.getElementById?document.getElementById(_4a0):_4a0);if(typeof obj=="object"){return obj;}else{return getObj(_4a0);}};WikiCommon.openSlider=function(val,_4a3){var _4a4=document.getElementById(val);if(_4a4&&_4a4.style.display=="none"){if(!_4a3){_4a4.style.top="26%";_4a4.style.left="10%";_4a4.style.position="absolute";}advStartSlider(_4a4,true,false,"none");if(!_4a3){setTimeout(function(){_4a4.style.overflow="auto";},400);}}};WikiCommon.processKeyPressFun=function(ev,_4a6,_4a7){var _4a8=ev.keyCode;if(_4a8==_4a7){var func=Utils.eventHandlers["keydowncloseDialogBox"];if(typeof _4a6=="function"){_4a6();}Utils._removeEvent(document,"keydown",func,"closeDialogBox");}};WikiCommon.displayDocInfoFooter=function(_4aa){if(_4aa==null&&Writer.currentDocInfo!=null){_4aa=Writer.currentDocInfo;}if(_4aa==null||_4aa.CATEGORY=="TEMPLATE"){Utils.changeClass(new Array("docFooter"),"hide");}else{Utils.changeClass(new Array("docFooter"),"");}Utils.changeClass(new Array("docInfoFooterTR"),"");var _4ab=document.getElementById("authorNameTD");var _4ac=document.getElementById("createdDateTD");var _4ad=document.getElementById("createdTD");var _4ae=document.getElementById("modifiedTD");var _4af=document.getElementById("dversionTD");if(_4ab){var _4b0=((_4aa&&_4aa.LAST_EDITED_BY&&_4aa.LAST_EDITED_BY!="null")?((_4aa.LAST_EDITED_BY==WikiCommon.wikiInfo.LOGIN_NAME&&_4aa.LAST_EDITED_BY!="Guest")?w_obj.ME:_4aa.LAST_EDITED_BY):"");if(_4b0=="Guest"||_4b0==WikiCommon.wikiInfo.LOGIN_NAME||_4b0=="Me"){_4ab.innerHTML=w_obj.LASTEDITEDBY+": "+((_4aa&&_4aa.LAST_EDITED_BY&&_4aa.LAST_EDITED_BY!="null")?((_4aa.LAST_EDITED_BY==WikiCommon.wikiInfo.LOGIN_NAME&&_4aa.LAST_EDITED_BY!="Guest")?w_obj.Me:eval("w_obj."+_4aa.LAST_EDITED_BY)):"");}else{_4ab.innerHTML=w_obj.LASTEDITEDBY+": <a href='javascript:;' onclick=WikiCommon.chat('"+_4b0+"') >"+_4b0+"</a>";}}if(_4ac){var _4b1=new Array();if(_4aa&&_4aa.CREATED_DATE){_4b1=_4aa.CREATED_DATE.split(" ");var tagg=_4b1[1]+_4b1[2];var _4b3=_4b1[0]+" - "+eval("w_obj."+tagg);}_4ac.innerHTML=w_obj.CREATED_ON+": "+((_4aa&&_4aa.CREATED_DATE)?(_4b3):"");}if(_4ae){var _4b4=new Array();if(_4aa&&_4aa.LAST_MODIFIED_TIME){_4b4=_4aa.LAST_MODIFIED_TIME.split(" ");var moff=_4b4[1]+_4b4[2];var _4b6=_4b4[0]+" - "+eval("w_obj."+moff);}_4ae.innerHTML=w_obj.MODIFIED+": "+((_4aa&&_4aa.LAST_MODIFIED_TIME)?(_4b6):"");}if(_4ad){var _4b7=((_4aa&&_4aa.AUTHOR)?(_4aa.AUTHOR):((WikiCommon.wikiInfo.LOGIN_NAME!="")?WikiCommon.wikiInfo.LOGIN_NAME:""));if(_4b7=="Guest"||_4b7==WikiCommon.wikiInfo.LOGIN_NAME){_4ad.innerHTML="<b>"+w_obj.AUTHOR+":</b> "+((_4aa&&_4aa.AUTHOR)?(_4aa.AUTHOR):((WikiCommon.wikiInfo.LOGIN_NAME!="")?WikiCommon.wikiInfo.LOGIN_NAME:""));}else{_4ad.innerHTML="<b>"+w_obj.AUTHOR+":</b> <a href='javascript:;' onclick=WikiCommon.chat('"+_4b7+"') >"+_4b7+"</a>";}}if(_4af){_4af.innerHTML=w_obj.VERSION+": <a href=javascript:; onclick=showURLInDialogBox('/Versionview.do?sdomain="+window.winfo.SUBDOMAIN+"&docId="+_4aa.DOCUMENT_ID+"','position=absolute,top=50,left=200,closeOnEscKey=yes,closeButton=yes,modal=yes,title="+_4aa.DOCUMENT_NAME+",draggable=yes')>"+((_4aa&&_4aa.VERSION)?(_4aa.VERSION):"</a>");if(_4aa){var temp=_4aa.VERSION;var _4b9=(_4aa.VERSION)+"";if(_4aa.VERSION<0||_4b9.charAt(0)=="-"){_4b9=_4b9.substring(1);if(_4b9!="0.0"){_4af.innerHTML=w_obj.VERSION+": <a href=javascript:; onclick=showURLInDialogBox('/Versionview.do?sdomain="+window.winfo.SUBDOMAIN+"&docId="+_4aa.DOCUMENT_ID+"','position=absolute,top=50,left=200,closeOnEscKey=yes,closeButton=yes,modal=yes,title="+_4aa.DOCUMENT_NAME+",draggable=yes')>"+_4b9+"</a>&nbsp;"+w_obj.AUTO_SAVED;}else{_4af.innerHTML=w_obj.VERSION+": "+w_obj.AUTO_SAVED;}}}}};WikiCommon.trimSpaces=function(_4ba){return _4ba.replace(/^(\s+)/,"").replace(/(\s+)$/,"");};WikiCommon.replaceAngleBracket=function(_4bb){return _4bb.replace(/</g,"&lt;").replace(/>/g,"&gt;");};WikiCommon.isValidFileName=function(_4bc){var _4bd=/[:|\\|<|>|*|\||"| |_|.|\/|'|%|#|&|?|+]/;if(_4bd.test(_4bc)){alert(w_obj.FOLLOWING_SPLCHAR_NOT_ALLOWED+".\n"+w_obj.COLON+"(:) \n"+w_obj.BACK_SLASH+"(\\) \n"+w_obj.FWD_SLASH+"(/) \n"+w_obj.GREATER_THAN+"(>) \n"+w_obj.LESS_THAN+"(<) \n"+w_obj.ASTERIX+"(*) \n "+w_obj.PIPE+"(|) \n "+w_obj.SINGLE_QUOTE+" (') \n"+w_obj.DOUBLE_QUOTE+"(\") \n"+w_obj.UNDERSCORE+"(_) \n"+w_obj.DOT+"(.) \n"+w_obj.SPACE+"( ) \n"+w_obj.PERCENTAGE+"(%) \n"+w_obj.HASH+"(#) \n"+w_obj.AMBERSAND+"(&) \n"+w_obj.QUESTION_MARK+"(?) \n"+w_obj.PLUS+"(+)");Utils.hideMsg();return false;}return true;};WikiCommon.newDocument=function(_4be,_4bf,_4c0){_4bf=WikiCommon.trimSpaces(_4bf);if(_4bf==""||_4bf==null){return false;}var _4c1="";if(WikiCommon.wikiInfo.DOC_CATEGORY!=null&&WikiCommon.wikiInfo.DOC_CATEGORY!=""){_4c1=WikiCommon.wikiInfo.DOC_CATEGORY+"/";}_4bf=_4bf.replace(/ /g,"-").replace(/_/g,"-").replace(/\+/g,"-").replace(/\.html/g,"");if(!WikiCommon.isValidFileName(_4bf)){return false;}loc="/"+_4c1+_4bf+".html";if(_4c0&&window.cdocinfo.DOCUMENT_ID){loc+="?pid="+window.cdocinfo.DOCUMENT_ID;}_4be.method="post";_4be.action=loc;};WikiCommon.toggleNewDocument=function(_4c2){var _4c3=document.getElementById?document.getElementById("newlink"):newlink;var _4c4=WikiCommon.getObject("zwNewDocNameDiv");if(!_4c3){return false;}if(!_4c4){return false;}if(_4c2){_4c3.style.display="none";_4c4.style.display="block";document.zwNewDocNameForm.zwNewDocNameBox.focus();}else{_4c3.style.display="block";_4c4.style.display="none";}};WikiCommon.searchAction=function(val,_4c6){var el=document.getElementById("sndiv");var elf=document.getElementById("sndivfeature");var eld=document.getElementById("sndivdocument");var fc=document.getElementById("feaComment");var frm=document.sfform;if(_4c6){}else{fc.style.display="none";var _4cc=new XMLHttpRequest();_4cc.open("POST","/SearchWiki.im",true);_4cc.onreadystatechange=function(){if(_4cc.readyState==4){var msg=_4cc.responseText;var ui="";var _4cf="<div>";var _4d0="</div>";if(msg!="[]"){msg=msg.replace(/,}/g,"}");var ss=eval(msg);var leng=ss.length;ui+=leng+" "+w_obj.SEARCH_FOUND;ui+="<table  width=95% border=0 cellpadding=5 cellspacing=0 align=center>";if(frm){frm.q.value=val;}for(i=0;i<leng;i++){ui+="<tr class=trline>";ui+="<td>";if(ss[i].DOC_CATEGORY!=""&&ss[i].DOC_CATEGORY){ui+="<a href=\"/"+ss[i].DOC_CATEGORY+"/"+ss[i].DOCUMENTNAME.replace(/ /g,"-").replace(/_/g,"-")+".html\" class=searchlink> <strong>"+ss[i].DOCUMENTNAME+"</strong></a> &nbsp; &nbsp; ";}else{ui+="<a href=\"/"+ss[i].DOCUMENTNAMEURL.replace(/ /g,"-").replace(/_/g,"-")+".html\" class=searchlink> <strong>"+ss[i].DOCUMENTNAME+"</strong></a> &nbsp; &nbsp; ";}ui+="<span class=greytext>"+w_obj.CREATED_ON+" : "+"<strong>"+WikiCommon.splitintoKeywords(ss[i].CREATEDDATE)+"</strong></a> </span> &nbsp; ";ui+="</td>";ui+="</tr>";}if(ss.length==0){ui+="<center class='darktext'>"+w_obj.NO_RESULTS_IN_DOCSEARCH+" </center>";}if(ss.length<4){_4cf="";_4d0="";}ui+="</table>";}else{ui+="<br><center class='darktext'>"+w_obj.NO_RESULTS_IN_DOCSEARCH+"</center>";_4cf="";_4d0="";}eld.innerHTML=_4cf+ui+_4d0;eld.style.display="block";el.style.display="block";}};_4cc.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=UTF-8");_4cc.send("stext="+val+"&sdomain="+WikiCommon.wikiInfo.SUBDOMAIN);}};WikiCommon.loadAttachments=function(){var _4d3=document.getElementById?document.getElementById("zwPageAttachments"):zwPageAttachments;if(typeof _4d3=="undefined"||_4d3==null){return false;}if(isNew){alert(w_obj.PLZ_SAVE_BEFORE_ATTACH);return false;}_4d3.style.background="#EFEFEF";_4d3.style.border="1px dotted #999999";_4d3.style.padding="10px";_4d3.innerHTML=w_obj.LOADING+" . . .";var _url="/fetchdocuments.im?docid="+window.cdocinfo.DOCUMENT_ID+"&page="+encodeURIComponent(window.cdocinfo.DOCUMENT_NAME_URL)+"&sdomain="+WikiCommon.wikiInfo.SUBDOMAIN;var val={};val.TYPE="UI";val.URL=WikiCommon.fixForIeCache(_url);val.UPDATE_UI="zwPageAttachments";val.CALLBACK=function(){$("zwPageAttachments").style.display="block";WikiCommon.makeScriptExecute(_4d3);};(new XComponentLoader()).loadComponent(val);};WikiCommon.makeScriptExecute=function(_4d6){if(!_4d6){return false;}var _4d7=_4d6.getElementsByTagName("SCRIPT");var len=_4d7.length;for(var i=0;i<len;i++){var _4da=document.createElement("SCRIPT");_4da.type="text/javascript";_4da.language="javascript";if(_4d7[i].src!=""){_4da.src=_4d7[i].src;}_4da.text=_4d7[i].text;if(typeof document.getElementsByTagName("HEAD")[0]=="undefined"){document.createElement("HEAD").appendChild(_4da);}else{document.getElementsByTagName("HEAD")[0].appendChild(_4da);}}};WikiCommon.toggleSpread=function(){showURLInDialogBox("/invite.im?sdomain="+WikiCommon.wikiInfo.SUBDOMAIN,"position=absolute, top=70, left=200, closeOnEscKey=yes, closeButton=yes, modal=yes, title="+w_obj.TELLAFRD+", draggable=yes");};window.onload=function(){var obj=document.getElementById("zwTOCLink");var obj1=document.getElementById("contentArea");if(obj){obj.href="javascript:WikiCommon.toggleTOC();";}if(obj1){WikiCommon.toggleImage();}};WikiCommon.toggleImage=function(){var _4dd=$("contentArea").getElementsByTagName("img");for(var _4de in _4dd){if((_4dd[_4de].style&&_4dd[_4de].style.width)||_4dd[_4de].shrink=="true"){_4dd[_4de].style.cursor="pointer";_4dd[_4de].onclick=function(){WikiCommon.previewImage(this.src);};}}};WikiCommon.toggleTOC=function(){var _4df=document.getElementById?document.getElementById("zwTOCLink"):zwTOCLink;var _4e0=document.getElementById?document.getElementById("zwTOCDiv"):zwTOCDiv;if(_4df&&_4e0){if(_4df.innerHTML=="["+w_obj.SHOW+"]"){_4e0.style.display="block";_4df.innerHTML="["+w_obj.HIDE+"]";}else{_4df.innerHTML="["+w_obj.SHOW+"]";_4e0.style.display="none";}_4df.href="javascript:WikiCommon.toggleTOC();;";}};WikiCommon.delpubComment=function(_4e1){var _4e2=_4e1;$1("/DelPubCom.im","POST","COMMENT_ID="+_4e2,true,function(){document.getElementById(_4e2).style.display="none";var _4e3=document.getElementById("commentcount");var _4e4=document.publiccomment.commentcount.value;var t3=parseInt(_4e4)-1;_4e3.innerHTML=t3;document.publiccomment.commentcount.value=t3;},true);};WikiCommon.publicComment=function(){var _4e6=document.publiccomment.comment.value;var _4e7=document.publiccomment.docid.value;var _4e8=document.publiccomment.commentcount.value;_4e6=WikiCommon.trimSpaces(_4e6);if(!_islogin){var _4e9=document.publiccomment.mail.value;_4e9=WikiCommon.trimSpaces(_4e9);if(_4e9==""){alert(w_obj.NAME_EMAIL_NOT_EMP);return false;}if(_4e9!="Guest"){_4e9=_4e9+" (Guest)";}if(_4e6==""){return false;}var _4ea=_4e9.replace(/&l/g,"&amp;l").replace(/&g/g,"&amp;g").replace(/</g,"&lt;").replace(/>/g,"&gt;");}else{_4e9=WikiCommon.wikiInfo.LOGIN_NAME;var _4ea=_4e9;}var _4eb=_4e6.replace(/&l/g,"&amp;l").replace(/&g/g,"&amp;g").replace(/</g,"&lt;").replace(/>/g,"&gt;");$1("/pubComments.im","POST","doc_id="+_4e7+"&comment="+encodeURIComponent(_4e6)+"&authorname="+encodeURIComponent(_4e9)+"&sdomain="+WikiCommon.wikiInfo.SUBDOMAIN,true,function(rt){var _4ed=eval(rt);var _4ee=_4ed[0];var str="<div id=\""+_4ee.COMMENT_ID+"\"><span style=\"border-bottom: 1px dotted #CCC;display:block\">";str+="<table border=0><tr><td style=\"font: 10px Verdana, Arial, Helvetica, sans-serif;word-spacing: 2px;color: #999999;\">"+_4ea+",&nbsp;0 - "+w_obj.secondsago+"</td>";if((_isAdmin)||((_islogin)&&WikiCommon.wikiInfo.LOGIN_NAME==_4ea)){str+="<td><a href=\"javascript:;\" onclick=\"return WikiCommon.delpubComment('"+_4ee.COMMENT_ID+"');\" title="+w_obj.DELETECOMMENT+"><div class=\"delcomment\"></div></a></td>";}str+="</tr></table></span>";str+="<p>"+_4eb.replace(/\n/g,"<br>")+"</p></div>";var el=document.getElementById("comment");if(el){el.innerHTML+=str;}var _4f1=document.getElementById("commentcount");var t3=parseInt(_4e8)+1;_4f1.innerHTML=t3;document.publiccomment.commentcount.value=t3;WikiCommon.SortingComments($("srtid"),false);},true);document.publiccomment.reset();return false;};WikiCommon.sendHomeFbk=function(){var val=document.getElementById?document.getElementById("fbm_comments"):fbm_comments;var _4f4=document.getElementById?document.getElementById("fbm_emailid"):fbm_emailid;WikiCommon.getObject("wothnks_tbl").style.display="";$("wothnks").innerHTML="<font color='red' size='5'>"+w_obj.SENDING+"</font>";if(WikiCommon.trimSpaces(val.value)==""){WikiCommon.getObject("wothnks_tbl").style.display="";$("wothnks").innerHTML="<font color='red' size='5'>"+w_obj.PLZ_ENTR_SM_COMNTS+"</font>";$("fbm_comments").focus();return false;}var _4f5=0;if($("fbwikitab")){if($("fbwikitab").className=="fbtabsel"){_4f5=1;}if(_4f5==1&&$("fbm_emailid").value==""){WikiCommon.getObject("wothnks_tbl").style.display="";$("wothnks").innerHTML="<font color='red' size='5'>"+w_obj.INVALIDEMAILID+"</font>";$("fbm_emailid").focus();return false;}if($("fbm_emailid").value!=""&&($("fbm_emailid").value.indexOf("@")==-1||$("fbm_emailid").value.indexOf(".")==-1)){WikiCommon.getObject("wothnks_tbl").style.display="";$("wothnks").innerHTML="<font color='red' size='5'>"+w_obj.INVALIDEMAILID+"</font>";$("fbm_emailid").focus();return false;}}var _4f6="support="+encodeURIComponent(val.value)+"&emailID="+encodeURIComponent(_4f4.value)+"&fb4zw="+_4f5;if(_4f5==1){var _4f7=WikiCommon.getObject("hip_value").value;_4f6+="&HIP_ID="+_4f7;}_4f6+="&fromurl="+document.URL;WikiCommon.getObject("wothnks_tbl").style.display="";$("wothnks").innerHTML="<font color='red' size='5'>"+w_obj.SENDING+"</font>";$1("/wikifeedback.zhtml","POST",_4f6,true,function(rt){var res=rt;if(res.indexOf("WRONG IMAGE TEXT")!=-1){WikiCommon.getNewHIPImage();WikiCommon.getObject("wothnks_tbl").style.display="";$("wothnks").innerHTML="<font color='red' size='5'>"+w_obj.INVALIDIMAGETXT+"</font>";$("hip_value").focus();$("hip_value").select();}else{val.value="";val.focus();WikiCommon.getObject("wothnks_tbl").style.display="";$("wothnks").innerHTML="<font color='indigo' size='5'>"+w_obj.THANKS_4_FB+"</font>";setTimeout("closeDialogBox();",1000);}},true);return false;};WikiCommon.close_wothnks=function(){$("wothnks_tbl").style.display="none";};WikiCommon.getNewHIPImage=function(){if($("fb_hipimage")){var _4fa=WikiCommon.getObject("fb_hipimage");var _4fb=(new Date()).getTime();_4fa.src="/hip.zhtml?tim="+_4fb;}};Utils.eventHandlers=[];Utils._addEvent=function(el,_4fd,func,name){if(name){var _500=Utils.eventHandlers[_4fd+name];if(_500){Utils._removeEvent(el,_4fd,_500,name);}Utils.eventHandlers[_4fd+name]=func;}else{var _500=Utils.eventHandlers[_4fd];if(_500){Utils._removeEvent(el,_4fd,_500);}Utils.eventHandlers[_4fd]=func;}if(is_ie){el.attachEvent("on"+_4fd,func);}else{el.addEventListener(_4fd,func,false);}};Utils._removeEvent=function(el,_502,func,name){if(is_ie){el.detachEvent("on"+_502,func);}else{el.removeEventListener(_502,func,false);}if(name){Utils.eventHandlers[_502+name]=null;}else{Utils.eventHandlers[_502]=null;}};Utils._stopEvent=function(ev){if(is_ie){ev.cancelBubble=true;ev.returnValue=false;}else{ev.preventDefault();ev.stopPropagation();}};function getPageWidth(_506){var x;if(_506==null){_506=document.body;}var _508=_506.scrollWidth;var _509=_506.offsetWidth;if(_508>_509||browser_ie){x=_506.scrollWidth;}else{x=_506.offsetWidth;}return x;}function getObjectHeight(_50a){var y;if(_50a==null){return;}var _50c=_50a.scrollHeight;var _50d=_50a.offsetHeight;if(_50c>_50d||browser_ie){y=_50a.scrollHeight;}else{y=_50a.offsetHeight;}return y;}function getPageHeight(_50e){var y;if(_50e==null){_50e=document.body;}y=getObjectHeight(_50e);var sy=getScreenHeight();if(sy>y){y=sy;}return y;}function getScreenWidth(){var x;if(self.innerHeight){x=self.innerWidth;}else{if(document.documentElement&&document.documentElement.clientHeight){x=document.documentElement.clientWidth;}else{if(document.body){x=document.body.clientWidth;}}}return x;}function getScreenHeight(){var y;if(self.innerHeight){y=self.innerHeight;}else{if(document.documentElement&&document.documentElement.clientHeight){y=document.documentElement.clientHeight;}else{if(document.body){y=document.body.clientHeight;}}}return y;}function toggleFeedback(){showURLInDialogBox("/feedbackform.im","position=absolute, top=70, left=200, closeOnEscKey=yes, closeButton=yes, modal=yes, title="+w_obj.FEEDBACK+", draggable=yes","fbm_comments");}WikiCommon.handleTags=function(_513){if(!Writer.currentDocInfo){Writer.currentDocInfo=window.cdocinfo;}if($("woTagDiv")){$("woTagDiv").style.display="block";}if($("wiki_tag_title")){$("wiki_tag_title").style.display="inline";}if($("tagAdder")){$("tagAdder").style.display="inline";}if($("wotags")){$("wotags").innerHTML="";}this.tagList=(Writer.currentDocInfo)?Writer.currentDocInfo.TagInfo:null;if(_513){this.tagList=_513.TagInfo;}if(this.tagList!=null&&this.tagList!="\x00"){var len=this.tagList.length;if((!_islogin||!_iseditable)&&len==0){if($("taggTablediv")){$("taggTablediv").style.display="none";}}var elm=$("wotags");for(var x=0;x<len;x++){var _517=this.tagList[x];var tag=WikiCommon.createTag(_517.ID,_517.VALUE);elm.appendChild(tag);if(x==len-1){elm.appendChild(Utils.createElement("span",""," "));}else{elm.appendChild(Utils.createElement("span","",", "));}}}};WikiCommon.createTag=function(id,_51a){var elem=Utils.createElement("a","id="+id+" class=taglinks href=fetchDet.do",_51a);elem.onclick=function(_51c){if(id!=0){var ev=(is_ie)?window.event:_51c;var _51e=(is_ie)?ev.srcElement:ev.target;var r=Utils.getPos(_51e);var x=r.offsetLeft;var y=r.offsetTop;WikiCommon.showTaggedDocuments(x,y,id,_51a);}return false;};return elem;};WikiCommon.showTaggedDocuments=function(x,y,id,_525){var _526=Writer.currentDocInfo.DOCUMENT_ID;var _527="tag_id="+id;_527+="&tag_val="+encodeURIComponent(_525);_527+="&doc_id="+_526;_527+="&x="+x;_527+="&y="+y;$1("/GetTagDetails.im?"+_527,"GET","",true,function(rt){WikiCommon.showTaggedList(rt);},false);return false;};WikiCommon.showTaggedList=function(_529){MenuActions._addEvent(document,"mousedown",MenuActions.documentTagClick);this.taggedList=eval(_529);this.pos=this.taggedList[0];this.tagedDoc=this.taggedList[1];this.sharedDocs=this.tagedDoc.SHARED;this.allDocs=this.tagedDoc.ALLDOC;this.x=this.pos.X;this.y=this.pos.Y;this.id=this.pos.tagId;this.value=this.pos.tagVal;this.value=this.pos.tagVal;var doc;var _52b;doc=document;var div=doc.createElement("div");div.setAttribute("id","slidedivTag");div.className="tagmenu";div.style.position="absolute";div.innerHTML="";WikiCommon.createInnerHTML(this.sharedDocs,this.allDocs,this.id,this.value,div,doc);doc.body.appendChild(div);this.tot=document.body.offsetWidth;if(((this.tot)*0.75)<this.x){this.xval=document.body.offsetWidth-this.x-25;div.style.right=this.xval+"px";}else{div.style.left=this.x+"px";}if(div.offsetHeight>350){div.style.overflow="auto";div.style.height="350px";div.style.width=(div.offsetWidth)+"px";}div.style.top=(parseInt(this.y)+10)+"px";div.style.position="absolute";div.style.display="inline";};WikiCommon.createInnerHTML=function(_52d,_52e,id,_530,div,doc){this.shard=_52d;this.alDocs=_52e;var _533=Utils.createElementFromDoc(doc,"table","bgcolor=white border=0");_533.cellPadding=0;_533.cellSpacing=0;var _534=Utils.createElementFromDoc(doc,"tbody");if(_islogin&&_isAdmin){var _535=Utils.createElementFromDoc(doc,"a","class=tagcloselinks href=javascript:;",w_obj.DELETE_TAG);_535.onclick=function(){var div=doc.getElementById("slidedivTag");div.style.display="none";Tagging.deleteTag(id,_530);return false;};var tr=Utils.createElementFromDoc(doc,"tr");var td=Utils.createElementFromDoc(doc,"td","height=15");td.appendChild(_535);tr.appendChild(td);_534.appendChild(tr);}var clse=Utils.createElementFromDoc(doc,"a","class=tagcloselinks href=javascript:;",w_obj.CLOSE);clse.onclick=function(){var div=doc.getElementById("slidedivTag");div.style.display="none";document.body.removeChild(div);};var tr=Utils.createElementFromDoc(doc,"tr");var td=Utils.createElementFromDoc(doc,"td","height=15");td.appendChild(clse);tr.appendChild(td);_534.appendChild(tr);for(i=0;i<this.shard.length;i++){this.doc1=this.shard[i];var _53b=Utils.createElementFromDoc(doc,"a","class=tagmenulinks href=",this.shard[i].DOCUMENT_NAME);Tagging.setAction(doc,_53b,this.doc1);var tr=Utils.createElementFromDoc(doc,"tr");var td=Utils.createElementFromDoc(doc,"td","height=15");td.appendChild(_53b);tr.appendChild(td);_534.appendChild(tr);}for(i=0;i<this.alDocs.length;i++){this.doc2=this.alDocs[i];var cls="class=tagmenulinks href="+this.doc2.DOCUMENT_NAME_URL+".html";var _53b=Utils.createElementFromDoc(doc,"a",cls,this.doc2.DOCUMENT_NAME);var tr=Utils.createElementFromDoc(doc,"tr");var td=Utils.createElementFromDoc(doc,"td","height=15");td.appendChild(_53b);tr.appendChild(td);_534.appendChild(tr);}_533.appendChild(_534);div.appendChild(_533);};WikiCommon.addTag=function(tags){var _53e="";if(document.tagDoc){_53e=document.tagDoc.tagName.value;}if(tags){_53e=tags;}if(_53e==""||_53e.trim()==""){return false;}if(!WikiCommon.validateTags(_53e)){alert(w_obj.SPL_CHARS_NOTALLOWED);return false;}if(Writer.currentDocInfo&&Writer.currentDocInfo.DOCUMENT_ID!=0){var _53f=Writer.currentDocInfo.DOCUMENT_ID;var _540=_53e.toLowerCase();var _541="doc_id="+_53f;_541+="&tag="+encodeURIComponent(_540);_541+="&sdomain="+WikiCommon.wikiInfo.SUBDOMAIN;$1("tagDocument.do","POST",_541,true,function(rt){WikiCommon.addTagtoList(rt);},true);}else{if(!Tagging.newDocumentTags){Tagging.newDocumentTags=_53e;}else{Tagging.newDocumentTags+=" "+_53e;}var _543=Tagging.parseTagName(_53e);var tgs=Tagging.generateTagInfoString(_543);WikiCommon.addTagtoList(tgs);}if($("zwaddpgetg")){$("zwtags").style.display="none";closeDialogBox();}return false;};WikiCommon.addTagtoList=function(_545){this.resp=eval(_545);this.fullList=this.resp[0];this.newlist=this.fullList.ADDED;var _546=this.fullList.DUP.length;this.err="Document Tagged";var elm=this.newlist.length;if(_546>0){this.err="Some Tags Not Added";}if(elm==0){this.err="No Tag Added";}if(elm==0&&_546==0){this.err="";}if(Writer.currentDocInfo&&Writer.currentDocInfo.DOCUMENT_ID!=null){for(x=0;x<elm;x++){var _548=this.newlist[x];eval("Writer.currentDocInfo.TagInfo.push({ID:'"+_548.ID+"',VALUE:'"+_548.VALUE+"'})");}}var _549=new Array();var _54a=new Array();var _54b=new Array();var _54c=new Array();for(x=0;x<elm;x++){var _548=this.newlist[x];_549[x]=_548.ID;_54a[x]=_548.VALUE;}WikiCommon.cleanupArray(_54a,_54c);WikiCommon.cleanupArray(_549,_54b);for(x=0;x<elm;x++){var flg=Writer.checkNameExists(_54c[x]);if(flg){Writer._newArray.push(_54c[x]);}WikiCommon.handleTags();}$("tf").value="";if($("wo_tg_added")){$("wo_tg_added").innerHTML=this.err;$("wo_tg_added").style.display="inline";setTimeout("Writer.closeDivTag('wo_tg_added')",2000);}};WikiCommon.chat=function(_54e){showURLInDialogBox("/ContactAuthor.im","position=absolute, top=70, left=200, closeOnEscKey=yes, closeButton=yes, modal=yes, title="+w_obj.MAIL_AUTHOR+", draggable=yes","mailBody","contact="+_54e);};WikiCommon.close_zwconifm=function(){if($("zwConfirmId")){$("zwConfirmId").style.display="none";}};WikiCommon.sendMessage=function(){var toId=$("zwContactId");var subj=$("zwSubjectId");var _551=$("zwMailBodyId");var info=$("zwConfirmId");if($("senderId")){var _553=$("senderId").value;_553=WikiCommon.trimSpaces(_553);if(_553==""||_553.indexOf("@")==-1||_553.indexOf(".")==-1){info.style.display="";info.innerHTML="<font size='4'>"+w_obj.INVALIDEMAILID+"</font>";$("senderId").focus();return false;}}if($("hip_value")){var _554=$("hip_value").value;}if(toId.value==""){alert("Contact name should be not empty. Please file this issue to feedback@zohowiki.com.");return false;}var mess=WikiCommon.trimSpaces(_551.value);if(mess==""){info.style.display="";info.innerHTML="<font size='4'>"+w_obj.MSG_NOT_EMP+"</font>";_551.focus();return false;}info.innerHTML="<font size='5'>"+w_obj.SENDING+"</font>";var _556="";if($("senderId")){_556="to="+toId.value+"&subject="+subj.value+"&msg="+mess+"&HIP_ID="+_554+"&from="+_553;}else{_556="to="+toId.value+"&subject="+subj.value+"&msg="+mess+"&HIP_ID="+_554;}$1("/MailToAuthor.im","POST",_556,true,function(rt){var rmsg=rt;info.style.display="";if(rmsg.indexOf("WRONG IMAGE TEXT")!=-1){info.innerHTML="<font size='4'>"+w_obj.INVALIDIMAGETXT+"</font>";}else{info.innerHTML="<font size='4'>"+rmsg+"</font>";subj.value=_551.value="";}WikiCommon.getNewHIPImage();},true);return false;};WikiCommon.setOnclick=function(){document.onclick=function(){if($("zwMylinksdiv")){$("zwMylinksdiv").style.display="none";}if($("zwPageopdiv")){$("zwPageopdiv").style.display="none";}if($("zwCPageopdiv")){$("zwCPageopdiv").style.display="none";}if($("zwSwitchToDiv")){$("zwSwitchToDiv").style.display="none";}if($("zwSettingsbMnu")){$("zwSettingsbMnu").style.display="none";}if($("zwmysetSubmnu")){$("zwmysetSubmnu").style.display="none";}if($("copywikimen")&&!$("otherWikiName")){$("copywikimen").style.display="none";}if($("zwCopyMsgDiv")){$("zwCopyMsgDiv").parentNode.removeChild($("zwCopyMsgDiv"));}if($("zwMenuIframe")){$("zwMenuIframe").style.display="none";}WikiCommon.menuclicked=false;};};function onfbwiki(){$("fbwikitab").className="fbtabsel";$("fbzwikitab").className="fbtab";$("fbmsg").innerHTML=w_obj.NEEDFB4TW;$("hipdiv").style.display="";if($("optionalemail")){$("optionalemail").style.display="none";}$("fbm_comments").focus();if($("wothnks_tbl")){$("wothnks_tbl").style.display="none";}}function onfbzwiki(){if($("fbwikitab")){$("fbwikitab").className="fbtab";$("fbzwikitab").className="fbtabsel";$("fbmsg").innerHTML=w_obj.NEEDFB+"<br/>"+w_obj.FB_2_ZOHOWIKI;$("hipdiv").style.display="none";if($("optionalemail")){$("optionalemail").style.display="";}$("fbm_comments").focus();if($("wothnks_tbl")){$("wothnks_tbl").style.display="none";}}}function ontreeimgclk(n,pg){if(n.className.indexOf("minusimg")!=-1&&$(pg)){$(pg).style.display="none";n.className="plusimg";}else{if(n.className.indexOf("plusimg")!=-1&&$(pg)){$(pg).style.display="";n.className="minusimg";}}}function showpageoptions(_55b,_55c,id,cat,_55f){var ev=(is_ie)?window.event:_55b;var _561=(is_ie)?ev.srcElement:ev.target;var r=Utils.getPos(_561);var x=r.offsetLeft;var y=r.offsetTop;var _565=$("zwPgOp"+id).getAttribute("READ_PERM");var _566=$("zwPgOp"+id).getAttribute("PAGE_TYPE");if(!$("zwPageopdiv")){var _567=document.createElement("div");_567.id="zwPageopdiv";document.body.appendChild(_567);}var _568="";if(_565=="0"){_568="zwPublicPageimg";}else{if(_565=="1"){_568="zwRegisteredPageimg";}else{if(_565=="4"){_568="zwPrivatePageimg";}else{if(_565=="5"){_568="zwGroupPageimg";}}}}$("zwPageopdiv").style.top=y+5;$("zwPageopdiv").style.left=x-114;$("zwPageopdiv").style.display="";$("zwPageopdiv").className="zwpMenu";var _569="";_569+="<div class='zwMenuTitle'><b>"+w_obj.PAGEOPTIONS+"</b></div>";if(_isAdmin){_569+="<a href='/WikiEditor.im?doc="+_55f+"' style='text-decoration:none;'><div class='zwpMenuItem' onmouseover='menu_onmouseover(this);' onmouseout='menu_onmouseout(this);'>"+w_obj.EDTPGE+"</div></a>";}if(_iswritable&&_566!="2"){_569+="<div class='zwpMenuItem' onmouseover='menu_onmouseover(this);' onmouseout='menu_onmouseout(this);' onclick='WikiCommon.duplicatePage(\""+_55f+"\",\""+id+"\",\""+cat+"\",event);'>"+w_obj.DUPLICATE+"</div>";}if((window.winfo.ALLOW_COPY_PAGES=="1"||_isAdmin)&&_566!="2"){_569+="<div id='cpPageOpt' class='zwpMenuItem' onmouseover='menu_onmouseover(this);WikiCommon.openMyWikisMenu("+x+","+y+",\""+id+"\",\""+_55f+"\");' onmouseout='menu_onmouseout(this);' onclick='Utils._stopEvent(event);'><span style='float:right'>&gt;</span>"+w_obj.COPYTO+"</div>";}if(_iswritable){_569+="<div class='zwpMenuItem' onmouseover='menu_onmouseover(this);' onmouseout='menu_onmouseout(this);' onclick='WikiCommon.createNewPage(\""+id+"\");'>"+w_obj.ADDSUBPAGE+"</div>";}_569+="<a href='/"+_55f+".hlp' target='_blank' style='text-decoration:none;'><div class='zwpMenuItem' onmouseover='menu_onmouseover(this);' onmouseout='menu_onmouseout(this);'>"+w_obj.PRINTPREVIEW+"</div></a>";if(_isAdmin){_569+="<div class='zwpMenuItem' onmouseover='menu_onmouseover(this);' onmouseout='menu_onmouseout(this);' onclick='zwRN_atsidebar(\""+id+"\","+x+","+y+",\""+_55c+"\",\""+cat+"\");'>"+w_obj.RENAME+"</div> <div class='zwpMenuItem' onmouseover='menu_onmouseover(this);' onmouseout='menu_onmouseout(this);' onclick='zwRNURL_atsidebar(\""+id+"\","+x+","+y+",\""+_55f+"\",\""+cat+"\");'> "+w_obj.CM_MSG31+"</div> <div class='zwpMenuItem' onmouseover='menu_onmouseover(this);' onmouseout='menu_onmouseout(this);' onclick='if(confirm(\""+w_obj.SUREDELETE+"\")){Writer.trashDocument(\""+id+"\",\""+cat+"\");}'>"+w_obj.DELETE+"</div>";}if(_isAdmin){_569+="<div class='zwpMenuItem' id='zwpPermMenuItem' onmouseover='menu_onmouseover(this);'onclick='if( !isNew ) WikiLogin.togglePermissions(\""+id+"\", \""+_55c+"\");' onmouseout='menu_onmouseout(this);'><img src='"+staticURL+"/images/spacer.gif' style='height:15px; width:16px; float:right;' id='zwRPagPermImg"+id+"' class='"+_568+"' >"+w_obj.PERMISSIONS+"<br></div><div class='zwpMenuItem' id='zwpSetAsHome' onmouseover='menu_onmouseover(this);' onclick='WikiLogin.updateHomePage(\""+id+"\");' onmouseout='menu_onmouseout(this);'>"+w_obj.SETASHOMEPAGE+"</div>";}$("zwPageopdiv").innerHTML=_569;Utils._stopEvent(_55b);WikiCommon.setOnclick();}function zwRNURL_atsidebar(id,xs,ys,_56d,cat){if($("RNURLatsidebar")){$("RNURLatsidebar").parentNode.removeChild($("RNURLatsidebar"));}var _56f=document.createElement("div");_56d=_56d.replace(/-/g," ").replace(/   /g," - ");_56f.innerHTML=w_obj.ENTER_NEW_URL+"&nbsp;<input type='text' id='zwRNURLatsidebarval' value='"+_56d+"' style='width:150px' onkeypress='javascript:if(event.keyCode==13)WikiLogin.updateUrl(\""+id+"\",$(\"zwRNURLatsidebarval\").value,\""+cat+"\");'>&nbsp<center><input type='button' class='renameButtonShow' value='"+w_obj.OK+"' onclick='WikiLogin.updateUrl(\""+id+"\",$(\"zwRNURLatsidebarval\").value ,\""+cat+"\");'>&nbsp<input type='button' class='renameButtonShow' value='"+w_obj.CANCEL+"' onclick='zwRNcancel(\""+id+"\")'></center>";_56f.style.position="absolute";_56f.style.fontSize="13px";_56f.style.padding="5px";_56f.style.top=ys+5;_56f.id="RNatsidebar";_56f.style.left=xs-177;_56f.style.width="170px";document.body.appendChild(_56f);$("zwRNURLatsidebarval").focus();$("zwRNURLatsidebarval").select();}function zwRN_atsidebar(id,xs,ys,_573,cat){if($("RNatsidebar")){$("RNatsidebar").parentNode.removeChild($("RNatsidebar"));}var _575=document.createElement("div");_573=_573.replace(/-/g," ").replace(/   /g," - ");_575.innerHTML=w_obj.ENTERTHENEWNAME+"&nbsp;<input type='text' id='zwRNatsidebarval' value='"+_573+"' style='width:150px' onkeypress='javascript:if(event.keyCode==13)WikiLogin.updateTitle(\""+id+"\",$(\"zwRNatsidebarval\").value,\""+cat+"\");'>&nbsp<center><input type='button' class='renameButtonShow' value='"+w_obj.OK+"' onclick='WikiLogin.updateTitle(\""+id+"\",$(\"zwRNatsidebarval\").value ,\""+cat+"\");'>&nbsp<input type='button' class='renameButtonShow' value='"+w_obj.CANCEL+"' onclick='zwRNcancel(\""+id+"\")'></center>";_575.style.position="absolute";_575.style.fontSize="13px";_575.style.padding="5px";_575.style.top=ys+5;_575.id="RNatsidebar";_575.style.left=xs-177;_575.style.width="170px";document.body.appendChild(_575);$("zwRNatsidebarval").focus();$("zwRNatsidebarval").select();}function zwRNcancel(id){if($("zwPgOp"+id)){$("zwPgOp"+id).className="recentpageopt";$("zwPgOp"+id).src=staticURL+"/images/spacer.gif";}$("RNatsidebar").parentNode.removeChild($("RNatsidebar"));}function menu_onmouseover(s){if(s.tagName.toLowerCase()=="div"){s.className=" zwpMenuItemOvr";}if(s.id=="cpPageOpt"||s.id=="menuIt"){if($("copywikimen")){$("copywikimen").style.display="block";}}else{if($("copywikimen")){$("copywikimen").style.display="none";}if($("zwSettingsbMnu")){$("zwSettingsbMnu").style.display="none";}if($("zwmysetSubmnu")){$("zwmysetSubmnu").style.display="none";}}}function menu_onmouseout(s){if(s.tagName.toLowerCase()=="div"){s.className=" zwpMenuItem";}if(s.id=="cpPageOpt"){if($("copywikimen")){$("copywikimen").style.display="block";}}}WikiCommon.duplicatePage=function(_579,id,cat,_57c){var ev=(is_ie)?window.event:_57c;var _57e=(is_ie)?ev.srcElement:ev.target;var r=Utils.getPos(_57e);var x=r.offsetLeft;var y=r.offsetTop;var obj1=$("zwPageopdiv");var obj2=$("zwMylinksdiv");var obj=(obj1)?obj1:obj2;if(cat=="CP"){obj=$("zwCPageopdiv");obj.style.display="";obj.style.top=y+23;obj.style.left=x;obj.style.textAlign="left";obj.className="zwcpMenu";}else{obj.style.width="150px";obj.style.top=y+5;obj.style.left=x-114;obj.style.display="block";obj.className="zwpMenu";}Utils._stopEvent(_57c);obj.innerHTML="<center class='dupSuccessMsg'>"+w_obj.DUPLICATING+"</center>";obj.style.display="block";$1("/duplicatePage.im","POST","page="+_579+"&sdomain="+WikiCommon.wikiInfo.SUBDOMAIN,true,function(rt){var _586=rt;var _587=eval(_586);if(!_587){return false;}obj.style.display="block";var _588="<center class='dupSuccessMsg'>";if(_587.RESULT.indexOf("SUCCESS")==0){_588+=w_obj.SUCESS_DUPLCATED+"<br><a href="+window.location.protocol+"//"+WikiCommon.wikiInfo.SUBDOMAIN.replace(/_/g,"-")+"."+window.winfo.BASEDOMAIN+"/"+_587.PAGE+".html>"+w_obj.CLICKTOVIEWPAGE+"</a>";if(cat=="RP"||cat=="CP"){WikiCommon.loadRecentWikis();}}else{if(_587.RESULT.indexOf("ERRORINCOPYING")==0){_588+=w_obj.ERRORWHILEDUPLCATNGPAGE;}}obj.innerHTML=_588+"</center>";},true);return false;WikiCommon.setOnclick();Utils._stopEvent(_57c);};WikiCommon.copyPage=function(_589,_58a,_58b){if(_58b==""){alert(w_obj.PLZENTERWIKINAME);$("otherWikiName").focus();return false;}if(_58a==undefined){_58a=wikilogin.zwPageSelection();}if($("copywikimen")){var _58c=$("copywikimen").cloneNode(true);_58c.id="zwCopyMsgDiv";document.body.appendChild(_58c);$("copywikimen").style.display="none";_58c.style.display="block";_58c.innerHTML="<center>"+w_obj.COPYING+"</center>";}if($("zwPageopdiv")){$("zwPageopdiv").style.display="none";}if($("zwCPageopdiv")){$("zwCPageopdiv").style.display="none";}$1("/copyPage.im","POST","docsid="+encodeURIComponent(_58a)+"&sdomain="+WikiCommon.wikiInfo.SUBDOMAIN+"&sdomain2="+_58b,true,function(rt){var _58e=rt;var _58f=eval(_58e);if(!_58f){return false;}var _590="<center style='padding:5px 10px 10px 10px;'>";if(_58f.RESULT.indexOf("SUCCESS")!=-1){_590+=w_obj.SUCCESSFULLYCOPIED+"<br><a href='http://"+_58b.replace(/_/g,"-")+"."+window.winfo.BASEDOMAIN+"/"+_58f.PAGE+".html'>"+w_obj.CLICKTOVIEWPAGE+"</a>";if(_58b.replace(/_/g,"-")==WikiCommon.wikiInfo.SUBDOMAIN){WikiCommon.loadRecentWikis();}}else{if(_58f.RESULT.indexOf("PERMISSIONDENIED")!=-1){_590+=w_obj.YOUDONTHAVEPEMISSIONSTOCREATEPAGE;}else{if(_58f.RESULT.indexOf("SUBDOMAINNOTEXIST")!=-1){_590+=w_obj.THISWIKIDOESNOTEXIST;}else{if(_58f.RESULT.indexOf("ERRORINCOPYING")!=-1){_590+=w_obj.ERRORWHILECOPYINGPAGE;}else{if(_58f.RESULT.indexOf("ATTACHMENTSNOTCOPIEDPROPERLY")!=-1){_590+=w_obj.ATTACHMENTSNOTCOPIEDPROPERLY;}}}}}_58c.innerHTML=_590+"</center>";if(_58f.RESULT.indexOf("SUCCESS")==-1){setTimeout(function(){_58c.style.display="none";},4000);}},true);WikiCommon.setOnclick();Utils._stopEvent(_589);};WikiCommon.openMyWikisMenu1=function(_591){var _592=WikiCommon.getPageSelections();if(_592==""){alert(w_obj.SELECT_PAGE);return false;}var ev=(is_ie)?window.event:_591;var _594=(is_ie)?ev.srcElement:ev.target;var r=Utils.getPos(_594);var x=r.offsetLeft;var y=r.offsetTop-25;WikiCommon.openMyWikisMenu(x,y,_592);};WikiCommon.openMyWikisMenu=function(x,y,_59a,_59b){if($("copywikimen")){$("copywikimen").style.display="none";}var _59c=null;if($("copywikimen")){_59c=$("copywikimen");}else{_59c=document.createElement("div");}var _59d=getScreenWidth();if(_59d/2<x){x=x-260;}_59c.style.position="absolute";if(_iswritable){_59c.style.top=y+43;}else{_59c.style.top=y+5;}_59c.id="copywikimen";_59c.style.left=x-3;var _59e="";if(_59a==undefined){_59a=WikiLogin.getPageSelections();}if(MyWikis.length){for(var i=0;i<MyWikis.length;i++){_59e+="<div onmouseover='menu_onmouseover(this);' id='menuIt' style='cursor:pointer;padding:3px;' onmouseout='menu_onmouseout(this);' title='"+MyWikis[i]+"."+window.winfo.BASEDOMAIN+"' onclick='WikiCommon.copyPage(event,\""+_59a+"\",\""+MyWikis[i].replace(/_/g,"-")+"\");'>"+WikiCommon.shortenString(MyWikis[i],20,true).replace(/_/g,"-")+"</div>";}}_59e+="<div id='menuIt' onmouseover='menu_onmouseover(this);' style='cursor:pointer;padding:3px;border-top:1px solid #EFEFEF;' onmouseout='menu_onmouseout(this);' onclick='showCopyToOtherWikiDialog(\""+_59a+"\")'>"+w_obj.OTHER+"</div>";_59c.innerHTML=_59e;document.body.appendChild(_59c);_59c.style.display="block";WikiCommon.setOnclick();};showCopyToOtherWikiDialog=function(_5a0){if($("zwPageopdiv")){$("zwPageopdiv").style.display="none";}if($("copywikimen")){$("copywikimen").innerHTML=w_obj.ENTERTHENAMEOFWIKI+":<br><input type=\"text\" id=\"otherWikiName\" onkeypress='javascript:if(event.keyCode==13)WikiCommon.copyPage(event,\""+_5a0+"\",$(\"otherWikiName\").value);' style='width:100%;'><br><table><tr><td class='pageButtonShow' onclick='WikiCommon.copyPage(event,\""+_5a0+"\",$(\"otherWikiName\").value)'>"+w_obj.OK+"</td><td class='pageButtonShow' onclick='$(\"copywikimen\").style.display=\"none\"'>"+w_obj.CANCEL+"</td></tr></table>";}if($("otherWikiName")){$("otherWikiName").focus();}};newSubPageDialog=function(_5a1,x,y){var _5a4=null;if($("newSubPageDialog")){_5a4=$("newSubPageDialog");}else{_5a4=document.createElement("div");_5a4.id="newSubPageDialog";document.body.appendChild(_5a4);}_5a4.style.left=x-155;_5a4.style.top=y+10;_5a4.style.position="absolute";_5a4.innerHTML=w_obj.ENTERTHESUBPAGENAME+":<br><input type='text' onkeypress='javascript:if(event.keyCode==13)WikiCommon.addSubPage(\""+_5a1+"\");' align='center' id='spName' style='width:146px;'><br><table width='100%'><tr><td class='pageButtonShow' style='width:50%;' onclick='WikiCommon.addSubPage(\""+_5a1+"\");'>"+w_obj.OK+"</td><td class='pageButtonShow' style='width:50%;' onclick='$(\"newSubPageDialog\").style.display=\"none\"'>"+w_obj.CANCEL+"</td></tr></table>";$("spName").focus();};WikiCommon.addSubPage=function(pId){if($("spName")&&$("spName").value!=""){var _5a6=$("spName").value.replace(/ /g,"-").replace(/_/g,"-").replace(/\+/g,"-").replace(/\.html/g,"");}if(!WikiCommon.isValidFileName(_5a6)){return false;}window.location.href="/"+_5a6+".html?pid="+pId;};showCurrentPageOptions=function(_5a7,_5a8,id,cat){var ev=(is_ie)?window.event:_5a7;var _5ac=(is_ie)?ev.srcElement:ev.target;if(_5ac.tagName.toLowerCase()=="img"){_5ac=_5ac.parentNode;}var r=Utils.getPos(_5ac);var x=r.offsetLeft;var y=r.offsetTop;var _5b0=window.cdocinfo.AUTH_READ;if(!$("zwCPageopdiv")){var _5b1=document.createElement("div");_5b1.id="zwCPageopdiv";document.body.appendChild(_5b1);}var _5b2="";if(_5b0=="0"){_5b2="zwPublicPageimg";}else{if(_5b0=="1"){_5b2="zwRegisteredPageimg";}else{if(_5b0=="4"){_5b2="zwPrivatePageimg";}else{if(_5b0=="5"){_5b2="zwGroupPageimg";}}}}$("zwCPageopdiv").style.display="";$("zwCPageopdiv").style.top=y+23;$("zwCPageopdiv").style.left=x;$("zwCPageopdiv").style.textAlign="left";$("zwCPageopdiv").className="zwcpMenu";var _5b3="";if(_iseditable){_5b3+="<div class='zwpMenuItem' onmouseover='menu_onmouseover(this);' onmouseout='menu_onmouseout(this);' onclick='if( !isNew )WikiCommon.toggleHistory();'>";if($("historyPanel")){_5b3+=WikiCommon.getLimitedString(w_obj.HIDEVERSION,20,true)+"</div>";}else{_5b3+=WikiCommon.getLimitedString(w_obj.SHOWVERSION,20,true)+"</div>";}}if(_iswritable&&WikiCommon.currentPageType!="2"){_5b3+="<div class='zwpMenuItem' onmouseover='menu_onmouseover(this);' onmouseout='menu_onmouseout(this);' onclick='WikiCommon.duplicatePage(\""+window.cdocinfo.DOCUMENT_NAME_URL+"\",\""+id+"\",\"CP\",event);'>"+WikiCommon.getLimitedString(w_obj.DUPLICATE,20,true)+"</div>";_5b3+="<div class='zwpMenuItem' onmouseover='menu_onmouseover(this);' onmouseout='menu_onmouseout(this);' onclick='WikiCommon.createNewPage(\""+id+"\");'>"+WikiCommon.getLimitedString(w_obj.ADDSUBPAGE,20,true)+"</div>";}if(WikiCommon.currentPageType!="2"&&(((window.winfo.ALLOW_COPY_PAGES=="1")&&_islogin)||_isAdmin)){_5b3+="<div id='cpPageOpt' class='zwpMenuItem' onmouseover='menu_onmouseover(this);WikiCommon.openMyWikisMenu("+(x+140)+","+(y+45)+",\""+id+"\",\""+_5a8+"\");' onmouseout='menu_onmouseout(this);' onclick='Utils._stopEvent(event);'><span style='float:right'>&gt;</span>"+WikiCommon.getLimitedString(w_obj.COPYTO,20,true)+"</div>";}_5b3+="<a href='/"+window.cdocinfo.DOCUMENT_NAME_URL+".hlp' target='_blank' style='text-decoration:none;'><div class='zwpMenuItem' onmouseover='menu_onmouseover(this);' onmouseout='menu_onmouseout(this);'>"+WikiCommon.getLimitedString(w_obj.PRINTPREVIEW,20,true)+"</div></a>";if(_isAdmin){_5b3+="<div class='zwpMenuItem' onmouseover='menu_onmouseover(this);' onmouseout='menu_onmouseout(this);' onclick='zwRN_atsidebar(\""+id+"\","+(x+110)+","+(y+25)+",\""+_5a8+"\",\""+cat+"\");'>"+WikiCommon.getLimitedString(w_obj.RENAME,20,true)+" </div>";_5b3+="<div class='zwpMenuItem' onmouseover='menu_onmouseover(this);' onmouseout='menu_onmouseout(this);' onclick='zwRNURL_atsidebar(\""+id+"\","+(x+110)+","+(y+25)+",\""+Writer.currentDocInfo.DOCUMENT_NAME_URL+"\",\""+cat+"\");'> "+WikiCommon.getLimitedString(w_obj.CM_MSG31,20,true)+" </div>";}if(_isDeletable){_5b3+="<div class='zwpMenuItem' onmouseover='menu_onmouseover(this);' onmouseout='menu_onmouseout(this);' onclick='if(confirm(\""+w_obj.SUREDELETE+"\")){Writer.trashDocument(\""+id+"\",\""+cat+"\");}'>"+WikiCommon.getLimitedString(w_obj.DELETE,20,true)+"</div>";}if(_isAdmin){_5b3+="<div class='zwpMenuItem' id='zwpPermMenuItem' onmouseover='menu_onmouseover(this);'onclick='if( !isNew ) WikiLogin.togglePermissions(\""+id+"\", \""+_5a8+"\");' onmouseout='menu_onmouseout(this);'><img src='"+staticURL+"/images/spacer.gif' style='height:15px; width:16px; float:right;' id='zwRPagPermImg"+id+"' class='"+_5b2+"' >"+WikiCommon.getLimitedString(w_obj.PERMISSIONS,20,true)+"<br></div><div class='zwpMenuItem' id='zwpSetAsHome' onmouseover='menu_onmouseover(this);' onclick='WikiLogin.updateHomePage(\""+id+"\");' onmouseout='menu_onmouseout(this);'>"+WikiCommon.getLimitedString(w_obj.SETASHOMEPAGE,20,true)+"</div>";}$("zwCPageopdiv").innerHTML=_5b3;if(!$("zwMenuIframe")){var _5b4=document.createElement("iframe");_5b4.style.position="absolute";_5b4.style.top=$("zwCPageopdiv").offsetTop;_5b4.style.left=$("zwCPageopdiv").offsetLeft;_5b4.style.border="none";_5b4.style.height=$("zwCPageopdiv").offsetHeight;_5b4.style.width=$("zwCPageopdiv").offsetWidth;_5b4.id="zwMenuIframe";document.body.appendChild(_5b4);}else{$("zwMenuIframe").style.display="block";}Utils._stopEvent(_5a7);WikiCommon.setOnclick();};var zwFileSelections=":";WikiCommon.getFileSelection=function(){var i=0;while(document.getElementById("zwFCIT"+i)){var obj=document.getElementById("zwFCIT"+i);var _5b7=obj.getAttribute("aId");if(obj.checked){zwFileSelections+=_5b7+":";}i++;}};WikiCommon.reloadFileBar=function(_5b8,obj){var _5ba="/uploadFilerld.im?sdomain="+WikiCommon.wikiInfo.SUBDOMAIN+"&id="+Writer.currentDocInfo.DOCUMENT_ID;var _5bb=false;if(obj){_5bb=obj.getAttribute("asc");_5bb=(_5bb=="true")?"false":"true";}if(_5b8){_5ba+="&sort="+_5b8+"&asc="+_5bb;}showLoading();$1(WikiCommon.fixForIeCache(_5ba),"GET","",true,function(rt){var res=rt;$("zwFileCabinet").innerHTML=res;WikiCommon.makeScriptExecute($("zwFileCabinet"));hideLoading();},false);};WikiCommon.selAllFiles=function(lnk){var i=0;while(document.getElementById("zwFCIT"+i)){var obj=document.getElementById("zwFCIT"+i);if(lnk.checked){obj.checked=true;}else{obj.checked=false;}i++;}};WikiCommon.removeFileFromBar=function(){WikiCommon.getFileSelection();if(zwFileSelections==":"){alert(w_obj.PLEASESELECTANYFILE);return false;}$("zwFileCabinet").innerHTML=w_obj.LOADING;$1("/DetachFromPage.im","POST","sdomain="+WikiCommon.wikiInfo.SUBDOMAIN+"&docId="+Writer.currentDocInfo.DOCUMENT_ID+"&attachId="+zwFileSelections,true,function(rt){WikiCommon.reloadFileBar();zwFileSelections=":";},true);};WikiCommon.addNewPage=function(_5c2){var _5c3=_5c2.zwPageName.value.replace(/-/g,"---").replace(/ /g,"-").replace(/_/g,"-").replace(/\+/g,"-").replace(/\.html/g,"");if(_5c3==""){alert(w_obj.PLZENTERPAGENAME);_5c2.zwPageName.focus();return false;}if(!WikiCommon.isValidFileName(_5c3)){return false;}var _5c4=WikiCommon.getCheckedValue(_5c2.zwPageType);var _5c5="0";if(_5c2.zwMakeAsSubPage){_5c5=WikiCommon.getCheckedValue(_5c2.zwMakeAsSubPage);}var url="/"+_5c3+".html?type="+_5c4;if(WikiCommon.createPageSubDomain!=""){url="http://"+WikiCommon.createPageSubDomain+"/"+_5c3+".html?type="+_5c4+"&gid="+WikiCommon.createPageGroupID;WikiCommon.createPageSubDomain="";WikiCommon.createPageGroupID="";}else{if(window.cdocinfo&&window.cdocinfo.DOCUMENT_ID&&window.cdocinfo.DOCUMENT_ID!="0"&&_5c5=="1"){url="/"+_5c3+".html?pid="+window.cdocinfo.DOCUMENT_ID+"&type="+_5c4;}else{if(WikiCommon.createPageParent!=""){url="/"+_5c3+".html?pid="+WikiCommon.createPageParent+"&type="+_5c4;}}}window.location.href=url;};WikiCommon.createNewPage=function(_5c7){WikiCommon.createPageParent="";var _5c8="/createnewpage.im";if(_5c7){WikiCommon.createPageParent=_5c7;}if(!_5c7&&window.cdocinfo&&window.cdocinfo.DOCUMENT_ID&&window.cdocinfo.DOCUMENT_ID!="0"){_5c8+="?p=1";}showURLInDialogBox(_5c8,"position=absolute, top=50, left=200, closeOnEscKey=yes, closeButton=yes,width=600px, modal=yes, title="+w_obj.CREATENPAGE+", draggable=yes");};WikiCommon.getCheckedValue=function(_5c9){for(var i=0;i<_5c9.length;i++){if(_5c9[i].checked==true){return _5c9[i].value;}}return 0;};WikiCommon.updateParent=function(_5cb,_5cc,_5cd){if(_5cb==undefined||_5cc==undefined){return false;}var _5ce="sdomain="+WikiCommon.wikiInfo.SUBDOMAIN+"&cid="+_5cb+"&pid="+_5cc;if(_5cd){_5ce+="&bid="+_5cd;}$1("/UpdateParent.do","POST",_5ce,true,"",true);};WikiCommon.isEmptyField=function(_5cf){if(WikiCommon.trimSpaces(_5cf)==""){return true;}return false;};WikiCommon.trimSpaces=function(_5d0){return _5d0.replace(/^(\s+)/,"").replace(/(\s+)$/,"");};WikiCommon.toggleHistory=function(_5d1){var _5d2=document.getElementById?document.getElementById("dialogDiv"):dialogDiv;if(_5d2==null){return false;}var _5d3=document.getElementById?document.getElementById("historyPanel"):historyPanel;if(!Writer.currentDocInfo){Writer.currentDocInfo=window.cdocinfo;}if(_5d3==null){showLoading();_5d2.style.display="block";var _5d4=document.createElement("div");_5d4.setAttribute("id","historyPanel");_5d2.appendChild(_5d4);WikiCommon.tempContent=Writer.documentContent;$1("/history.im?sdomain="+WikiCommon.wikiInfo.SUBDOMAIN,"GET","",true,function(rt){$("historyPanel").innerHTML=rt;Utils.openDiv("historyPanel");WikiCommon.makeScriptExecute($("historyPanel"));},false);}else{if(_5d1){_5d2.removeChild(_5d3);_5d2.style.display="none";}else{WikiCommon.normalView();_5d2.removeChild(_5d3);_5d2.style.display="none";}}};WikiCommon.normalView=function(){var _5d6=document.getElementById?document.getElementById("subBC"):subBC;_5d6.innerHTML="";_5d6.style.padding="0px";var _5d7=document.createElement("span");_5d7.setAttribute("name","normtext");_5d7.id="contentArea";_5d7.innerHTML=WikiCommon.tempContent;_5d6.appendChild(_5d7);};WikiCommon.loadVersionDetails=function(){$1("/WikiVersionDetails.im","POST","sdomain="+WikiCommon.wikiInfo.SUBDOMAIN+"&DOCUMENT_ID="+Writer.currentDocInfo.DOCUMENT_ID,true,function(rt){var _5d9=eval(rt);var _5da=new Versioning(_5d9);Writer.versioning=_5da;Writer.versionView();hideLoading();},true);};if(typeof Writer=="undefined"){var Writer=function(){};}Writer.handleHistoryDetails=function(_5db){var _5dc=_5db.verDetails;if(!_5dc){return;}var _5dd=eval(_5dc);var _5de=new Versioning(_5dd);Writer.versioning=_5de;Writer.versionView();Utils.hideMsg();hideLoading();};Utils.loadInBody=function(_5df){var _5e0=document.getElementById("subBC");_5e0.innerHTML="";var _5e1=document.createElement("div");_5e1.id="wo_innerbody";_5e0.appendChild(_5e1);_5e0.style.padding=10;_5e1.innerHTML=_5df;};Writer.resetFlags=function(){Writer.spellCheckON=false;Writer.autoSaveDocumentId="";if(Writer.editor){Writer.editor._editor.documentModified(false);}};Writer.showDiff=function(){Utils.showMsg(w_obj.LOADINGDIFF);var _5e2=Writer.currentDocInfo;var _5e3="DOCUMENT_ID="+_5e2.DOCUMENT_ID;_5e3+="&DOCUMENT_NAME="+encodeURIComponent(_5e2.DOCUMENT_NAME);_5e3+="&AUTH_NAME="+WikiCommon.wikiInfo.SUBDOMAIN;var _5e4=Writer.getSelectedValue("diffVersion1");var _5e5=Writer.getSelectedValue("diffVersion2");var obj1=document.getElementById("diffVersion1");var obj2=document.getElementById("diffVersion2");if(_5e4&&_5e5){if(obj1.selectedIndex>=obj2.selectedIndex){_5e3+="&VERSION1="+_5e4;_5e3+="&VERSION2="+_5e5;}else{_5e3+="&VERSION1="+_5e5;_5e3+="&VERSION2="+_5e4;}}$1("/WikiDiff.im","POST",_5e3,true,function(rt){var msg=rt;Writer.editor=null;Writer.resetFlags();Utils.loadInBody(msg);Utils.hideMsg();},false);};Writer.getSelectedValue=function(elid){var b1=$(elid);if(b1&&b1.options){for(i=0;i<b1.options.length;i++){if(b1.options[i].selected){return b1.options[i].value;}}}};WikiCommon.revertBack=function(){if($("versionList")){window.location.href="/WikiEditor.im?doc="+window.cdocinfo.DOCUMENT_NAME_URL+"&v="+$("versionList").value;}};Writer.loadVersion=function(_5ec){var div=document.getElementById("slidediv1");div.style.left="";div.innerHTML="";div.style.display="none";Writer.versioning.currentNum=_5ec.versionNum;if(Writer.currentDocInfo.CATEGORY=="SHARED"){Writer.loadDoc(Writer.currentDocInfo.DOCUMENT_ID,Writer.currentDocInfo.DOCUMENT_NAME,_5ec.VERSION,"/SharedDocView.do",Writer.handleOnlyViewShared);}else{Writer.loadDoc(Writer.currentDocInfo.DOCUMENT_ID,Writer.currentDocInfo.DOCUMENT_NAME,_5ec.VERSION,"/wikiView.im",Writer.handleDocumentLoad,null,function(){return "&sdomain="+WikiCommon.wikiInfo.SUBDOMAIN+"&TYPE=p";});}};Writer.loadDoc=function(_5ee,_5ef,_5f0,_5f1,_5f2,_5f3,_5f4){if(!isNotePanelClosed()){closeNotePanel();}if(""!=_5ee||!_5f4){}if($("sharedUserStatusTD")!=null&&_5f3){if(_5f3.CATEGORY=="SHARED"||_5f3.SHAREDTO!=""){$("sharedUserStatusTD").style.display="";}else{$("sharedUserStatusTD").style.display="none";}}Utils.showLoadingMsg(w_obj.LOADING);if(Writer.editor){Writer.editor.setHTML("");}if(!_5f4){_5f4=function(){return "";};}var url="";if(!_5f0||_5f0.length==0){url=_5f1+"?DOCUMENT_ID="+_5ee+"&DOCUMENT_NAME="+_5ef+_5f4()+"&tstamp="+(new Date()).getTime();}else{url=_5f1+"?DOCUMENT_ID="+_5ee+"&DOCUMENT_NAME="+_5ef+"&VERSION="+_5f0+_5f4()+"&tstamp="+(new Date()).getTime();}$1(WikiCommon.fixForIeCache(url),"GET","",true,function(rt){if(_5f3){Writer.currentDocInfo=_5f3;}var _5f7=rt.replace(/&[^&]*#10;/g," ");_5f2(_5f7,_5f0);var _5f8=false;if(Writer.editor){var _5f9=Writer.editor._editor._iframe.contentWindow.document.getElementsByTagName("meta");if(_5f9.length>0){for(var i=0;i<_5f9.length;i++){if(_5f9[i].name=="zid"){zid=_5f9[i].content;_5f8=true;}}}else{zid="0";}}if(!_5f8){zid="0";}if(Writer.currentDocInfo.CATEGORY=="SHARED"&&Writer.currentDocInfo.PERMISSION=="false"){if($("sharedUserStatusTD")!=null){$("sharedUserStatusTD").style.display="";}var div=document.getElementById("toAdd");if(div.style.display=="inline"){div.style.display="none";}}Utils.hideLoadingMsg();},false);};Writer.handleDocumentLoad=function(_5fc){if(typeof _5fc=="undefined"){return;}Utils.loadInBody(_5fc);Writer.editor=null;Writer.resetFlags();Writer.autoSaveON=false;Writer.documentContent=_5fc;Utils.hideMsg();};WikiCommon.callOnLoadOfFrame=function(_5fd,_5fe){var f=document.getElementById(_5fd);var _600=f.contentWindow.document.readyState;if(_600=="complete"){_5fe(f.contentWindow);}else{setTimeout(function(){WikiCommon.callOnLoadOfFrame(_5fd,_5fe);},100);}};function isNotePanelClosed(){if($("notePanel")!=null){return ($("notePanel").style.display=="none"?true:false);}}function closeNotePanel(){if($("notePanel")!=null){var _601=$("notePanel");_601.style.display="none";}}WikiCommon.loadGroupPages=function(_602,_603,_604){var _605=document.getElementById?document.getElementById(_602):_602;if(typeof _605=="undefined"||_605==null){return false;}_605.innerHTML=w_obj.WAIT_PLZ;WikiCommon.groupToggles(_602,WikiCommon.wikiInfo.zwGroupPagesDivIds);var val={};val.TYPE="UI";val.URL=WikiCommon.fixForIeCache("/groupages.im?sdomain="+_603+"&gid="+_604);val.UPDATE_UI=_602;val.CALLBACK=function(){Writer.openSlider(_602);};(new XComponentLoader()).loadComponent(val);};WikiCommon.groupToggles=function(val,_608,_609){var p=_608;var t=_609;if(!p){return false;}for(i=0;i<p.length;i++){var elp=document.getElementById(p[i]);if(t){var elt=document.getElementById(t[i]);if(elp&&elt){if(p[i]==val){elp.style.display="block";elt.className="sharetab";}else{elp.style.display="none";elt.className="foldretext";}}}else{if(elp){if(p[i]==val){elp.style.display="block";}else{elp.style.display="none";}}}}};WikiCommon.toggleNewGroupDocument=function(evnt,_60f,_610){WikiCommon.createPageSubDomain=_60f;WikiCommon.createPageGroupID=_610;WikiCommon.createNewPage();return false;};WikiCommon.sendInvitation=function(){var val=document.tellafriend.inviteemails.value;var _612=document.getElementById("encode_types").value;if(val==""||_612==""){return false;}var _613=WikiCommon.trimSpaces(val).replace(/ /g,"").replace(/^,/g,"").replace(/,$/g,"");_613=_613.replace(/\n/g,",");_membersArray=_613.split(",");var _614=new Array();_613=WikiCommon.cleanupArray(_membersArray,_614);var _msg="";if($("zwTellaFriendMsg")){_msg="&msg="+encodeURIComponent($("zwTellaFriendMsg").value);}$1("jsp/sendWikiInvitation.jsp","POST","inviteEmail="+encodeURIComponent(_613)+"&docURL="+document.URL+"&encode_types="+_612+_msg,true,"",true);(document.getElementById("invitethnks")).style.display="inline";setTimeout(function(){(document.getElementById("invitethnks")).style.display="none";},1000);document.tellafriend.inviteemails.value="";document.tellafriend.inviteemails.focus();return false;};Utils.editorMsg=function(msg,_617){var _618=document.getElementById("zweditormsg");_618.innerHTML="<nobr>"+msg+"</nobr>";_618.style.display="inline";_618.style.background="#FAEBD7";_618.style.padding="2px";if(_617){setTimeout(function(){Utils.hideDiv("zweditormsg");},4000);}};WikiCommon.loadEditorJS=function(){$1("/_zoho/js/wikilogin.js","GET","",true,function(rt){$("subBC").innerHTML=rt;},false);};Writer.versionView=function(){var _61a=Writer.versioning;var _61b=Writer.currentVersionDetail;Utils.loadInBody(Writer.documentContent);Writer.editor=null;Writer.resetFlags();var _61c=Utils.createElement("select","id=diffVersion1 name=diffVersion1");var _61d=Utils.createElement("select","id=diffVersion2 name=diffVersion2");var _61e=Utils.createElement("select","id=versionList name=versionList");var _61f=document.getElementById("lastEditedBySpan");_61e.onchange=function(){Writer.loadVersion(this.options[this.selectedIndex].versionDetail);if(_61f){_61f.innerHTML=this.options[this.selectedIndex].versionDetail.USER_NAME;}};var _620=_61a.versioningDetails.length;for(var i=(_620-1);i>=0;i--){var _622=_61a.versioningDetails[i];var _623="toungelink";if(_61b&&_61b.VERSION==_622.VERSION){_623="selectedVersion";}var _624=Utils.createElement("option","value="+_622.VERSION);var _625=Utils.createElement("option","value="+_622.VERSION);var _626=Utils.createElement("option","value="+_622.VERSION);if(_61f&&i==(_620-1)){_61f.innerHTML=_622.USER_NAME;}if(_620>1&&i==(_620-2)){_625.selected=true;}_626.versionDetail=_622;_626.versionCount=_620;var _627=new Array();_627=_622.UPDATED_TIME.split(" ");var _628=_627[1]+_627[2];var _629=_627[0]+" - "+eval("w_obj."+_628);var _62a=document.createTextNode(_622.VERSION+" ("+_629+")");var _62b=document.createTextNode(_622.VERSION+" ("+_629+")");var _62c=document.createTextNode(_622.VERSION+" ("+_629+")");_624.appendChild(_62a);_625.appendChild(_62b);_626.appendChild(_62c);_61c.appendChild(_624);_61d.appendChild(_625);_61e.appendChild(_626);}var _62d=document.getElementById("diffVersion1TD");var _62e=document.getElementById("diffVersion2TD");var _62f=document.getElementById("versionListTD");_62d.innerHTML="";_62e.innerHTML="";_62f.innerHTML="";_62d.appendChild(_61c);_62e.appendChild(_61d);_62f.appendChild(_61e);Utils.changeClass(new Array("diffPanel"),"");var _630=_620-1;if(_630>=0){Writer.loadVersion(_61a.versioningDetails[_630]);}};WikiCommon.cleanupArray=function(_631,_632){var err=1;for(i=0;i<_631.length;i++){if(i==0){var _634=_631[0].replace(/\s+$/,"");_632.push(_634);}else{for(j=0;j<_632.length;j++){if(_631[i]==_632[j]){err=0;}}if(err==1){var clen=_631[i].replace(/\s+$/,"");if(clen!=""){_632.push(clen);}}err=1;}}return _632;};WikiCommon.previewImage=function(url){showDialogBox("<center><img src='"+url+"' alt='"+w_obj.LOADING+"...' title='"+w_obj.TITLE_IMGPREVIEW+"' onclick='closeDialogBox(\"zwImgPreviewDialog\");'></center>","position=absolute, top=25, left=25, closeOnEscKey=yes, closeButton=yes, modal=yes, title="+w_obj.IMG_PREVIEW+", draggable=yes","zwImgPreviewDialog");buzzerDialogBox();};WikiCommon.validateTags=function(_637){var _638=/[:|\\|<|>|*|\||\/|'|%|#|&|?]/;if(_638.test(_637)){return false;}return true;};Writer.trashDocument=function(_639,cat){if(window.cdocinfo){if(window.cdocinfo.DOCUMENT_ID==_639){Utils.showMsg(w_obj.DELETING);}}if($("zwPgOp"+_639)){$("zwPgOp"+_639).src=staticURL+"/images/zwPgOpLoading.gif";}$1("/DelWiki.im","POST","docsid="+_639+"&sdomain="+WikiCommon.wikiInfo.SUBDOMAIN,true,function(rt){Utils.hideMsg();if(window.cdocinfo&&window.cdocinfo.DOCUMENT_ID==_639){Utils.showMsg(w_obj.PAGE_TRASHED_HOMEPAGE);window.location.href="/";}else{if(cat=="RP"){WikiCommon.loadRecentWikis();}else{window.location.href=window.location.href;}}},true);};WikiCommon.SortingComments=function(Obj,_63d){showLoading();var _63e;var _63f=Obj.getAttribute("sort");if(_63f=="0"){if(_63d){_63e="0";Obj.innerHTML=w_obj.SHW_OLDTORET;Obj.setAttribute("sort","1");}else{_63e="1";}}else{if(_63f=="1"){if(_63d){_63e="1";Obj.innerHTML=w_obj.SHW_RETTOOLD;Obj.setAttribute("sort","0");}else{_63e="0";}}}$1("/WikiSortingComments.do","POST","sdomain="+WikiCommon.wikiInfo.SUBDOMAIN+"&docid="+window.cdocinfo.DOCUMENT_ID+"&s="+_63e,true,function(rt){hideLoading();var _641=rt;var _642=$("comment");_642.innerHTML=_641;},true);var d=new Date;d.setTime(d.getTime()+8640000000);document.cookie="zwsrt="+_63e+";expires= "+d.toGMTString()+";domain="+window.winfo.BASEDOMAIN;};WikiCommon.helpMenu=function(_644,_645){if($("zwSettingsbMnu")){$("zwSettingsbMnu").style.display="none";}if($("zwmysetSubmnu")){$("zwmysetSubmnu").style.display="none";}var _646=new Array();var _647=(window.winfo)?window.winfo.BASEDOMAIN:wikisettings.wikiInfo1.BASEDOMAIN;if(_647==undefined){_647=baseDomain;}if(_645){_646[0]=({"text":w_obj.PRICING,"title":w_obj.PRICING,"clas":"zwpricing","onclick":function(){window.open(location.protocol+"//"+_647+"/plan.do?r=top");},"ispagedivr":"divider"});}else{_646[0]=({"text":w_obj.UPGRADE,"title":w_obj.UPGRADE,"clas":"zwpricing","onclick":function(){window.open(location.protocol+"//"+_647+"/plan.do?r=top");},"ispagedivr":"divider"});}_646[1]=({"text":w_obj.HELP,"title":w_obj.HELP,"clas":"zwhelp","onclick":function(){window.open(w_obj.HELPLINK);}});if(Rebrand===false){_646[2]=({"text":w_obj.FAQ,"title":w_obj.FAQ,"clas":"zw_ST_Icon","onclick":function(){window.open("http://wiki.zoho.com/WikiFAQ.html");}});_646[3]=({"text":w_obj.WHATS_NEW,"title":w_obj.WHATS_NEW,"clas":"zw_ST_Icon","onclick":function(){window.open("http://wiki.zoho.com/What-is-New.html");},"ispagedivr":"divider"});}_646[4]=({"text":w_obj.BLOGS,"title":w_obj.BLOGS,"clas":"zw_ST_Icon","onclick":function(){window.open(w_obj.BLOGLINK);}});_646[5]=({"text":w_obj.FORUMS,"title":w_obj.FORUMS,"clas":"zw_ST_Icon","onclick":function(){window.open(w_obj.FORUMSLINK);}});_646[6]=({"text":w_obj.FEEDBACK,"title":w_obj.FEEDBACK,"clas":"zwfedbck","onclick":function(){toggleFeedback();}});WikiCommon.switchMenu(_644,_646);};WikiCommon.myMenu=function(_648){if($("zwSettingsbMnu")){$("zwSettingsbMnu").style.display="none";}if($("zwmysetSubmnu")){$("zwmysetSubmnu").style.display="none";}var ev=(is_ie)?window.event:_648;var _64a=(is_ie)?ev.srcElement:ev.target;var r=Utils.getPos(_64a);var x=r.offsetLeft;var y=r.offsetTop;var _64e=new Array();var _64f=(window.winfo)?window.winfo.LOGIN_NAME:wikisettings.wikiInfo1.SUBDOMAIN;var _650=(window.winfo)?window.winfo.BASEDOMAIN:wikisettings.wikiInfo1.BASEDOMAIN;if(_650==undefined){_650=baseDomain;}if(_64f==undefined){_64f=LoginName;}_64e[0]=({"text":w_obj.MYWIKIS,"title":w_obj.MYWIKIS,"clas":"zwMyWikis","href":"/mywiki.do","onmouseovr":function(){menu_onmouseover(this);},"onmouseout":function(){menu_onmouseout(this);}});_64e[1]=({"text":w_obj.MYWATCHES,"title":w_obj.MYWATCHES,"clas":"zwMywtchlst","onclick":function(){showURLInDialogBox("/watch.do","position=absolute, top=50, left=200, closeOnEscKey=yes, closeButton=yes, modal=yes, title=My Watchlist, draggable=yes","","a=3&d=1");},"onmouseovr":function(){menu_onmouseover(this);},"onmouseout":function(){menu_onmouseout(this);}});_64e[2]=({"text":w_obj.MYACCOUNT,"title":w_obj.MYACCOUNT,"clas":"zwMyAccntIcn","href":"/IAMMyAccount","onmouseovr":function(){menu_onmouseover(this);},"onmouseout":function(){menu_onmouseout(this);}});_64e[3]=({"text":w_obj.MYSETTINGS,"title":w_obj.MYSETTINGS,"clas":"zwMysettings","href":location.protocol+"//"+_650+"/WikiSettings.do","onmouseovr":function(){WikiCommon.mysettingsSubMenu((x+403),(y+45));},"id":"zwmySettingsSubMenu","isSubMenu":"true"});WikiCommon.switchMenu(_648,_64e);};WikiCommon.pageMenu=function(_651){if($("zwSettingsbMnu")){$("zwSettingsbMnu").style.display="none";}if($("zwmysetSubmnu")){$("zwmysetSubmnu").style.display="none";}var ev=(is_ie)?window.event:_651;var _653=(is_ie)?ev.srcElement:ev.target;if(_653.tagName.toLowerCase()=="img"){_653=_653.parentNode;}var r=Utils.getPos(_653);var x=r.offsetLeft;var y=r.offsetTop+_653.offsetHeight;var id=(Writer.currentDocInfo)?Writer.currentDocInfo.DOCUMENT_ID:"";var cat=(Writer.currentDocInfo)?Writer.currentDocInfo.CATEGORY:"";var _659=(Writer.currentDocInfo)?Writer.currentDocInfo.DOCUMENT_NAME:"";var _65a=(window.cdocinfo)?window.cdocinfo.DOCUMENT_NAME_URL:"";var _65b=(_65a!="")?false:true;var _65c=new Array();if(_iseditable&&!_65b){_65c[0]=({"text":w_obj.EDTPGE,"title":w_obj.EDTPGE,"clas":"zwedtpge","href":"/WikiEditor.im?doc="+_65a+"","onmouseovr":function(){menu_onmouseover(this);},"onmouseout":function(){menu_onmouseout(this);}});}if(_islogin&&!_65b){if($("historyPanel")){_65c[1]=({"text":w_obj.HIDEVERSION,"title":w_obj.SHOWVERSION,"clas":"zwshwvrs","onclick":function(){if(!isNew){WikiCommon.toggleHistory();}},"onmouseovr":function(){menu_onmouseover(this);},"onmouseout":function(){menu_onmouseout(this);}});}_65c[1]=({"text":w_obj.SHOWVERSION,"title":w_obj.SHOWVERSION,"clas":"zwshwvrs","onclick":function(){if(!isNew){WikiCommon.toggleHistory();}},"onmouseovr":function(){menu_onmouseover(this);},"onmouseout":function(){menu_onmouseout(this);}});}if(_iswritable&&WikiCommon.currentPageType!="2"&&!_65b){_65c[2]=({"text":w_obj.DUPLICATE,"title":w_obj.DUPLICATE,"clas":"zwdpctepge","onclick":function(){WikiCommon.duplicatePage(_65a,id,"RP",_651);},"onmouseovr":function(){menu_onmouseover(this);},"onmouseout":function(){menu_onmouseout(this);}});}if(!_65b){_65c[3]=({"text":w_obj.ADDTAG,"title":w_obj.ADDTAG,"clas":"zwaddtg","onclick":function(){showDialogBox(w_obj.ENTERTHETAG+": <input type=text id=tagnms size=20 onkeyup='WikiCommon.showTags(this.value,event)' autocomplete=off><br><br><input type=button value="+w_obj.ADD+" onclick=\"return WikiCommon.addTag($(&quot;tagnms&quot;).value);\">&nbsp;&nbsp;<input type=button value="+w_obj.CLOSE+" onclick=\"$('zwtags').style.display='none';closeDialogBox();\"><div id=zwtags></div><input type=hidden id=hidtages>","position=absolute, top=201, left=325, closeOnEscKey=no, closeButton=no, modal=yes,title="+w_obj.ADDTAG+",width=300px,overflow=hidden,draggable=yes","zwaddpgetg");$("tagnms").focus();$("_DIALOG_CONTENT").style.overflow="hidden";},"onmouseovr":function(){menu_onmouseover(this);},"onmouseout":function(){menu_onmouseout(this);}});}if(_iswritable&&WikiCommon.currentPageType!="2"&&!_65b){_65c[4]=({"text":w_obj.ADDSUBPAGE,"title":w_obj.ADDSUBPAGE,"clas":"zwadsbpge","onclick":function(){WikiCommon.createNewPage(id);},"onmouseovr":function(){menu_onmouseover(this);},"onmouseout":function(){menu_onmouseout(this);}});}if(WikiCommon.currentPageType!="2"&&(((window.winfo.ALLOW_COPY_PAGES=="1")&&_islogin)||_isAdmin)&&!_65b){_65c[5]=({"text":w_obj.COPYTO,"title":w_obj.COPYTO,"clas":"zwcpyto","onmouseovr":function(){menu_onmouseover(this);WikiCommon.openMyWikisMenu((x+403),(y+45),id,_659);},"onmouseout":function(){menu_onmouseout(this);},"isSubMenu":"true"});}if(!_65b){_65c[6]=({"text":w_obj.PRINTPREVIEW,"title":w_obj.PRINTPREVIEW,"clas":"zwprntprv","onclick":function(){window.open("/"+_65a+".hlp");},"onmouseovr":function(){menu_onmouseover(this);},"onmouseout":function(){menu_onmouseout(this);}});}if(_isAdmin&&!_65b){_65c[7]=({"text":w_obj.RENAME,"title":w_obj.RENAME,"clas":"zwrenme","onclick":function(){zwRN_atsidebar(id,(x+110),(y+25),_659,cat);},"onmouseovr":function(){menu_onmouseover(this);},"onmouseout":function(){menu_onmouseout(this);}});_65c[8]=({"text":w_obj.CM_MSG31,"title":w_obj.CM_MSG31,"clas":"zwmdfyurl","onclick":function(){zwRNURL_atsidebar(id,(x+110),(y+25),_65a,cat);},"onmouseovr":function(){menu_onmouseover(this);},"onmouseout":function(){menu_onmouseout(this);}});}if(_isDeletable&&!_65b){_65c[9]=({"text":w_obj.DELETE,"title":w_obj.DELETE,"clas":"zwdel","onclick":function(){if(confirm(w_obj.SUREDELETE)){Writer.trashDocument(id,cat);}},"onmouseovr":function(){menu_onmouseover(this);},"onmouseout":function(){menu_onmouseout(this);}});}if(_isAdmin&&!_65b){_65c[10]=({"text":w_obj.PERMISSIONS,"title":w_obj.PERMISSIONS,"clas":"zwperm","onclick":function(){if(!isNew){WikiLogin.togglePermissions(id,_659);}},"onmouseovr":function(){menu_onmouseover(this);},"onmouseout":function(){menu_onmouseout(this);}});_65c[11]=({"text":w_obj.SETASHOMEPAGE,"title":w_obj.SETASHOMEPAGE,"clas":"zwstashme","onclick":function(){WikiLogin.updateHomePage(id);},"onmouseovr":function(){menu_onmouseover(this);},"onmouseout":function(){menu_onmouseout(this);}});}if(_islogin){_65c[12]=({"text":w_obj.TELLAFRD,"title":w_obj.TELLAFRD,"clas":"zwtellafrnd","onclick":function(){WikiLogin.toggleSpread();},"onmouseovr":function(){menu_onmouseover(this);},"onmouseout":function(){menu_onmouseout(this);}});}if(!_65b){_65c[13]=({"text":w_obj.EXPORTASPDF,"title":w_obj.EXPORTASPDFTITLE,"clas":"zwpdf","href":"/ZwExportPdf.do?sdomain="+WikiCommon.wikiInfo.SUBDOMAIN+"&docIds="+id,"onmouseovr":function(){menu_onmouseover(this);},"onmouseout":function(){menu_onmouseout(this);}});_65c[14]=({"text":w_obj.EXPORTASDOC,"title":w_obj.EXPORTASDOCTITLE,"clas":"zwdoc","href":"/ZwExportDoc.do?sdomain="+WikiCommon.wikiInfo.SUBDOMAIN+"&docIds="+id,"onmouseovr":function(){menu_onmouseover(this);},"onmouseout":function(){menu_onmouseout(this);},"ispagedivr":"divider"});}if(_iswritable){_65c[15]=({"text":w_obj.CREATENPAGE,"title":w_obj.CREATENPAGE,"clas":"zwcrtpge","onclick":function(){WikiCommon.createNewPage();},"onmouseovr":function(){menu_onmouseover(this);},"onmouseout":function(){menu_onmouseout(this);}});}WikiCommon.switchMenu(_651,_65c);};WikiCommon.showTags=function(_65d,_65e){var temp=_65d.slice(_65d.lastIndexOf(",")+1);if(temp!=""){var ev=(is_ie)?window.event:_65e;var _661=(is_ie)?ev.srcElement:ev.target;var r=Utils.getPos(_661);var x=r.offsetLeft;var y=r.offsetTop;var _665="sdomain="+WikiCommon.wikiInfo.SUBDOMAIN+"&sindex="+_65d;var div=$("zwtags");div.style.position="absolute";div.style.top=y-180+"px";div.style.left=x-325+"px";div.style.width=_661.offsetWidth;var ev1=ev.keyCode;$1("/showTags.do","POST",_665,true,function(rt){div.innerHTML="";var _669=eval(rt);if(!_669){return false;}var len=_669.length;for(var i=0;i<len;i++){var _66c=document.createElement("div");_66c.id="zwtagNamespn"+i;_66c.onclick=function(){WikiCommon.tagOnClick(this.id);};_66c.onmouseover=function(){WikiCommon.tagOnmouseOver(this.id);};_66c.onmouseout=function(){WikiCommon.tagOnmouseOut(this.id);};if(_669[i]!=undefined){_66c.innerHTML=WikiCommon.shortenString(_669[i],22,true);_66c.title=_669[i];}_66c.style.backgroundColor="white";div.appendChild(_66c);}div.style.display="block";if(len!=0){div.style.border="1px solid black";}else{div.style.border="none";}if(ev1==40){if($("tagnms").value.indexOf(",")!=-1){$("hidtages").value=$("tagnms").value.substring(0,$("tagnms").value.lastIndexOf(",")+1);}WikiCommon.selectedTag++;if(WikiCommon.selectedTag==len){WikiCommon.selectedTag=0;}}if(ev1==38){WikiCommon.selectedTag--;if(WikiCommon.selectedTag==-1){WikiCommon.selectedTag=len-1;}}if($("zwtagNamespn"+WikiCommon.selectedTag)){$("zwtagNamespn"+WikiCommon.selectedTag).style.backgroundColor="LightBlue";}if(ev1==13){if($("zwtagNamespn"+WikiCommon.selectedTag)){$("hidtages").value+=$("zwtagNamespn"+WikiCommon.selectedTag).title+",";}else{$("hidtages").value=$("tagnms").value;}$("tagnms").value=$("hidtages").value;div.innerHTML="";div.style.border="none";WikiCommon.selectedTag=0;}if(ev1==27){div.style.display="none";}},true);}else{if(_65e.keyCode==8){$("hidtages").value=$("tagnms").value;}else{$("hidtages").value="";}$("zwtags").style.display="none";}};WikiCommon.tagOnClick=function(id){$("hidtages").value+=$(id).innerHTML+",";$("tagnms").value=$("hidtages").value;$("zwtags").innerHTML="";$("zwtags").style.border="none";WikiCommon.selectedTag=0;$("tagnms").focus();};WikiCommon.tagOnmouseOver=function(id){$("zwtagNamespn"+WikiCommon.selectedTag).style.backgroundColor="white";$(id).style.backgroundColor="LightBlue";};WikiCommon.tagOnmouseOut=function(id){$(id).style.backgroundColor="white";};WikiCommon.settingsSubMenu=function(x,y){var _672=(window.winfo)?window.winfo.SUBDOMAIN:wikisettings.wikiInfo1.SUBDOMAIN;var _673=(window.winfo)?window.winfo.BASEDOMAIN:wikisettings.wikiInfo1.BASEDOMAIN;var _674=getScreenWidth();if(_674/2<x){x=x-260;}var div=null;if(!$("zwSettingsbMnu")){div=document.createElement("div");div.id="zwSettingsbMnu";div.style.position="absolute";}else{div=$("zwSettingsbMnu");}div.className="zwdrpdwn";div.style.top=y+156+"px";div.style.left=x+5+"px";var _676="";if(_isAdmin){_676+="<ul id='zwMylinks'><li><a href=\""+location.protocol+"//"+_673+"/WikiSettings.do?sdomain="+_672+"&t=1\"><em><img src='"+staticURL+"/images/spacer.gif' align='absmiddle' width='12' height='12' border='0' class='zwgnral'/></em>"+w_obj.GENERAL.trim()+"</a></li><li><a  href=\""+location.protocol+"//"+_673+"/WikiSettings.do?sdomain="+_672+"&t=2\"><em><img src='"+staticURL+"/images/spacer.gif' align='absmiddle' width='12' height='12' border='0' class='zwcustmztn'/></em>"+w_obj.CUSTOMIZATION.trim()+"</a></li><li><a href=\""+location.protocol+"//"+_673+"/WikiSettings.do?sdomain="+_672+"&t=3\"><em><img src='"+staticURL+"/images/spacer.gif' align='absmiddle' width='12' height='12' border='0' class='zwpermnu'/></em>"+w_obj.PERMISSIONS.trim()+"</a></li><li><a href=\""+location.protocol+"//"+_673+"/WikiSettings.do?sdomain="+_672+"&t=4\"><em><img src='"+staticURL+"/images/spacer.gif' align='absmiddle' width='12' height='12' border='0' class='zwntctn'/></em>"+w_obj.NOTIFICATIONS.trim()+"</a></li><li><a href=\""+location.protocol+"//"+_673+"/WikiSettings.do?sdomain="+_672+"&t=5\"><em><img src='"+staticURL+"/images/spacer.gif' align='absmiddle' width='12' height='12' border='0' class='zwthme'/></em>"+w_obj.WIKITHEMES.trim()+"</a></li><li><a href=\""+location.protocol+"//"+_673+"/WikiSettings.do?sdomain="+_672+"&t=6\"><em><img src='"+staticURL+"/images/spacer.gif' align='absmiddle' width='12' height='12' border='0' class='zwblkusr'/></em>"+w_obj.BLOCKEDUSERS.trim()+"</a></li><li><a href=\""+location.protocol+"//"+_673+"/WikiSettings.do?sdomain="+_672+"&t=7\"><em><img src='"+staticURL+"/images/spacer.gif' align='absmiddle' width='12' height='12' border='0' class='zwrbt'/></em>"+w_obj.ROBOTS.trim()+"</a></li><li><a href=\""+location.protocol+"//"+_673+"/WikiSettings.do?sdomain="+_672+"&t=8\"><em><img src='"+staticURL+"/images/spacer.gif' align='absmiddle' width='12' height='12' border='0' class='zwcusdm'/></em>"+w_obj.CUSTOM_DOMAIN.trim()+"</a></li><li><a href=\""+location.protocol+"//"+_673+"/WikiSettings.do?sdomain="+_672+"&t=9\"><em><img src='"+staticURL+"/images/spacer.gif' align='absmiddle' width='12' height='12' border='0' class='zwktrsh'/></em>"+w_obj.WIKITRASH.trim()+"</a></li><li><a href=\""+location.protocol+"//"+_673+"/WikiSettings.do?sdomain="+_672+"&t=10\"><em><img src='"+staticURL+"/images/spacer.gif' align='absmiddle' width='12' height='12' border='0' class='zwimexp'/></em>"+w_obj.ZWIMNDEPT.trim()+"</a></li></ul>";}div.innerHTML=_676;document.body.appendChild(div);div.style.display="block";WikiCommon.setOnclick();};WikiCommon.wikiMenu=function(_677){if($("zwSettingsbMnu")){$("zwSettingsbMnu").style.display="none";}if($("zwmysetSubmnu")){$("zwmysetSubmnu").style.display="none";}var ev=(is_ie)?window.event:_677;var _679=(is_ie)?ev.srcElement:ev.target;var r=Utils.getPos(_679);var x=r.offsetLeft;var y=r.offsetTop;var _67d=(window.cdocinfo)?window.cdocinfo.DOCUMENT_NAME_URL:"";var _67e=(window.winfo)?window.winfo.SUBDOMAIN:wikisettings.wikiInfo1.SUBDOMAIN;var _67f=(window.winfo)?window.winfo.BASEDOMAIN:wikisettings.wikiInfo1.BASEDOMAIN;var url=(WikiCommon.wikiInfo==undefined)?location.protocol+"//"+_67e+"."+_67f+"/":"/";var _681=new Array();_681[0]=({"text":w_obj.HOME,"title":w_obj.HOME,"clas":"zwhme","href":url,"onmouseovr":function(){menu_onmouseover(this);},"onmouseout":function(){menu_onmouseout(this);}});_681[1]=({"text":w_obj.DASHBOARD,"title":w_obj.DASHBOARD,"clas":"zwdshbrd","href":url+"dashboard.zhtml","onmouseovr":function(){menu_onmouseover(this);},"onmouseout":function(){menu_onmouseout(this);}});_681[2]=({"text":w_obj.WIKIINDEX,"title":w_obj.WIKIINDEX,"clas":"zwwkindx","href":url+"siteindex.zhtml","onmouseovr":function(){menu_onmouseover(this);},"onmouseout":function(){menu_onmouseout(this);}});_681[3]=({"text":w_obj.SITEMAP,"title":w_obj.SITEMAP,"clas":"zwstmp","href":url+"sitemap.zhtml","onmouseovr":function(){menu_onmouseover(this);},"onmouseout":function(){menu_onmouseout(this);}});if(_isAdmin){_681[4]=({"text":w_obj.PAGES,"title":w_obj.PAGES,"clas":"zwpges","href":"/recentwikis.zhtml?sdomain="+_67e+"&show=all","onmouseovr":function(){menu_onmouseover(this);},"onmouseout":function(){menu_onmouseout(this);}});_681[5]=({"text":w_obj.FILES,"title":w_obj.FILES,"clas":"zwfiles","href":"/fetchdocuments.im?sdomain="+_67e+"&g=1","onmouseovr":function(){menu_onmouseover(this);},"onmouseout":function(){menu_onmouseout(this);}});_681[6]=({"text":w_obj.EXPORTASPDF,"title":w_obj.WHOLEPDFEXPORTTITLE,"clas":"zwpdf","href":"/ZwExportPdf.do?sdomain="+_67e+"&docIds=0","onmouseovr":function(){menu_onmouseover(this);},"onmouseout":function(){menu_onmouseout(this);}});_681[7]=({"text":w_obj.EXPORTASDOC,"title":w_obj.WHOLEDOCEXPORTTITLE,"clas":"zwdoc","href":"/ZwExportDoc.do?sdomain="+_67e+"&docIds=0","onmouseovr":function(){menu_onmouseover(this);},"onmouseout":function(){menu_onmouseout(this);}});_681[8]=({"text":w_obj.GP_MEMBERS,"title":w_obj.GP_MEMBERS,"clas":"zwgrpmem","onclick":function(){showURLInDialogBox(WikiCommon.fixForIeCache("/_zoho/jsp/showsitegroups.jsp?sdomain=subdomain"),"position=absolute, top=50, left=200, closeOnEscKey=yes, closeButton=yes, modal=yes, title="+w_obj.GP_MEMBERS+", draggable=yes");},"onmouseovr":function(){menu_onmouseover(this);},"onmouseout":function(){menu_onmouseout(this);}});}if(_isAdmin){_681[9]=({"text":w_obj.SETTINGS,"title":w_obj.SETTINGS,"clas":"zwMysettings","href":location.protocol+"//"+_67f+"/WikiSettings.do?sdomain="+_67e+"&t=1","onmouseovr":function(){WikiCommon.settingsSubMenu((x+403),(y+45));},"id":"zwMenuWikiSettings","isSubMenu":"true"});}_681[10]=({"text":w_obj.NEWWIKI,"title":w_obj.NEWWIKI,"clas":"zwcrnwki","href":url+"createdomain.zhtml","ispagedivr":"divider1","onmouseovr":function(){menu_onmouseover(this);},"onmouseout":function(){menu_onmouseout(this);}});WikiCommon.switchMenu(_677,_681);};WikiCommon.createSwitchMenu=function(_682){if($("zwSettingsbMnu")){$("zwSettingsbMnu").style.display="none";}if($("zwmysetSubmnu")){$("zwmysetSubmnu").style.display="none";}if($("copywikimen")){$("copywikimen").style.display="none";}var text=services.split(",");var _684=serviceslink.split(",");var _685=new Array();for(var i=0;i<text.length;i++){_685[i]=({"text":eval("w_obj."+text[i]),"title":eval("w_obj."+text[i]),"clas":"zw_ST_Icon","onclick":function(){window.open(this.lnk);},"lnk":_684[i]});}WikiCommon.switchMenu(_682,_685);};WikiCommon.switchMenu=function(_687,_688){if(_687.type=="click"){WikiCommon.menuclicked=true;}else{if(!WikiCommon.menuclicked){return false;}}function switchOnClick(tr,link,_68b,_68c){if(link){tr.onclick=link;}if(_68b){tr.onmouseover=_68b;}if(_68c){tr.onmouseout=_68c;}}var _68d=document.getElementById("zwMylinksdiv");if(_68d==null){var _68e=document.createElement("div");_68e.setAttribute("id","zwMylinksdiv");document.body.appendChild(_68e);_68d=_68e;}_68d.innerHTML="";_68d.className="zwdrpdwn";var ev=(is_ie)?window.event:_687;var _690=(is_ie)?ev.srcElement:ev.target;if(_690.tagName.toLowerCase()=="img"){_690=_690.parentNode;}var r=Utils.getPos(_690);var x=r.offsetLeft;var y=r.offsetTop+_690.offsetHeight;var _694=Utils.createElement("ul","id=zwMylinks");var img=staticURL+"/images/spacer.gif";for(var i in _688){var _697=_688[i];var span=Utils.createElement("em","id=zwmylinkspan");var temp=Utils.createElement("a");if(_697.href){temp.href=_697.href;}else{temp.href="javascript:;";}if(_697.id){temp.id=_697.id;}var _69a=Utils.createElement("li",null,temp);_69a.title=_697.title;_69a.height="20px";_69a.lnk=_697.lnk;if(_697.ispagedivr){_69a.className=_697.ispagedivr;}var _69b="src="+img+" width=12 height=12 class="+_697.clas+" align=absmiddle border=0";var _69c=Utils.createElement("img",_69b);span.appendChild(_69c);temp.appendChild(span);if(_697.isSubMenu){temp.innerHTML+=WikiCommon.getLimitedString(_697.text.trim(),15,true)+"&nbsp;&nbsp;<span>&#187;&nbsp;</span>";}else{temp.innerHTML+=WikiCommon.getLimitedString(_697.text.trim(),15,true);}_69a.appendChild(temp);switchOnClick(_69a,_697.onclick,_697.onmouseovr,_697.onmouseovr,_697.onmouseout);_694.appendChild(_69a);}_68d.style.right="";_68d.style.left=x+"px";_68d.style.top=y+4+"px";_68d.style.position="absolute";_68d.style.display="block";_68d.appendChild(_694);Utils._stopEvent(_687);WikiCommon.setOnclick();};WikiCommon.mysettingsSubMenu=function(x,y){var _69f=(window.winfo)?window.winfo.BASEDOMAIN:wikisettings.wikiInfo1.BASEDOMAIN;if(_69f==undefined){_69f=baseDomain;}var _6a0=getScreenWidth();if(_6a0/2<x){x=x-260;}var div=null;if(!$("zwmysetSubmnu")){div=document.createElement("div");div.id="zwmysetSubmnu";div.style.position="absolute";}else{div=$("zwmysetSubmnu");}div.className="zwdrpdwn";div.style.top=y+34+"px";div.style.left=x+7+"px";var _6a2="";_6a2+="<ul id='zwMylinks'><li><a href=\""+location.protocol+"//"+_69f+"/WikiSettings.do?t=11\"><em><img src='"+staticURL+"/images/spacer.gif' align='absmiddle' width='12' height='12' border='0' class='zwcontme'/></em>"+w_obj.CONTACTME.trim()+"</a></li><li><a href=\""+location.protocol+"//"+_69f+"/WikiSettings.do?t=13\"><em><img src='"+staticURL+"/images/spacer.gif' align='absmiddle' width='12' height='12' border='0' class='zwmyedtr'/></em>"+w_obj.MYEDITOR.trim()+"</a></li><li><a href=\""+location.protocol+"//"+_69f+"/WikiSettings.do?t=14\"><em><img src='"+staticURL+"/images/spacer.gif' align='absmiddle' width='12' height='12' border='0' class='zwmylang'/></em>"+w_obj.MYLANGUAGE.trim()+"</a></li><li><a href=\""+location.protocol+"//"+_69f+"/WikiSettings.do?t=15\"><em><img src='"+staticURL+"/images/spacer.gif' align='absmiddle' width='12' height='12' border='0' class='zwpricing'/></em>"+w_obj.MYSUBSCRIPTION.trim()+"</a></li></ul>";div.innerHTML=_6a2;div.style.display="block";document.body.appendChild(div);WikiCommon.setOnclick();};WikiCommon.selAllCheckBox=function(lnk,id){var i=0;while($(id+i)){var obj=$(id+i);obj.checked=lnk.checked;i++;}};WikiCommon.exportPdfAndDoc=function(id){var _6a8=WikiCommon.getPageSelections();if(_6a8==""){alert(w_obj.SELECT_PAGE);return false;}if(id=="pdf"){var _6a9="sdomain="+WikiCommon.wikiInfo.SUBDOMAIN+"&docIds="+_6a8;window.location.href="/ZwExportPdf.do?"+_6a9;}else{var _6a9="sdomain="+WikiCommon.wikiInfo.SUBDOMAIN+"&docIds="+_6a8;window.location.href="/ZwExportDoc.do?"+_6a9;}};WikiCommon.getPageSelections=function(){var _6aa="";i=0;while(document.getElementById("zwREC"+i)){var obj=document.getElementById("zwREC"+i);if(obj.checked==true){var _6ac=obj.value;_6aa+=_6ac+",";}i++;}return _6aa;};WikiCommon.editComments=function(prn){var _6ae=prn.parentNode.id;$(prn.id).parentNode.removeChild($(prn.id));var _6af=$(_6ae).innerHTML;if($("zwtxt")==null){$(_6ae).innerHTML="<textarea wrap='soft' id='zwtxt' rows='10' style='width:500px;'>"+_6af.replace(/<br>/g,"\n")+"</textarea><br><input type='button' value="+w_obj.SAVE+" id='zwsve' style='background-color:#187DCF;color:#fff;border:none;'>&nbsp;"+w_obj.OR+"&nbsp;<a href='javascript:;' style='text-decoration:none;color:#000;' onclick='WikiCommon.cancel("+_6ae+")'>"+w_obj.CANCEL+"</a>";$("zwsve").onclick=function(){WikiCommon.saveComment(_6ae);};cmtids=_6ae;mousrids=prn.id;}else{$(cmtids).innerHTML=$("zwtxt").value.replace(/\n/g,"<br>")+"<img onclick='WikiCommon.editComments(this)' src='"+staticURL+"/images/spacer.gif' class='zwedt' id='"+mousrids+"' style='visibility:hidden;margin-left:5px;cursor:pointer;border:none;";$(_6ae).innerHTML="<textarea wrap='soft' id='zwtxt' rows='10' style='width:500px;'>"+_6af.replace(/<br>/g,"\n")+"</textarea><br><input type='button' value="+w_obj.SAVE+" id='zwsve' style='background-color:#187DCF;color:#fff;border:none;'>&nbsp;"+w_obj.OR+"&nbsp;<a href='javascript:;' style='text-decoration:none;color:#000;' onclick='WikiCommon.cancel("+_6ae+")'>"+w_obj.CANCEL+"</a>";cmtids=_6ae;mousrids=prn.id;}$("zwtxt").focus();};WikiCommon.saveComment=function(_6b0){var cmt=WikiCommon.trimSpaces($("zwtxt").value);var _6b2=$("zwtxt").value.replace(/&l/g,"&amp;l").replace(/&g/g,"&amp;g").replace(/</g,"&lt;").replace(/>/g,"&gt;");$1("/ZwSaveComments.do","POST","cId="+$(_6b0).getAttribute("name")+"&comment="+encodeURIComponent(cmt)+"&sdomain="+WikiCommon.wikiInfo.SUBDOMAIN,true,function(rt){$(_6b0).innerHTML=$("zwtxt").value.replace(/\n/g,"<br>")+"<img onclick='WikiCommon.editComments(this)' src='"+staticURL+"/images/spacer.gif' class='zwedt' id='"+mousrids+"' style='visibility:hidden;margin-left:5px;cursor:pointer;border:none;";},true);};WikiCommon.cancel=function(_6b4){_6b4.innerHTML=$("zwtxt").value.replace(/\n/g,"<br>")+"<img onclick='WikiCommon.editComments(this)' src='"+staticURL+"/images/spacer.gif' class='zwedt' id='"+mousrids+"' style='visibility:hidden;margin-left:5px;cursor:pointer;border:none;'/>";};WikiCommon.splitintoKeywords=function(obj){var arr=new Array();arr=obj.split(" ");var _6b7=arr[1]+arr[2];var _6b8=arr[0]+" - "+eval("w_obj."+_6b7);return _6b8;};