function upTaggingControlRegistry(){this.oCtrls={}}upTaggingControlRegistry.prototype.cleanUp=upTaggingControlRegistryCleanUp;upTaggingControlRegistry.prototype.add=upTaggingControlRegistryAdd;upTaggingControlRegistry.prototype.remove=upTaggingControlRegistryRemove;upTaggingControlRegistry.prototype.get=upTaggingControlRegistryGet;function upTaggingControlRegistryAdd(p_oCtrl){if(arguments.length<1||typeof(p_oCtrl.strKey)!="string"||p_oCtrl.strKey.length<1){return false}if(typeof(this.oCtrls[p_oCtrl.strKey])=="object"&&this.oCtrls[p_oCtrl.strKey]!=null){this.oCtrls[p_oCtrl.strKey].cleanUp()}this.oCtrls[p_oCtrl.strKey]=p_oCtrl;p_oCtrl.oRegistry=this;return true}function upTaggingControlRegistryRemove(p_strKey){if(typeof(this.oCtrls[p_strKey])=="object"||this.oCtrls[p_strKey]!=null){this.oCtrls[p_strKey]=null}}function upTaggingControlRegistryCleanUp(){for(var key in this.oCtrls){if(this.oCtrls[key]!=null&&typeof(this.oCtrls[key])=="object"&&this.oCtrls[key].upType=="upTaggingControl"){this.oCtrls[key].cleanUp(true)}}this.oCtrls={}}function upTaggingControlRegistryGet(p_strKey){if(typeof(this.oCtrls[p_strKey])=="object"||this.oCtrls[p_strKey]!=null){return this.oCtrls[p_strKey]}else{return false}}function upTaggingControl(){this.upType="upTaggingControl";this.bEdit=true;this.oRegistry=null;this.bShowStars=false;this.bShowComments=false;this.bShowAllTags=true;this.strAppGuid=null;this.strTargetGuid=null;this.strRecId=null;this.oListener={};this.oFup=null;this.iStars=5;this.iStarsSel=-1;this.strUrlStarIn="";this.strUrlStarOut="";this.strKey="";this.strDefaultTextTagging="[Edit...]";this.strPrefixStar="id_star";this.strPrefixTagInput="id_ixtag";this.strPrefixAlias="id_ixalias";this.strPrefixComments="id_ixcomment";this.strPrefixDivCommentView="id_view_comment";this.strPrefixDivCommentEdit="id_edit_comment";this.strPrefixDivTagView="id_view_tags";this.strPrefixDivTagEdit="id_edit_tags";this.strPrefixAllTags="id_view_alltags"}upTaggingControl.prototype.save=upTaggingControlSave;upTaggingControl.prototype.setStars=upTaggingControlSetStars;upTaggingControl.prototype.init=upTaggingControlInit;upTaggingControl.prototype.enableTagging=upTaggingControlEnableTagging;upTaggingControl.prototype.disableTagging=upTaggingControlDisableTagging;upTaggingControl.prototype.enableComment=upTaggingControlEnableComment;upTaggingControl.prototype.disableComment=upTaggingControlDisableComment;upTaggingControl.prototype.buildTagArray=upTaggingControlBuildTagArray;upTaggingControl.prototype.handleTagInput=upTaggingControlHandleTagInput;upTaggingControl.prototype.openTagChooser=upTaggingControlOpenTagChooser;upTaggingControl.prototype.closeTagChooser=upTaggingControlCloseTagChooser;upTaggingControl.prototype.cleanUp=upTaggingControlCleanUp;upTaggingControl.prototype.chooseTag=upTaggingControlChooseTag;function upTaggingControlCleanUp(){Helper.closeTTP("TagChooser"+this.strKey);for(var listenerKey in this.oListener){EventManager.removeListener(this.oListener[listenerKey])}if(this.oRegistry!=null){this.oRegistry.remove(this.strKey);this.oRegistry=null}}function upTaggingControlChooseTag(p_strTag,p_strMatchCode){this.enableTagging(false);var l_oInput=Browser.getRef(this.strPrefixTagInput+this.strKey);l_oInput.focus();if(typeof document.selection!="undefined"){var l_range=document.selection.createRange();var insText=l_range.text;if(insText.length==0){l_range.move("character",-(p_strMatchCode.length));for(var i=0;i<p_strMatchCode.length;i++){l_range.expand("character")}l_range.select()}l_range.text=p_strTag}else{if(typeof l_oInput.selectionStart!="undefined"){var l_iStart=l_oInput.selectionStart;var l_iEnd=l_oInput.selectionEnd;l_oInput.value=l_oInput.value.substr(0,l_iStart-p_strMatchCode.length)+p_strTag+l_oInput.value.substr(l_iEnd);var l_iPos;l_iPos=l_iStart+p_strTag.length;l_oInput.selectionStart=l_iPos;l_oInput.selectionEnd=l_iPos}else{var l_iPos;var re=new RegExp("^[0-9]{0,3}$");while(!re.test(l_iPos)){l_iPos=prompt("Insert at Position (0.."+l_oInput.value.length+"):","0")}if(l_iPos>l_oInput.value.length){l_iPos=l_oInput.value.length}l_oInput.value=l_oInput.value.substr(0,l_iPos)+p_strTag+l_oInput.value.substr(l_iPos)}}g_oldTagArray=this.buildTagArray()}function upTaggingControlOpenTagChooser(p_strMatchCode){var l_oInput=document.getElementById(this.strPrefixTagInput+this.strKey);if(l_oInput&&l_oInput!=null){if(Helper.isTTPOpen("TagChooser"+this.strKey)){this.closeTagChooser()}Helper.showTTP(l_oInput,oHtmlRoot.oUp.getFup(Helper.getFupId(l_oInput)),"TagChooser"+this.strKey,{rq_showclosewin:"0",rq_TagCtrlKey:this.strKey,rq_TagMatchCode:p_strMatchCode,rq_LoadStaticVm:"internal/system/vm/html/tagging/taggingControl_TagChooser.vm"},{bHasHeader:false},{strClassContainer:"TT_ADVICE"})}}function upTaggingControlCloseTagChooser(){Helper.closeTTP("TagChooser"+this.strKey)}function upTaggingControlHandleTagInput(){var l_oInput=Browser.getRef(this.strPrefixTagInput+this.strKey);var l_strInput=l_oInput.value;var l_strMatch="";var l_iIdx=-1;var l_currTagArray=this.buildTagArray();for(var i=0;i<l_currTagArray.length;i++){if(i<g_oldTagArray.length){if(g_oldTagArray[i]==l_currTagArray[i]){continue}else{l_strMatch=l_currTagArray[i];l_iIdx=i;break}}else{l_strMatch=l_currTagArray[i];l_iIdx=i;break}}if(l_strMatch.length>1){this.openTagChooser(l_strMatch)}else{this.closeTagChooser()}}function upTaggingControlBuildTagArray(){var l_oInput=Browser.getRef(this.strPrefixTagInput+this.strKey);if(l_oInput&&l_oInput.value.length>0){l_strInput=l_oInput.value.replace(/, */,",");var l_aInp=l_strInput.split(",");for(var i=0;i<l_aInp.length;i++){l_aInp[i]=Trim(l_aInp[i])}return l_aInp}else{return[]}}function upTaggingControlInit(p_oProps){for(var propName in p_oProps){this[propName]=p_oProps[propName]}if(typeof(g_oTaggingControlReg)=="undefined"||g_oTaggingControlReg==null){g_oTaggingControlReg=new upTaggingControlRegistry();if(typeof(this.oFup)=="object"&&this.oFup!=null&&this.oFup.aObjects){this.oFup.aObjects.push(g_oTaggingControlReg)}else{self.oUp.strOnUnLoad+="g_oTaggingControlReg.cleanUp();"}}g_oTaggingControlReg.add(this);if(this.bShowStars){this.setStars(this.iStarsSel,false)}}function upTaggingControlSetStars(p_iStars,p_bSave){if(isNaN(p_iStars)){return}var l_oHtmlStar;for(var i=0;i<this.iStars;i++){l_oHtmlStar=Browser.getRef(this.strPrefixStar+this.strKey+(i+1));l_oHtmlStar.src=this.strUrlStarOut}for(var i=0;i<p_iStars;i++){l_oHtmlStar=Browser.getRef(this.strPrefixStar+this.strKey+(i+1));l_oHtmlStar.src=this.strUrlStarIn}if(p_bSave){this.iStarsSel=p_iStars}}function upTaggingControlEnableTagging(p_bCursorPos){if(arguments.length<1||typeof(p_bCursorPos)!="boolean"){p_bCursorPos=true}var l_tagView=Browser.getRef(this.strPrefixDivTagView+this.strKey);var l_tagEdit=Browser.getRef(this.strPrefixDivTagEdit+this.strKey);var l_tagControl=Browser.getRef(this.strPrefixTagInput+this.strKey);l_tagView.style.visibility="hidden";l_tagView.style.display="none";l_tagEdit.style.visibility="visible";l_tagEdit.style.display="block";l_tagControl.focus();if(p_bCursorPos){try{var range=l_tagControl.createTextRange();range.move("character",l_tagControl.value.length);range.select()}catch(e){}}}function upTaggingControlDisableTagging(){var l_tagView=Browser.getRef(this.strPrefixDivTagView+this.strKey);var l_tagEdit=Browser.getRef(this.strPrefixDivTagEdit+this.strKey);var l_tagControl=Browser.getRef(this.strPrefixTagInput+this.strKey);l_tagView.innerHTML=(l_tagControl.value.length>0)?Helper.htmlEncode(l_tagControl.value):this.strDefaultTextTagging;l_tagEdit.style.visibility="hidden";l_tagEdit.style.display="none";l_tagView.style.visibility="visible";l_tagView.style.display="block";l_tagView.style.fontSize="10px"}function upTaggingControlEnableComment(){var l_cmView=Browser.getRef(this.strPrefixDivCommentView+this.strKey);var l_cmEdit=Browser.getRef(this.strPrefixDivCommentEdit+this.strKey);var l_cmControl=Browser.getRef(this.strPrefixComments+this.strKey);l_cmView.style.visibility="hidden";l_cmView.style.display="none";l_cmEdit.style.visibility="visible";l_cmEdit.style.display="block";l_cmControl.focus();try{var range=l_cmControl.createTextRange();range.move("character",l_cmControl.value.length);range.select()}catch(e){}}function upTaggingControlDisableComment(){var l_cmView=Browser.getRef(this.strPrefixDivCommentView+this.strKey);var l_cmEdit=Browser.getRef(this.strPrefixDivCommentEdit+this.strKey);var l_cmControl=Browser.getRef(this.strPrefixComments+this.strKey);l_cmView.innerHTML=(l_cmControl.value.length>0)?Helper.htmlEncode(l_cmControl.value):this.strDefaultTextTagging;l_cmEdit.style.visibility="hidden";l_cmEdit.style.display="none";l_cmView.style.visibility="visible";l_cmView.style.display="block";l_cmView.style.fontSize="10px"}function upTaggingControlSave(){this.closeTagChooser();if(this.strRecId==null||this.strRecId.length<=0){return}var l_strUrl=Helper.getBaseUrl();l_strUrl=Helper.setUrlValueByParam("rq_Template","internal/system/vm/html/tagging/xhrTaggingControlSave.vm",l_strUrl);l_strUrl=Helper.setUrlValueByParam("rq_SubAppGuid",this.strAppGuid,l_strUrl);l_strUrl=Helper.setUrlValueByParam("rq_SubTargetGuid",this.strTargetGuid,l_strUrl);l_strUrl=Helper.setUrlValueByParam("rq_RecId",this.strRecId,l_strUrl);l_strUrl=Helper.setUrlValueByParam("rq_ReloadAllTags",(this.bShowAllTags)?"1":"0",l_strUrl);l_strUrl=Helper.setUrlValueByParam("rq_TagCtrlKey",this.strKey,l_strUrl);var l_strTags=Browser.getRef(this.strPrefixTagInput+this.strKey).value;if(l_strTags.length>0){l_strUrl=Helper.setUrlValueByParam("rq_Tags",l_strTags,l_strUrl)}if(this.bShowStars&&this.iStarsSel>-1){l_strUrl=Helper.setUrlValueByParam("rq_Stars",this.iStarsSel,l_strUrl)}var l_oHtmlAlias=Browser.getRef(this.strPrefixAlias+this.strKey);if(l_oHtmlAlias&&l_oHtmlAlias.value.length>0){l_strUrl=Helper.setUrlValueByParam("rq_Alias",l_oHtmlAlias.value,l_strUrl)}var l_oHtmlComments=Browser.getRef(this.strPrefixComments+this.strKey);if(l_oHtmlComments){if(l_oHtmlComments.value.length>0){l_strUrl=Helper.setUrlValueByParam("rq_Comment",l_oHtmlComments.value,l_strUrl)}else{l_strUrl=Helper.setUrlValueByParam("rq_Comment","",l_strUrl)}}var oXmlHttp=new upXmlHttp();oXmlHttp.bResetTimeOut=false;oXmlHttp.bProcessResponse=true;oXmlHttp.processResponse=processSaveTagging;oXmlHttp.bAsync=true;oXmlHttp.strUrl=l_strUrl;oXmlHttp.send()}function processSaveTagging(){try{if(oRequest.readyState==State.done){if(oRequest.status==Status.ok){if(ErrorHandler.Ajax.checkXMLResponse("processSaveTagging",oRequest)){l_response=oRequest.responseXML.documentElement;l_strStatusmessage=l_response.getElementsByTagName("statusmessage")[0].firstChild.data;Notifier.status.notify(l_strStatusmessage,"Tagging","TAGGING_SAVE_PROCESS");var l_oNodeTagCtrls=l_response.getElementsByTagName("tagcontol");if(l_oNodeTagCtrls&&l_oNodeTagCtrls.length>0&&l_oNodeTagCtrls[0].childNodes&&l_oNodeTagCtrls[0].childNodes.length){var l_oNodeTagCtrl=l_oNodeTagCtrls[0];var l_strTagCtrlKey=l_oNodeTagCtrl.getAttribute("key");var l_oTagCtrl=g_oTaggingControlReg.get(l_strTagCtrlKey);if(l_oTagCtrl){for(var i=0;i<l_oNodeTagCtrl.childNodes.length;i++){switch(l_oNodeTagCtrl.childNodes[i].tagName){case"alltags":if(l_oTagCtrl.bShowAllTags){var l_oHtmlAllTags=document.getElementById(l_oTagCtrl.strPrefixAllTags+l_oTagCtrl.strKey);if(l_oHtmlAllTags){try{l_oHtmlAllTags.innerHTML=l_oNodeTagCtrl.childNodes[i].firstChild.data}catch(e){Notifier.status.error("Could not reload all tags!","Tagging Error","TAGGING_SAVE_PROCESS_ERROR")}}}break}}}}if(typeof(oGoSave_TTP)!="undefined"&&oGoSave_TTP!=null){oGoSave_TTP.closePopup()}if((typeof(reloadTagListing)=="object"||typeof(reloadTagListing)=="function")&&reloadTagListing!=null){try{eval("reloadTagListing();")}catch(e){}}}}else{alert("Http Error "+oRequest.status+"\n"+oRequest.statusText+"\nfunction: processSaveTagging")}}}catch(oExc){ErrorHandler.Ajax.handleJsException("processSaveTagging",oRequest,oExc);return}}self.processSaveTagging=processSaveTagging;function goEditTag(p_strUri,p_oTag){var l_strAppGuid=Helper.getUrlValueByParam("rq_AppGuid",p_strUri);var l_strTargetGuid=Helper.getUrlValueByParam("rq_TargetPageGuid",p_strUri);var l_strRecId=Helper.getUrlValueByParam("rq_RecId",p_strUri);if(!l_strAppGuid||l_strAppGuid=="$l_strAppGuid"||!l_strTargetGuid||l_strTargetGuid=="$l_strTargetGuid"){Notifier.status.error("Missing target information.","Tagging Error","TAGGING_ERROR");return false}oGoSave=new upActionControl();oGoSave=oGoSave.biDirectUpHtml(oGoSave,p_oTag.id);oGoSave.linkType="1";var oTagFup=oHtmlRoot.oUp.getFup(Helper.getFupId(p_oTag));if(typeof(oTagFup)=="object"&&oTagFup!=null){oGoSave.oFup=oTagFup}oGoSave.requestType=2;oGoSave.oSource=new upSource();oGoSave.oSource.fr_ActionId="actNone";oGoSave.oTarget=new upTarget();oGoSave.oTarget.bToolTipPopup=true;oGoSave.oTarget.rq_Template="internal/layout/vm/html/"+oHtmlRoot.oUp.oFormatInfo.layoutDir+"/frames/tooltippopup.vm";oGoSave.oTarget.addParam=Helper.setQsValueByParam("rq_LoadStaticVm","internal/system/vm/html/tagging/taggingContol.vm",oGoSave.oTarget.addParam);oGoSave.oTarget.addParam=Helper.setQsValueByParam("rq_showclosewin","0",oGoSave.oTarget.addParam);oGoSave.oTarget.addParam=Helper.setQsValueByParam("rq_AppGuid",l_strAppGuid,oGoSave.oTarget.addParam);oGoSave.oTarget.addParam=Helper.setQsValueByParam("rq_TargetPageGuid",l_strTargetGuid,oGoSave.oTarget.addParam);oGoSave.oTarget.addParam=Helper.setQsValueByParam("rq_TaggingKey","goSave",oGoSave.oTarget.addParam);oGoSave.oTarget.addParam=Helper.setQsValueByParam("rq_RecId",l_strRecId,oGoSave.oTarget.addParam);if(p_oTag.oUp.oToolTipPopup==null){oGoSave_TTP=new upToolTipPopup(p_oTag.oUp,"oGoSave_TTP");oGoSave_TTP.oNotifierEntry.bCloseButton=false}oGoSave.processRequest()}function goRemoveTag(p_strUri,p_oTag){oGoDelete=new upActionControl();oGoDelete=oGoDelete.biDirectUpHtml(oGoDelete,p_oTag.id);oGoDelete.linkType="1";var oTagFup=oHtmlRoot.oUp.getFup(Helper.getFupId(p_oTag));if(typeof(oTagFup)=="object"&&oTagFup!=null){oGoDelete.oFup=oTagFup}oGoDelete.requestType=2;oGoDelete.oSource=new upSource();oGoDelete.oSource.fr_ActionId="actNone";oGoDelete.oTarget=new upTarget();oGoDelete.oTarget.bToolTipPopup=true;oGoDelete.oTarget.rq_Template="internal/layout/vm/html/"+oHtmlRoot.oUp.oFormatInfo.layoutDir+"/frames/tooltippopup.vm";oGoDelete.oTarget.addParam=Helper.setQsValueByParam("rq_LoadStaticVm","internal/system/vm/html/tagging/dlgRemoveTag.vm",oGoDelete.oTarget.addParam);oGoDelete.oTarget.addParam=Helper.setQsValueByParam("rq_uri",p_strUri,oGoDelete.oTarget.addParam);if(p_oTag.oUp.oToolTipPopup==null){oGoDelete_TTP=new upToolTipPopup(p_oTag.oUp,"oGoDelete_TTP")}oGoDelete.processRequest()}function goSubject(p_strUri,p_oTag,p_CloudMax,p_CloudExp,p_CloudMin){var l_strAppGuid=Helper.getUrlValueByParam("rq_AppGuid",p_strUri);var l_strTargetGuid=Helper.getUrlValueByParam("rq_TargetPageGuid",p_strUri);var l_strRecId=Helper.getUrlValueByParam("rq_RecId",p_strUri);if(!l_strAppGuid||l_strAppGuid=="$l_strAppGuid"||!l_strTargetGuid||l_strTargetGuid=="$l_strTargetGuid"){Notifier.status.error("Missing target information.","Tagging Error","TAGGING_ERROR");return false}oGoSubject=new upActionControl();oGoSubject=oGoSubject.biDirectUpHtml(oGoSubject,p_oTag.id);oGoSubject.linkType="2";var oTagFup=oHtmlRoot.oUp.getFup(Helper.getFupId(p_oTag));if(typeof(oTagFup)=="object"&&oTagFup!=null){oGoSubject.oFup=oTagFup}oGoSubject.oSource=new upSource();oGoSubject.oSource.fr_ActionId="actNone";oGoSubject.oTarget=new upTarget();if(l_strAppGuid&&l_strTargetGuid){oGoSubject.oTarget.addParam=Helper.setQsValueByParam("rq_TemplateKey","stage",oGoSubject.oTarget.addParam);oGoSubject.oTarget.rq_TargetFrame=ContainerAgent.getStageFrameName();oGoSubject.oTarget.addParam=Helper.setQsValueByParam("rq_AppGuid",l_strAppGuid,oGoSubject.oTarget.addParam);oGoSubject.oTarget.addParam=Helper.setQsValueByParam("rq_TargetPageGuid",l_strTargetGuid,oGoSubject.oTarget.addParam);oGoSubject.oTarget.addParam=Helper.setQsValueByParam("rq_RecId",l_strRecId,oGoSubject.oTarget.addParam);self.oUp.setMenu(l_strAppGuid,l_strTargetGuid)}oGoSubject.processRequest()}function goListingByTag(p_strTag,p_oTag,p_strVm,p_strAppGuid,p_CloudMax,p_CloudExp,p_CloudMin){oGoTag=new upActionControl();oGoTag=oGoTag.biDirectUpHtml(oGoTag,p_oTag.id);var oTagFup=oHtmlRoot.oUp.getFup(Helper.getFupId(p_oTag));if(typeof(oTagFup)=="object"&&oTagFup!=null){oGoTag.oFup=oTagFup}oGoTag.oSource=new upSource();oGoTag.oSource.fr_ActionId="actNone";oGoTag.oTarget=new upTarget();if(self.oUp&&self.oUp.upType=="upPopUpWindow"){oGoTag.oTarget.rq_Template="internal/layout/vm/html/"+oHtmlRoot.oUp.oFormatInfo.layoutDir+"/frames/popup.vm";oGoTag.oTarget.addParam=Helper.setQsValueByParam("rq_LoadStaticVm","internal/system/vm/html/tagging/"+p_strVm+".vm",oGoTag.oTarget.addParam)}else{if(p_strAppGuid){oGoTag.oTarget.rq_AppGuid=p_strAppGuid;oGoTag.oTarget.addParam=Helper.setQsValueByParam("rq_appscope","1",oGoTag.oTarget.addParam);oGoTag.oTarget.addParam=Helper.setQsValueByParam("rq_LoadStaticVm","internal/system/vm/html/tagging/"+p_strVm+".vm",oGoTag.oTarget.addParam)}else{oGoTag.oTarget.rq_Template="internal/layout/vm/html/"+oHtmlRoot.oUp.oFormatInfo.layoutDir+"/frames/include.vm";oGoTag.oTarget.addParam=Helper.setQsValueByParam("rq_VM","internal/system/vm/html/tagging/"+p_strVm+".vm",oGoTag.oTarget.addParam)}}oGoTag.oTarget.addParam=Helper.setQsValueByParam("rq_Tag",p_strTag,oGoTag.oTarget.addParam);oGoTag.oTarget.addParam=Helper.setQsValueByParam("rq_CloudMax",p_CloudMax,oGoTag.oTarget.addParam);oGoTag.oTarget.addParam=Helper.setQsValueByParam("rq_CloudExp",p_CloudExp,oGoTag.oTarget.addParam);oGoTag.oTarget.addParam=Helper.setQsValueByParam("rq_CloudMin",p_CloudMin,oGoTag.oTarget.addParam);oGoTag.processRequest()}function goUser(p_lUserId,p_oTag,p_strAppGuid,p_CloudMax,p_CloudExp,p_CloudMin){oGoUser=new upActionControl();oGoUser=oGoUser.biDirectUpHtml(oGoUser,p_oTag.id);oGoUser.linkType="2";var oTagFup=oHtmlRoot.oUp.getFup(Helper.getFupId(p_oTag));if(typeof(oTagFup)=="object"&&oTagFup!=null){oGoUser.oFup=oTagFup}oGoUser.oSource=new upSource();oGoUser.oSource.fr_ActionId="actNone";oGoUser.oTarget=new upTarget();if(self.oUp&&self.oUp.upType=="upPopUpWindow"){oGoUser.oTarget.rq_Template="internal/layout/vm/html/"+oHtmlRoot.oUp.oFormatInfo.layoutDir+"/frames/popup.vm";oGoUser.oTarget.addParam=Helper.setQsValueByParam("rq_LoadStaticVm","internal/system/vm/html/tagging/listingByUser.vm",oGoUser.oTarget.addParam)}else{if(p_strAppGuid){oGoUser.oTarget.rq_AppGuid=p_strAppGuid;oGoUser.oTarget.addParam=Helper.setQsValueByParam("rq_appscope","1",oGoUser.oTarget.addParam);oGoUser.oTarget.addParam=Helper.setQsValueByParam("rq_LoadStaticVm","internal/system/vm/html/tagging/listingByUser.vm",oGoUser.oTarget.addParam)}else{oGoUser.oTarget.rq_Template="internal/layout/vm/html/"+oHtmlRoot.oUp.oFormatInfo.layoutDir+"/frames/include.vm";oGoUser.oTarget.addParam=Helper.setQsValueByParam("rq_VM","internal/system/vm/html/tagging/listingByUser.vm",oGoUser.oTarget.addParam)}}oGoUser.oTarget.addParam=Helper.setQsValueByParam("rq_TaggerId",p_lUserId,oGoUser.oTarget.addParam);oGoUser.oTarget.addParam=Helper.setQsValueByParam("rq_CloudMax",p_CloudMax,oGoUser.oTarget.addParam);oGoUser.oTarget.addParam=Helper.setQsValueByParam("rq_CloudExp",p_CloudExp,oGoUser.oTarget.addParam);oGoUser.oTarget.addParam=Helper.setQsValueByParam("rq_CloudMin",p_CloudMin,oGoUser.oTarget.addParam);oGoUser.processRequest()}function goUri(p_strUri,p_strAlias,p_oTag,p_strAppGuid,p_CloudMax,p_CloudExp,p_CloudMin){oGoUri=new upActionControl();oGoUri=oGoUri.biDirectUpHtml(oGoUri,p_oTag.id);oGoUri.linkType="2";var oTagFup=oHtmlRoot.oUp.getFup(Helper.getFupId(p_oTag));if(typeof(oTagFup)=="object"&&oTagFup!=null){oGoUri.oFup=oTagFup}oGoUri.oSource=new upSource();oGoUri.oSource.fr_ActionId="actNone";oGoUri.oTarget=new upTarget();if(self.oUp&&self.oUp.upType=="upPopUpWindow"){oGoUri.oTarget.rq_Template="internal/layout/vm/html/"+oHtmlRoot.oUp.oFormatInfo.layoutDir+"/frames/popup.vm";oGoUri.oTarget.addParam=Helper.setQsValueByParam("rq_LoadStaticVm","internal/system/vm/html/tagging/listingByUri.vm",oGoUri.oTarget.addParam)}else{if(p_strAppGuid){oGoUri.oTarget.rq_AppGuid=p_strAppGuid;oGoUri.oTarget.addParam=Helper.setQsValueByParam("rq_appscope","1",oGoUri.oTarget.addParam);oGoUri.oTarget.addParam=Helper.setQsValueByParam("rq_LoadStaticVm","internal/system/vm/html/tagging/listingByUri.vm",oGoUri.oTarget.addParam)}else{oGoUri.oTarget.rq_Template="internal/layout/vm/html/"+oHtmlRoot.oUp.oFormatInfo.layoutDir+"/frames/include.vm";oGoUri.oTarget.addParam=Helper.setQsValueByParam("rq_VM","internal/system/vm/html/tagging/listingByUri.vm",oGoUri.oTarget.addParam)}}oGoUri.oTarget.addParam=Helper.setQsValueByParam("rq_Uri",p_strUri,oGoUri.oTarget.addParam);oGoUri.oTarget.addParam=Helper.setQsValueByParam("rq_Alias",p_strAlias,oGoUri.oTarget.addParam);oGoUri.oTarget.addParam=Helper.setQsValueByParam("rq_CloudMax",p_CloudMax,oGoUri.oTarget.addParam);oGoUri.oTarget.addParam=Helper.setQsValueByParam("rq_CloudExp",p_CloudExp,oGoUri.oTarget.addParam);oGoUri.oTarget.addParam=Helper.setQsValueByParam("rq_CloudMin",p_CloudMin,oGoUri.oTarget.addParam);oGoUri.processRequest()}function taggingReloadContainer(p_oContainer,p_strVM,p_oReqParams){var l_oSC=new upSimpleAjaxContainer(p_oContainer,{oRqParams:p_oReqParams});l_oSC.loadStaticVm(p_strVM,{rq_xhrReload:"1"})};
