HelperMain.prototype.event=new upEventHelper(this);HelperMain.prototype.dbconflict=new upDbConflictHelper(this);HelperMain.prototype.effect=function(){return ObjectFactory.construct("upEffectHelper",Helper)};HelperMain.prototype.lTrim=HelperLTrim;HelperMain.prototypehelpertrim=HelperRTrim;HelperMain.prototype.getUrlFromUpAction=HelperGetUrlFromUpAction;HelperMain.prototype.sendToClipboard=HelperSendToClipboard;HelperMain.prototype.mergeQueryStrings=HelperMergeQueryStrings;HelperMain.prototype.makeRegExpPattern=HelperMakeRegExpPattern;HelperMain.prototype.toRegExpString=HelperToRegExpString;HelperMain.prototype.getAbsBaseUrl=HelperGetAbsBaseUrl;HelperMain.prototype.xmlDecode=HelperXmlDecode;HelperMain.prototype.jsEncode=HelperJsEncode;HelperMain.prototype._jsEncode=Helper_JsEncode;HelperMain.prototype.makeArray=HelperMakeArray;HelperMain.prototype.isInteger=HelperIsInteger;HelperMain.prototype.replaceSubstring=HelperReplaceSubstring;HelperMain.prototype.parseFloat=HelperParseFloat;HelperMain.prototype.parseInt=HelperParseInt;HelperMain.prototype.setLayerText=HelperSetLayerText;HelperMain.prototype.disableRequired=funcHelperDisableRequired;HelperMain.prototype.compareValues=funcHelperCompareValues;HelperMain.prototype.resetDatapickerFields=funcHelperResetDatapickerFields;HelperMain.prototype.setValueToNA=funcHelperSetValueToNA;HelperMain.prototype.setElementVisibility=funcHelperSetElementVisibility;HelperMain.prototype.toggleElementVisibility=funcHelperToggleElementVisibility;HelperMain.prototype.setPickerColor=funcHelperColorPickerSetColor;HelperMain.prototype.getDateObject=HelperMainGetDateObject;HelperMain.prototype.getNumberObject=HelperMainGetNumberObject;HelperMain.prototype.getIntegerStringByLocal=HelperMainGetIntegerStringByLocal;HelperMain.prototype.getFloatStringByLocal=HelperMainGetFloatStringByLocal;HelperMain.prototype.getCurrencyStringByLocal=HelperMainGetCurrencyStringByLocal;HelperMain.prototype.getIntegerByLocalString=HelperMainGetIntegerByLocalString;HelperMain.prototype.getFloatByLocalString=HelperMainGetFloatByLocalString;HelperMain.prototype.getDateByIsoString=HelperMainGetDateByIsoString;HelperMain.prototype.getCurrencyByLocalString=HelperMainGetCurrencyByLocalString;HelperMain.prototype.toLocalString=HelperMainToLocalString;HelperMain.prototype.writeLocalString=HelperMainWriteLocalString;HelperMain.prototype.checkRequired=HelperMainCheckRequired;HelperMain.prototype.getLocalDurationString=HelperMainGetLocalDurationString;HelperMain.prototype.calculate=HelperMainCalculate;HelperMain.prototype.setFullDays=HelperMainSetFullDays;HelperMain.prototype.inking=HelperMainInking;HelperMain.prototype.inkingDate=HelperMainInkingDate;HelperMain.prototype.inkingString=HelperMainInkingString;HelperMain.prototype.getRow=HelperMainGetRow;HelperMain.prototype.getCol=HelperMainGetCol;HelperMain.prototype.makeAppRequest=HelperMainMakeAppRequest;HelperMain.prototype.colorPickerShow=colorPickerShow;HelperMain.prototype.createElement=HelperMainCreateElement;HelperMain.prototype.showTTP=HelperMainShowTTP;HelperMain.prototype.closeTTP=HelperMainCloseTTP;HelperMain.prototype.isTTPOpen=HelperMainIsTTPOpen;HelperMain.prototype.resizeByContent=HelperMainResizeByContent;HelperMain.prototype.removeChildNodes=HelperMainRemoveChildNodes;HelperMain.prototype.resetFavourites=HelperMainResetFavourites;HelperMain.prototype.safeEval=HelperMainSafeEval;HelperMain.prototype.getUniqueKey=upHelperMainGetUniqueKey;HelperMain.prototype.startTimer=HelperMainStartTimer;HelperMain.prototype.stopTimer=HelperMainStopTimer;HelperMain.prototype.parseXmlString=HelperMainParseXmlString;HelperMain.prototype.getHtmlByJsEventSupport=HelperMainGetHtmlByJsEventSupport;HelperMain.prototype._getHtmlByJsEventSupport=HelperMainGetHtmlByJsEventSupport_Inner;HelperMain.prototype.getH1=HelperMainGetH1;HelperMain.prototype._getH1=HelperMain_GetH1;function HelperMainGetH1(){try{if(ContainerAgent.getStageContainer()==null){return""}var oStage=ContainerAgent.getStageContainer();if(oStage.getElementsByTagName("h1").length==0){return""}var nHtml=oStage.getElementsByTagName("h1")[0];if(nHtml.nodeType==3){return nHtml.nodeValue}else{if(nHtml.hasChildNodes()){return this._getH1(nHtml)}else{return""}}}catch(e){return""}}function HelperMain_GetH1(nHtml){var text="";for(var i=0;i<nHtml.childNodes.length;i++){cNode=nHtml.childNodes[i];if(cNode.nodeType==3){text+=cNode.nodeValue}else{if(cNode.hasChildNodes()&&cNode.nodeName&&cNode.nodeName!="SCRIPT"){text+=this._getH1(cNode)}}}return text}function HelperMainGetHtmlByJsEventSupport(p_oHtml,p_strEvent){var l_aEvents=[];var l_Ret=false;switch(p_strEvent){case"onresize":l_aEvents=["a","address","b","big","blockquote","body","button","cite","code","dd","dfn","div","dl","dt","em","fieldset","form","frame","h1> to <h6","hr","i","img","input","kbd","label","legend","li","object","ol","p","pre","samp","select","small","span","strong","sub","sup","table","textarea","tt","ul","var"];break}if(typeof(p_oHtml)!="undefined"&&p_oHtml!=null&&l_aEvents.length>0){l_Ret=this._getHtmlByJsEventSupport(p_oHtml,l_aEvents)}return l_Ret}function HelperMainGetHtmlByJsEventSupport_Inner(p_oHtml,p_aEvents){if(p_aEvents.contains(p_oHtml.tagName.toLowerCase())){return p_oHtml}else{if(p_oHtml.parentNode){return this._getHtmlByJsEventSupport(p_oHtml.parentNode,p_aEvents)}else{return false}}}function HelperMainParseXmlString(p_strXml){if(window.ActiveXObject){var doc=new ActiveXObject("Microsoft.XMLDOM");doc.async="false";doc.loadXML(p_strXml)}else{var parser=new DOMParser();var doc=parser.parseFromString(p_strXml,"text/xml")}return doc.documentElement}function HelperMainStartTimer(p_strKey){if(typeof(this.aStopWatch)=="undefined"||this.aStopWatch==null){this.aStopWatch=[]}this.aStopWatch.push([new Date(),p_strKey||null])}function HelperMainStopTimer(p_bOut){var l_strRet="";if(typeof(this.aStopWatch)!="undefined"&&this.aStopWatch!=null&&this.aStopWatch.length>0){if(this.aStopWatch.length>1){for(var i=1;i<this.aStopWatch.length;i++){if(i>1){l_strRet+=" - "}if(this.aStopWatch[i][1]!=null){l_strRet+=" ("+this.aStopWatch[i][1]+") "}l_strRet+=((this.aStopWatch[i][0].getTime()-this.aStopWatch[0][0].getTime()))+" ms"}l_strRet+=" ==> "}var dtEnd=new Date();if(this.aStopWatch[0][1]!=null){l_strRet+=" ("+this.aStopWatch[0][1]+") "}l_strRet+=((dtEnd.getTime()-this.aStopWatch[0][0].getTime()))+" ms";this.aStopWatch=[]}if(p_bOut){if(typeof console!="undefined"&&console){console.log(l_strRet)}else{window.defaultStatus=l_strRet}}else{return l_strRet}}function HelperMainCreateElement(p_strEl,p_strId,p_strStyleClass,p_aStyles){if(arguments.length>=2){function _upCreateElement(doc){var newElement=doc.createElement(p_strEl);var newElementStyle=newElement.style;newElement.id=p_strId;if(typeof(p_strStyleClass)=="string"){newElement.className=p_strStyleClass}if(typeof(p_aStyles)=="object"){for(var l_Style in p_aStyles){if(l_Style=="zIndex"&&Browser.ie8up&&isNaN(p_aStyles[l_Style])){newElementStyle.l_Style=p_aStyles[l_Style]}else{newElementStyle[l_Style]=p_aStyles[l_Style]}}}return newElement}return _upCreateElement(this.oDoc)}return false}function upEventHelper(helper){this.oHlp=helper;this.oWin=this.oHlp.oWin;this.oDoc=this.oHlp.oDoc}upEventHelper.prototype.cancelBubble=upEventHelperCancelBubble;function upDbConflictHelper(helper){this.oHlp=helper;this.oWin=this.oHlp.oWin;this.oDoc=this.oHlp.oDoc;this.checkUpBySysidentAndObject=upDbConflictHelperCheckUpBySysidentAndObject}function HelperSetLayerText(p_LayerId,p_strText){if(document.all){this.oDoc.all[p_LayerId].innerHTML=p_strText}else{if(this.oDoc.getElementById){while(this.oDoc.getElementById(p_LayerId).childNodes.length>0){this.oDoc.getElementById(p_LayerId).removeChild(this.oDoc.getElementById(p_LayerId).firstChild)}var text=this.oDoc.createTextNode(p_strText);this.oDoc.getElementById(p_LayerId).appendChild(text)}}}function HelperParseFloat(strLocalFloat){var oFloat=new upFloatControl();return parseFloat(oFloat.toJSNumber(strLocalFloat))}function HelperParseInt(strLocalInt){var oInt=new upIntegerControl();return parseInt(oInt.toJSNumber(strLocalInt))}function HelperMainSafeEval(p_strCode,p_oWin){if(arguments.length<2){p_oWin=this.oWin}if(Browser.safari){p_oWin.setTimeout(""+p_strCode,0)}else{p_oWin.eval(p_strCode)}return true}function upHelperMainGetUniqueKey(p_strPre){if(arguments.length<1){p_strPre="ID_"}a=1+99999999*(Math.random());a=Math.round(a);return(p_strPre+a)}function HelperMainResetFavourites(p_strId,p_oConfirm){if(arguments.length==2){if(typeof(p_oConfirm)=="object"&&p_oConfirm.bConfirm&&typeof(p_oConfirm.oHtmlAction)=="object"){var rvDelete=p_oConfirm.oHtmlAction.oUp.confirmDelete(p_oConfirm.oHtmlAction,p_oConfirm.oEvent,self.oUp.oMessage.CONFIRM_DELETE_FAVOURITES);if(!rvDelete){return false}}}var l_bRet=new Boolean(false);if(typeof(oFavRegistry)!="object"){Loader.loadJsFileOnDemand("include/favourite.js")}if(typeof(oFavRegistry)=="object"){l_bRet=oFavRegistry.resetFavourites(p_strId)}return true}function HelperReplaceSubstring(p_strString,p_strSubstringFrom,p_strSubstringTo){var l_strStingOut="";if(!p_strString||p_strString==""){return""}else{var l_strString=p_strString.toString()}if(!p_strSubstringFrom||p_strSubstringFrom==""){return l_strString}else{var l_strSubstringFrom=p_strSubstringFrom.toString()}if(!p_strSubstringTo){l_strSubstringTo=""}else{var l_strSubstringTo=p_strSubstringTo.toString()}var l_lStartPos=0;var l_lEndPos=l_strString.indexOf(l_strSubstringFrom,0);while(l_lEndPos!=-1){for(var i=l_lStartPos;i<l_lEndPos;i++){l_strStingOut+=l_strString.charAt(i)}l_strStingOut+=l_strSubstringTo;l_lStartPos=l_lEndPos+l_strSubstringFrom.length;l_lEndPos=l_strString.indexOf(l_strSubstringFrom,l_lStartPos)}for(i=l_lStartPos;i<l_strString.length;i++){l_strStingOut+=l_strString.charAt(i)}return l_strStingOut}function HelperIsInteger(s){if(isNaN(parseInt(s,10))){return false}else{return true}}function HelperMakeArray(n){var arr=new Array(n+1);for(var i=1;i<=n;i++){arr[i]=0}return arr}function HelperXmlDecode(s){s=s.replace(/&quot;/g,'"');s=s.replace(/&gt;/g,">");s=s.replace(/&lt;/g,"<");s=s.replace(/&#x27;/g,"'");s=s.replace(/&amp;/g,"&");return s}function HelperJsEncode(s){var out=[];for(var i=0;i<s.length;i++){out.push(this._jsEncode(s.charAt(i)))}return out.join("")}function Helper_JsEncode(c){var out_c="";switch(c){case"'":out_c="\\'";break;case'"':out_c='\\"';break;case"\\":out_c="\\\\";break;case"\r":out_c="\\r";break;case"\n":out_c="\\n";break;default:out_c=c}return out_c}function HelperGetAbsBaseUrl(){var l_strUrl;if(typeof(oHtmlRoot.oUp.strAbsBaseUrl)=="string"&&oHtmlRoot.oUp.strAbsBaseUrl.length>0){l_strUrl=oHtmlRoot.oUp.strAbsBaseUrl}else{l_strUrl=this.oDoc.location.protocol+"//"+this.oWin.location.host+this.getBaseUrl()}return l_strUrl}function HelperLTrim(s){if(arguments.length==0||typeof(s)=="undefined"){return false}return s.replace(/^\s+/g,"")}function HelperRTrim(s){if(arguments.length==0||typeof(s)=="undefined"){return false}return s.replace(/\s+$/g,"")}function HelperGetUrlFromUpAction(p_oAct){var l_strText=new String("");if(typeof(p_oAct)=="object"&&(p_oAct.upType=="upTextActionControl"||p_oAct.upType=="upButtonControl"||p_oAct.upType=="upImageActionControl"||p_oAct.upType=="upActionControl")){p_oAct.setQueryString();l_strText=this.getAbsBaseUrl();l_strText+=(l_strText.indexOf("?")==-1)?"?":"&";l_strText+=p_oAct.QueryString}return l_strText}function HelperSendToClipboard(arg,props){var l_oProps={strMsgTitle:"Clipboard",strMsgBody:"Text copied to clipboard",bFallback:true,iTextHeight:10,iTextWidth:60,strTextStyles:"overflow:auto;"};for(var prop in props){l_oProps[prop]=props[prop]}if(arguments.length<1||arg==null){return false}var l_strText=new String("");var l_bRet=false;if(typeof(arg)=="object"&&(arg.upType=="upTextActionControl"||arg.upType=="upButtonControl"||arg.upType=="upImageActionControl"||arg.upType=="upActionControl")){l_strText=this.getUrlFromUpAction(arg)}else{if(typeof(arg)=="string"){l_strText=arg}}if(l_strText.length>0){if(window.clipboardData){window.clipboardData.setData("Text",l_strText);l_bRet=true}else{if(window.netscape){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");var str=Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);if(!str){return false}str.data=l_strText;var trans=Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable);if(!trans){return false}trans.addDataFlavor("text/unicode");trans.setTransferData("text/unicode",str,l_strText.length*2);var clipid=Components.interfaces.nsIClipboard;var clip=Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);if(!clip){return false}clip.setData(trans,null,clipid.kGlobalClipboard);l_bRet=true}catch(e){}}}}if(l_bRet){Notifier.status.notify(l_oProps.strMsgBody,l_oProps.strMsgTitle,"COPY_TO_CLIPBOARD_SUCCESS")}else{if(l_oProps.bFallback&&l_strText.length>0){var l_strText='<textarea id="ID_ClipboardText" style="'+l_oProps.strTextStyles+'" rows="'+l_oProps.iTextHeight+'" cols="'+l_oProps.iTextWidth+'">'+l_strText+"</textarea>";var l_oEntry=new upNotifierEntry_Status_Notify();l_oEntry.strText=l_strText;l_oEntry.addEventListener("afterload",new Function("var e=document.getElementById('ID_ClipboardText');if(e){e.select();}"));contentKey=Notifier.status.show(l_oEntry);l_bRet=true}}return l_bRet}function HelperMergeQueryStrings(string1,string2){if(arguments.length<1){return new String("")}else{if(arguments.length<2){return string1}}if(string2!=""){if(string2.indexOf("?")>-1&&string2.substring(0,1)=="?"){string2=string2.substring(1,string2.length)}var aQsPart;var aQsSearch=string2.split("&");for(var i=0,l=aQsSearch.length;i<l;i++){aQsPart=aQsSearch[i].split("=");string1=Helper.setQsValueByParam(aQsPart[0],decodeURIComponent(aQsPart[1]),string1,false)}}return string1}function HelperToRegExpString(strPattern){return strPattern.replace(/([\^\$\.\*\+\?\=\!\:\|\\\/\(\)\[\]\{\}])/g,"\\$1")}function HelperMakeRegExpPattern(strIn){var pattern=new Array();var c="";if(typeof strIn=="undefined"||strIn==""){return""}for(var i=0;i<strIn.length;i++){c=strIn.substr(i,1);if(c=="-"||c=="^"||c=="\\"||c=="$"||c=="*"||c=="."||c=="+"||c=="["||c=="]"||c=="|"){c="\\"+c}pattern.push(c)}return"^["+pattern.join("")+"]*$"}function funcHelperColorPickerSetColor(div_id,inp_id,color){var oDiv=this.oDoc.getElementById(div_id);if(oDiv&&oDiv!=null){if(color!=""){oDiv.style.backgroundColor=color;oDiv.style.backgroundImage=""}else{oDiv.style.backgroundColor="";oDiv.style.backgroundRepeat="repeat";oDiv.style.backgroundPosition="center";oDiv.style.backgroundImage="url(images/assets/common/colorpicker_transparent.png)"}}if(this.oDoc.getElementById(inp_id)){this.oDoc.getElementById(inp_id).value=color}}function funcHelperDisableRequired(p_oHtml){if(p_oHtml!=null&&p_oHtml.oUp){p_oHtml.oUp.required="0";return true}else{return false}}function funcHelperCompareValues(oHtmlField1,oHtmlField2){if(oHtmlField1!=null&&oHtmlField2!=null&&oHtmlField1.oUp&&oHtmlField2.oUp&&oHtmlField1.oUp.upType==oHtmlField2.oUp.upType){if(oHtmlField1.oUp.upType=="upDateControl"||oHtmlField1.oUp.upType=="upTimeControl"||oHtmlField1.oUp.upType=="upDateTimeControl"){var oDate1=new Date();var oDate2=new Date();l_strDate1=trim(Browser.getValue(oHtmlField1.oUp));l_strDate2=trim(Browser.getValue(oHtmlField2.oUp));if(l_strDate1!=""&&l_strDate2!=""){oDate1=oHtmlField1.oUp.setDateObjectFromLocal(l_strDate1);oDate2=oHtmlField2.oUp.setDateObjectFromLocal(l_strDate2);if(Date.parse(oDate1)==Date.parse(oDate2)){return 1}else{if(Date.parse(oDate1)>Date.parse(oDate2)){return 2}else{return 0}}}}else{if(oHtmlField1.oUp.upType=="upFloatControl"||oHtmlField1.oUp.upType=="upIntegerControl"||oHtmlField1.oUp.upType=="upCurrencyControl"){var number1=oHtmlField1.oUp.toJSNumber(trim(Browser.getValue(oHtmlField1.oUp)));var number2=oHtmlField2.oUp.toJSNumber(trim(Browser.getValue(oHtmlField2.oUp)));if(!isNaN(number1)&&!isNaN(number2)){if(number1==number2){return 1}else{if(number1>number2){return 2}else{return 0}}}}}}return -1}function funcHelperResetDatapickerFields(l_oDatapicker,l_aFields){if(l_oDatapicker.selectedIndex<=0){for(var fieldId in l_aFields){if(l_aFields[fieldId]!=null&&typeof l_aFields[fieldId]=="object"){l_aFields[fieldId].value=""}}}}function funcHelperSetValueToNA(p_oHtml,p_oText){if(p_oHtml!=null&&p_oHtml.oUp&&trim(Browser.getValue(p_oHtml.oUp))==""){var out=new String();if(arguments.length>=2){out=p_oText}else{if(p_oHtml.oUp.upType=="upFloatControl"||p_oHtml.oUp.upType=="upIntegerControl"||p_oHtml.oUp.upType=="upCurrencyControl"){out=p_oHtml.oUp.toLocalFormat("0")}}Browser.setValue(p_oHtml.oUp,out)}}function funcHelperToggleElementVisibility(p_strElement){if(typeof(p_strElement)=="string"&&this.oDoc.getElementById(p_strElement)){this.oWin.Helper.setElementVisibility((this.oDoc.getElementById(p_strElement).style.visibility=="hidden"||this.oDoc.getElementById(p_strElement).style.display=="none"),p_strElement)}else{if(typeof(p_strElement)=="object"){this.oWin.Helper.setElementVisibility((p_strElement.style.visibility=="hidden"||p_strElement.style.display=="none"),p_strElement)}}}function funcHelperSetElementVisibility(p_bVisible,p_strElement,p_bKeepPlaceFree){if(arguments.length>=2&&p_strElement!=null){var oElement;if(this.oDoc.getElementById(p_strElement)!=null){oElement=this.oDoc.getElementById(p_strElement)}else{if(typeof(p_strElement)=="object"){oElement=p_strElement}else{return false}}if(p_bVisible){oElement.style.visibility="visible";oElement.style.display=""}else{oElement.style.visibility="hidden";if(!p_bKeepPlaceFree||p_bKeepPlaceFree==null){oElement.style.display="none"}}}else{return false}}function colorPickerShow(html,form,fup,color,onchange){this.showTTP(html,fup,"oTTP_CalColorChooser",{rq_LoadStaticVm:"internal/system/vm/html/misc/colorchooser.vm",rq_formName:form.name,rq_field:color.name,rq_Fup:fup.id,rq_ShowNoColor:"1",rq_TTP:"oTTP_CalColorChooser",rq_showclosewin:"0",rq_customOnChange:onchange},{bHasHeader:true})}function HelperMainShowTTP(p_oHtml,p_oFup,p_strTTP,p_oAddParams,p_oTTPProps,p_oTTPContentProps){if(arguments.length<4){return false}if(typeof(p_strTTP)!="string"||p_strTTP==null){var dt=new Date();p_strTTP="oTTP_"+dt.getTime()}else{if(this.isTTPOpen(p_strTTP)){this.closeTTP(p_strTTP)}}if(typeof(p_oFup)!="object"||p_oFup==null){p_oFup=oHtmlRoot.oUp.getFup(this.getFupId(p_oHtml))}var l_strAction=p_strTTP+"_Action";this.oWin[l_strAction]=new upActionControl();this.oWin[l_strAction].oHtml=p_oHtml||new Object();this.oWin[l_strAction].linkType="0";if(p_oFup&&p_oFup!=null&&typeof(p_oFup)=="object"){this.oWin[l_strAction].oFup=p_oFup;p_oFup.aObjects.push(this.oWin[l_strAction])}this.oWin[l_strAction].oTarget=new this.oWin.upTarget();var ev=this.oWin.eval("typeof("+p_strTTP+")");if(ev!="object"&&ev!=null){this.oWin.eval("window."+p_strTTP+"={}")}if(this.oWin[l_strAction].oToolTipPopup==null){this.oWin[p_strTTP]=new upToolTipPopup(this.oWin[l_strAction],p_strTTP);var bModal=false;var bMouse=false;var bWindow=false;if(p_oTTPContentProps!=null&&typeof(p_oTTPContentProps)=="object"){if(p_oTTPContentProps.bModal){bModal=true}else{if(p_oTTPContentProps.bMouse){bMouse=true}else{if(p_oTTPContentProps.bWindow){bWindow=true}}}}if(bModal){this.oWin[p_strTTP].oNotifierEntry=new upPopupEntry_Modal();this.oWin[p_strTTP].oNotifierEntry.bCloseButton=true;this.oWin[p_strTTP].oNotifierEntry.bCloseByKey=true}else{if(bWindow){this.oWin[p_strTTP].oNotifierEntry=new upPopupEntry_Window()}else{if(bMouse||p_oHtml==null||!p_oHtml){this.oWin[p_strTTP].oNotifierEntry=new upPopupEntry_Mouse()}else{this.oWin[p_strTTP].oNotifierEntry.oPosition.oElement=(typeof(p_oHtml)=="object"&&p_oHtml!=null)?p_oHtml:p_oFup.oHtml}}}}this.oWin[l_strAction].oTarget.rq_Template="internal/layout/vm/html/"+oHtmlRoot.oUp.oFormatInfo.layoutDir+"/frames/tooltippopup.vm";this.oWin[l_strAction].oTarget.bToolTipPopup=true;for(var param in p_oAddParams){if(typeof(p_oAddParams[param])=="string"){if(param=="rq_RecId"){this.oWin[l_strAction].oTarget.rq_RecId=p_oAddParams[param]}else{this.oWin[l_strAction].oTarget.addParam=Helper.setQsValueByParam(param,p_oAddParams[param],this.oWin[l_strAction].oTarget.addParam)}}}if(p_oTTPProps!=null){for(var prop in p_oTTPProps){this.oWin[p_strTTP][prop]=p_oTTPProps[prop]}}if(p_oTTPContentProps!=null&&this.oWin[p_strTTP].oNotifierEntry){this.oWin[p_strTTP].oNotifierEntry;for(var name in p_oTTPContentProps){switch(name){case"positionHandling":this.oWin[p_strTTP].oNotifierEntry.oPosition.strOrientation=p_oTTPContentProps[name];break;case"height":case"width":if(typeof(p_oTTPContentProps.width)!="undefined"&&typeof(p_oTTPContentProps.height)!="undefined"){this.oWin[p_strTTP].oNotifierEntry.addMeasure(new upTooltipMeasure({strMeasure:"fix",iWidth:p_oTTPContentProps.width,iHeight:p_oTTPContentProps.height}))}else{var propName=("i"+name.charAt(0).toUpperCase()+name.substr(1,name.length));var oMeasureProps={strMeasure:"fix"};oMeasureProps[propName]=p_oTTPContentProps[name];this.oWin[p_strTTP].oNotifierEntry.addMeasure(new upTooltipMeasure(oMeasureProps))}break;default:this.oWin[p_strTTP].oNotifierEntry[name]=p_oTTPContentProps[name]}}}if(typeof(this.oWin[l_strAction].oTarget.rq_RecId)!="string"||this.oWin[l_strAction].oTarget.rq_RecId==""){this.oWin[l_strAction].oTarget.rq_RecId="-1"}this.oWin[l_strAction].processRequest();return p_strTTP}function HelperMainCloseTTP(p_strTTP){if(arguments.length<1||p_strTTP==null){return false}if(typeof(this.oWin[p_strTTP])=="object"&&this.oWin[p_strTTP]!=null&&this.oWin[p_strTTP].oActionControl){var a=this.oWin[p_strTTP].oActionControl;this.oWin[p_strTTP].closePopup()}}function HelperMainIsTTPOpen(p_strTTP){var l_bRet=false;if(arguments.length>0||p_strTTP==null){if(oHtmlRoot.oUp.oRegistry.oToolTipPopupReg[p_strTTP]){l_bRet=true}}return l_bRet}function HelperMainResizeByContent(p_oWindow){if(arguments.length<1||!p_oWindow||p_oWindow==null){return false}if(!p_oWindow.style&&p_oWindow==this.oWin.top){if(p_oWindow.oUp&&p_oWindow.oUp.upType=="upPopUpWindow"){p_oWindow.oUp.resizeByContent()}}else{if(p_oWindow.style){if(Browser.firefox){var iFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1];var ffEH=parseFloat(iFFVersion)>=0.1?3:0}else{var ffEH=0}var l_iWidth=l_iHeight=0;if(p_oWindow.contentDocument){if(p_oWindow.contentDocument.body.scrollWidth){l_iWidth=p_oWindow.contentDocument.body.scrollWidth}else{if(p_oWindow.contentDocument.body.offsetWidth){l_iWidth=(p_oWindow.contentDocument.body.offsetWidth)}}}else{if(p_oWindow.Document&&p_oWindow.Document.body.scrollWidth){l_iWidth=(p_oWindow.Document.body.scrollWidth)}}if(p_oWindow.contentDocument){if(p_oWindow.contentDocument.body.scrollHeight){l_iHeight=p_oWindow.contentDocument.body.scrollHeight}else{if(p_oWindow.contentDocument.body.offsetHeight){l_iHeight=(p_oWindow.contentDocument.body.offsetHeight+ffEH)}}}else{if(p_oWindow.Document&&p_oWindow.Document.body.scrollHeight){l_iHeight=(p_oWindow.Document.body.scrollHeight)}}if(l_iWidth>0&&l_iHeight>0){p_oWindow.style.width=l_iWidth+"px";p_oWindow.style.height=l_iHeight+"px"}}}}function HelperMainRemoveChildNodes(p_oHtml,p_oFup){var bUnhook=(arguments.length==2&&typeof(p_oFup)=="object");while(p_oHtml.firstChild!=null&&p_oHtml.childNodes.length>0){if(p_oHtml.firstChild.childNodes.length>0){this.removeChildNodes(p_oHtml.firstChild,p_oFup)}if(bUnhook&&p_oHtml.firstChild.oUp&&p_oHtml.firstChild.oUp!=null){p_oFup.unhookObject(p_oHtml.firstChild)}p_oHtml.removeChild(p_oHtml.firstChild)}}function HelperMainGetDateObject(oHtml){if(!oHtml||!oHtml.oUp||oHtml.value==""){return null}return oHtml.oUp.setDateObjectFromLocal(oHtml.value)}function HelperMainGetNumberObject(oHtml){if(!oHtml||!oHtml.oUp||oHtml.value==""){return null}return oHtml.oUp.toJSNumber(oHtml.value)}function HelperMainGetIntegerStringByLocal(strValue){var oInt=new this.oWin.upIntegerControl();return new String(oInt.toJSNumber(strValue))}function HelperMainGetFloatStringByLocal(strValue){var oFloat=new this.oWin.upFloatControl();return new String(oFloat.toJSNumber(strValue))}function HelperMainGetCurrencyStringByLocal(strValue){var oCurr=new this.oWin.upCurrencyControl();return new String(oCurr.toJSNumber(strValue))}function HelperMainGetIntegerByLocalString(strValue){var oInt=new this.oWin.upIntegerControl();return oInt.toJSNumber(strValue)}function HelperMainGetFloatByLocalString(strValue){var oFloat=new this.oWin.upFloatControl();return oFloat.toJSNumber(strValue)}function HelperMainGetDateByIsoString(strValue){var oDateTime=new upDateTimeControl();return oDateTime.setDateObjectFromISO(strValue)}function HelperMainGetCurrencyByLocalString(strValue){var oCurr=new this.oWin.upCurrencyControl();return oCurr.toJSNumber(strValue)}function HelperMainToLocalString(oHtml,Value){if(arguments.length<2||!oHtml||!oHtml.oUp){return null}return oHtml.oUp.toLocalFormat(Value)}function HelperMainWriteLocalString(p_oHtml,p_value,p_bFireEvent){if(arguments.length<2||!p_oHtml||!p_oHtml.oUp){return false}this.oWin.Browser.setValue(p_oHtml.oUp,p_oHtml.oUp.toLocalFormat(p_value),null,(typeof p_bFireEvent=="boolean")?p_bFireEvent:true);return true}function HelperMainCheckRequired(oHtml,strMessage){if(!oHtml||!oHtml.oUp){return false}if(arguments.length<2){strMessage=""}if(!oHtml||!oHtml.oUp){return false}return oHtml.oUp.validateRequired(strMessage)}function HelperMainGetLocalDurationString(oHtmlDateFrom,oHtmlDateTo){if(!oHtmlDateFrom||!oHtmlDateFrom.oUp||!oHtmlDateTo||!oHtmlDateTo.oUp){return false}var iDiff=Date.parse(Helper.getDateObject(oHtmlDateTo))-Date.parse(Helper.getDateObject(oHtmlDateFrom));var oDateDiff=new Date();oDateDiff.setTime(Math.abs(iDiff));return oHtmlDateFrom.oUp.toLocalDurationString(oDateDiff)}function HelperMainCalculate(oHtml1,oHtml2,strOp,oHtmlResult){try{if(!oHtml1||!oHtml1.oUp||!oHtml2||!oHtml2.oUp||!strOp||!oHtmlResult||!oHtmlResult.oUp){return false}return oHtmlResult.oUp.calcValue("F"+oHtml1.name+"|"+strOp+"|F"+oHtml2.name)}catch(e){if(e instanceof upException){var toAlert=e.message;if(e.oControl&&e.oControl.userName&&e.oControl.userName!=""){toAlert=toAlert+"\n("+e.oControl.userName+")"}if(e.info&&e.info!=""){toAlert=toAlert+"\n("+e.info+")"}alert(toAlert)}else{alert(Browser.getExceptionMessage(e))}return false}}function HelperMainSetFullDays(oHtmlCheck,oHtmlFrom,oHtmlTo){if(!oHtmlCheck.checked){oHtmlFrom.disabled=false;oHtmlTo.disabled=false;return}if(oHtmlFrom.value==""){oFrom=new Date()}else{oFrom=oHtmlFrom.oUp.setDateObjectFromLocal(oHtmlFrom.value)}oFrom.setHours("00");oFrom.setMinutes("00");oFrom.setSeconds("00");oHtmlFrom.value=oHtmlFrom.oUp.toLocalFormat(oFrom);if(oHtmlTo.value==""){oTo=oHtmlTo.oUp.initDateObject();oTo.setDate(parseInt(oFrom.getDate(),10)+1);oTo.setMonth(oFrom.getMonth());oTo.setFullYear(oFrom.getFullYear())}else{oTo=Helper.getDateObject(oHtmlTo);if(!(oTo.getHours()=="00"&&oTo.getMinutes()=="00"&&oTo.getSeconds()=="00")){oTo.setDate(parseInt(oTo.getDate(),10)+1)}else{if(oFrom.getTime()==oTo.getTime()){oTo=oTo.add("d",1)}}}oTo.setHours("00");oTo.setMinutes("00");oTo.setSeconds("00");oHtmlTo.value=oHtmlTo.oUp.toLocalFormat(oTo);return}function HelperMainInking(control,op,comp,color,colored){var id,value;var oFloat=null;var idStart="ID_"+control;var spans=this.oDoc.getElementsByTagName("span");for(var i=0;i<spans.length;i++){span=spans[i];if(span.getAttribute("id")&&span.getAttribute("id").length>idStart.length){id=span.getAttribute("id");if(idStart==id.substring(0,idStart.length)){value=span.firstChild.nodeValue;flValue=Helper.getFloatStringByLocal(value);switch(colored){case"span":if(span.style){if(this.oWin.eval(flValue+op+comp)){span.style.backgroundColor=color}}break;case"cell":if(span.parentNode.nodeName.toLowerCase()=="td"&&span.parentNode.style){if(this.oWin.eval(flValue+op+comp)){span.parentNode.style.backgroundColor=color}}break;default:if(span.parentNode.parentNode.nodeName.toLowerCase()=="tr"&&span.parentNode.parentNode.style){if(this.oWin.eval(flValue+op+comp)){span.parentNode.parentNode.style.backgroundColor=color}}}}}}}function HelperMainInkingDate(control,op,type,color,colored){var id,value;var oDate=null;if(type=="date"){oDate=new this.oWin.upDateControl()}else{oDate=new this.oWin.upDateTimeControl()}this.oWin.oCompDate=new Date();if(type=="date"){this.oWin.oCompDate.setHours("00");this.oWin.oCompDate.setMinutes("00");this.oWin.oCompDate.setSeconds("00")}var idStart="ID_"+control;var spans=this.oDoc.getElementsByTagName("span");for(var i=0;i<spans.length;i++){span=spans[i];if(span.getAttribute("id")&&span.getAttribute("id").length>idStart.length){id=span.getAttribute("id");if(idStart==id.substring(0,idStart.length)){value=span.firstChild.nodeValue;this.oWin.oCellDate=oDate.setDateObjectFromLocal(value);switch(colored){case"span":if(span.style){if(this.oWin.eval("Date.parse(oCellDate)"+op+"Date.parse(oCompDate)")){span.style.backgroundColor=color}}break;case"cell":if(span.parentNode.nodeName.toLowerCase()=="td"&&span.parentNode.style){if(this.oWin.eval("Date.parse(oCellDate)"+op+"Date.parse(oCompDate)")){span.parentNode.style.backgroundColor=color}}break;default:if(span.parentNode.parentNode.nodeName.toLowerCase()=="tr"&&span.parentNode.parentNode.style){if(this.oWin.eval("Date.parse(oCellDate)"+op+"Date.parse(oCompDate)")){span.parentNode.parentNode.style.backgroundColor=color}}}}}}}function HelperMainInkingString(control,op,comp,color,colored){var id,value;var idStart="ID_"+control;var spans=this.oDoc.getElementsByTagName("span");for(var i=0;i<spans.length;i++){span=spans[i];if(span.getAttribute("id")&&span.getAttribute("id").length>idStart.length){id=span.getAttribute("id");if(idStart==id.substring(0,idStart.length)){value=Helper.trim(span.firstChild.nodeValue);if(this.oWin.eval("'"+value+"'"+op+"'"+comp+"'")){switch(colored){case"span":span.style.backgroundColor=color;break;case"cell":var td=this.getCol(span);td.style.backgroundColor=color;break;default:var tr=this.getRow(span);tr.style.backgroundColor=color}}}}}}function HelperMainGetRow(no){if(no.nodeName.toLowerCase()=="tr"){return no}else{if(no.parentNode){no=this.getRow(no.parentNode)}else{return null}}return no}function HelperMainGetCol(no){if(no.nodeName.toLowerCase()=="td"){return no}else{if(no.parentNode){no=this.getCol(no.parentNode)}else{return null}}return no}function HelperMainMakeAppRequest(p_strAppGuid,p_strTargetPageGuid,p_strRecId,p_bNewWindow,p_bClosePopup,p_bChangeParent){if(arguments.length<2){return false}if(arguments.length<4){p_bNewWindow=false}if(arguments.length<5){p_bClosePopup,p_bChangeParent=false}if(arguments.length<6){p_bChangeParent=false}var oAction=new this.oWin.upActionControl();oAction.oHtml=new Object();if(this.oWin&&this.oWin.oUp&&this.oWin.oUp.oFuncPart){oAction.oFup=this.oWin.oUp.oFuncPart}oAction.oTarget=new this.oWin.upTarget();oAction.oTarget.rq_AppGuid=p_strAppGuid;oAction.oTarget.rq_TargetPageGuid=p_strTargetPageGuid;oAction.oTarget.rq_RecId=(typeof(p_strRecId)!="undefined"&&p_strRecId!=null)?p_strRecId:"-1";if(this.oWin.opener&&this.oWin.opener.oUp){if(p_bChangeParent){oAction.changeParent="1"}if(p_bClosePopup){oAction.close="1"}}if(p_bNewWindow&&!p_bChangeParent){oAction.oTarget.newWindow="1";oAction.oTarget.rq_TemplateKey="popup";oAction.oTarget.windowSettings=BrowserGetOffsetWidth(this.oWin)+","+BrowserGetOffsetHeight(this.oWin)+",100,100,0"}else{oAction.setMenu();oAction.oTarget.rq_TemplateKey="stage";oAction.oTarget.rq_TargetFrame=WINDOW_INTREXX}oAction.processRequest()}function upEventHelperCancelBubble(e){if(e.cancelable){e.preventDefault()}if(e.stopPropagation){e.stopPropagation()}e.cancelBubble=true;if(e.preventDefault){e.preventDefault()}else{e.returnValue=false}}function upDbConflictHelperCheckUpBySysidentAndObject(p_strDBFieldSysident,p_oHtml,p_bOnlyNew){if(arguments.length<2||p_strDBFieldSysident==null||!p_oHtml||typeof(p_oHtml)!="object"||typeof(p_oHtml.oUp)!="object"||typeof(p_oHtml.oUp.upType)!="string"||!p_oHtml.form||!p_oHtml.form.oUp||!p_oHtml.form.oUp.oFuncPart){var l_oRet=new Object();l_oRet.bError=true;l_oRet.iErrorId=1;l_oRet.strErrorDesc="wrong type of arguments or missing argument";l_oRet.bConflict=false}else{if(p_oHtml.form.oUp.oFuncPart.recId!="-1"&&p_oHtml.form.oUp.oFuncPart.recId!=""&&p_bOnlyNew){var l_oRet=new Object();l_oRet.bError=false;l_oRet.iErrorId=-1;l_oRet.strErrorDesc="";l_oRet.bConflict=false}else{var l_oRet=new Object();l_oRet.bError=true;l_oRet.iErrorId=-1;l_oRet.strErrorDesc="unknown error";l_oRet.bConflict=false;window.retConflictCheckUp=l_oRet;var l_strValue=Browser.getValue(p_oHtml.oUp);if(l_strValue!=""){switch(p_oHtml.oUp.upType){case"upIntegerControl":case"upCurrencyControl":case"upFloatControl":case"upDateTimeControl":case"upDateControl":case"upTimeControl":l_strValue=Browser.getRawValue(p_oHtml.oUp);break}}var oXmlHttp=new this.oWin.upXmlHttp();oXmlHttp.strMethod="POST";var url=this.getBaseUrl();url=this.setUrlValueByParam("rq_Template","internal/system/vm/html/misc/getconflictBySysidentAndObject.vm",url);oXmlHttp.addPostData("fr_sysident",p_strDBFieldSysident);oXmlHttp.addPostData("fr_searchvalue",l_strValue.replace(/'/,"''"));oXmlHttp.addPostData("fr_appGuid",p_oHtml.form.oUp.oFuncPart.appGuid);oXmlHttp.addPostData("fr_fupGuid",p_oHtml.form.oUp.oFuncPart.guid);oXmlHttp.addPostData("fr_recid",p_oHtml.form.oUp.oFuncPart.recId);oXmlHttp.addPostData("fr_controlname",p_oHtml.name);oXmlHttp.bProcessResponse=true;oXmlHttp.processResponse=function(){if(oRequest.readyState==State.done){if(oRequest.status==Status.ok){var oXmlResponseDoc=oRequest.responseXML.documentElement;if(oXmlResponseDoc.getElementsByTagName("error").length>0){window.retConflictCheckUp.iErrorId=oXmlResponseDoc.getElementsByTagName("error")[0].attributes.getNamedItem("code").value;window.retConflictCheckUp.strErrorDesc=oXmlResponseDoc.getElementsByTagName("error")[0].firstChild.data}else{if(oXmlResponseDoc.getElementsByTagName("result").length>0){var l_iCount=oXmlResponseDoc.getElementsByTagName("result")[0].firstChild.data;if(!isNaN(l_iCount)){l_iCount=parseInt(l_iCount);if(l_iCount>0){window.retConflictCheckUp.bError=false;window.retConflictCheckUp.iErrorId=-1;window.retConflictCheckUp.strErrorDesc="";window.retConflictCheckUp.bConflict=true}else{window.retConflictCheckUp.bError=false;window.retConflictCheckUp.iErrorId=-1;window.retConflictCheckUp.strErrorDesc="";window.retConflictCheckUp.bConflict=false}}else{window.retConflictCheckUp.bError=true;window.retConflictCheckUp.iErrorId=2;window.retConflictCheckUp.strErrorDesc="returned resultcount is not a number";window.retConflictCheckUp.bConflict=false}}}return}else{window.retConflictCheckUp.iErrorId=oRequest.status;window.retConflictCheckUp.strErrorDesc="Http Error "+oRequest.status}}};oXmlHttp.bAsync=false;oXmlHttp.strUrl=url;oXmlHttp.send();return window.retConflictCheckUp}}return l_oRet}function HelperMainGetWeekNumber(p_oDate){if(!p_oDate||typeof(p_oDate)!="object"){return""}dowOffset=typeof(dowOffset)=="int"?dowOffset:0;var newYear=new Date(p_oDate.getFullYear(),0,1);var day=newYear.getDay()-dowOffset;day=(day>=0?day:day+7);var daynum=Math.floor((p_oDate.getTime()-newYear.getTime()-(p_oDate.getTimezoneOffset()-newYear.getTimezoneOffset())*60000)/86400000)+1;var weeknum;if(day<5){weeknum=Math.floor((daynum+day-1)/7)+1;if(weeknum>52){nYear=new Date(p_oDate.getFullYear()+1,0,1);nday=nYear.getDay()-dowOffset;nday=nday>=0?nday:nday+7;weeknum=nday<=4?1:53}}else{weeknum=Math.floor((daynum+day-1)/7);if(weeknum==0){return this.getWeekNumber(new Date(p_oDate.getFullYear()-1,11,31))}}return weeknum}function HelperMainDateAdd(p_strInterval,p_iNum,p_oDate){if(typeof p_oDate!="object"){return new Date()}if(!p_strInterval||p_iNum==0){return p_oDate}var dtTmp=new Date(p_oDate);switch(p_strInterval.toLowerCase()){case"ms":dtTmp.setMilliseconds(dtTmp.getMilliseconds()+p_iNum);break;case"s":dtTmp.setSeconds(dtTmp.getSeconds()+p_iNum);break;case"mi":dtTmp.setMinutes(dtTmp.getMinutes()+p_iNum);break;case"h":dtTmp.setHours(dtTmp.getHours()+p_iNum);break;case"d":dtTmp.setDate(dtTmp.getDate()+p_iNum);break;case"mo":dtTmp.setMonth(dtTmp.getMonth()+p_iNum);break;case"y":dtTmp.setFullYear(dtTmp.getFullYear()+p_iNum);break}return dtTmp}function HelperMainDateComparedToNow(p_oDate){if(p_oDate.oHtml){p_oDate=p_oDate.oHtml}if(p_oDate&&p_oDate.oUp&&(p_oDate.oUp.upType=="upDateTimeControl"||p_oDate.oUp.upType=="upDateControl"||p_oDate.oUp.upType=="upTimeControl")){if(p_oDate.oUp.upType=="upDateTimeControl"){var dCurrentDate=p_oDate.oUp.setDateObjectFromLocal(p_oDate.oUp.getCurrDate()+" "+p_oDate.oUp.getCurrTime())}else{var dCurrentDate=p_oDate.oUp.setDateObjectFromLocal(p_oDate.oUp.getCurrDate())}l_strDate=trim(Browser.getValue(p_oDate.oUp));var dInputDate=p_oDate.oUp.setDateObjectFromLocal(l_strDate);if(Date.parse(dCurrentDate)>Date.parse(dInputDate)){return 0}else{if(Date.parse(dCurrentDate)<Date.parse(dInputDate)){return 2}else{if(Date.parse(dCurrentDate)==Date.parse(dInputDate)){return 1}else{return -1}}}}else{return -1}}HelperMain.prototype.setCurrentDate=funcHelperSetCurrentDate;HelperMain.prototype.setDateTo=funcHelperSetDateTo;HelperMain.prototype.setDateFrom=funcHelperSetDateFrom;HelperMain.prototype.validateFromTo=funcHelperValidateFromTo;HelperMain.prototype.dateComparedToNow=HelperMainDateComparedToNow;HelperMain.prototype.dateAdd=HelperMainDateAdd;HelperMain.prototype.getWeekNumber=HelperMainGetWeekNumber;function funcHelperSetCurrentDate(p_oDate,p_bOverwrite){if(typeof p_oDate!="undefined"){if(p_bOverwrite||(!p_bOverwrite&&p_oDate.value=="")){p_oDate.oUp.setCurrent()}}return true}function funcHelperSetDateTo(p_oFieldFrom,p_oFieldTo,p_lMilli){p_oFieldFrom.oUp.format();if(arguments.length==3&&!isNaN(p_lMilli)){l_lMilli=p_lMilli}else{if(p_oFieldFrom.oUp.upType=="upDateControl"){l_lMilli=86400000}else{l_lMilli=3600000}}var dtFrom=p_oFieldFrom.oUp.setDateObjectFromLocal(p_oFieldFrom.value);var dtTo=p_oFieldTo.oUp.setDateObjectFromLocal(p_oFieldTo.value);if(p_oFieldFrom.value!=""&&(p_oFieldTo.value==""||dtFrom>dtTo)){p_oFieldTo.oUp.calcValue("F"+p_oFieldFrom.name+"|+|"+l_lMilli)}return true}function funcHelperSetDateFrom(p_oFieldFrom,p_oFieldTo,p_lMilli){p_oFieldTo.oUp.format();if(arguments.length==3&&!isNaN(p_lMilli)){l_lMilli=p_lMilli}else{if(p_oFieldFrom.oUp.upType=="upDateControl"){l_lMilli=86400000}else{l_lMilli=1800000}}var dtFrom=p_oFieldFrom.oUp.setDateObjectFromLocal(p_oFieldFrom.value);var dtTo=p_oFieldTo.oUp.setDateObjectFromLocal(p_oFieldTo.value);if(p_oFieldTo.value!=""&&(p_oFieldFrom.value==""||dtFrom>dtTo)){p_oFieldFrom.oUp.calcValue("F"+p_oFieldTo.name+"|-|"+l_lMilli)}return true}function funcHelperValidateFromTo(p_oFieldFrom,p_oFieldTo,p_bMsg){if(arguments.length<3){p_bMsg=true}if(p_oFieldFrom!=null&&p_oFieldTo!=null&&p_oFieldFrom.oUp!=null&&p_oFieldTo.oUp!=null){if(this.compareValues(p_oFieldFrom,p_oFieldTo)==2){if(p_bMsg){alert(self.oUp.oMessage.CAL_ERR_START_GREATER_THAN_END)}return false}else{return true}}return true};
