
vjo.ctype("vjo.dsf.document.Text").needs("vjo.dsf.Element").props({autoClear:function(_1){var o=vjo.dsf.Element.get(_1);if(o){if(o.defaultValue==o.value){o.value="";}}}}).endType();

vjo.ctype("vjo.darwin.core.memberbadge.MemberBadge").needs(["vjo.dsf.window.utils.VjWindow"]).props({openLink:function(_1){if(_1){var _2=_1;var _3=window.screen.width;vjo.dsf.window.utils.VjWindow.open(_1,"","width=440,height=500,resizable=yes,top=0,left="+(_3-450)+",location=no,menubar=no,scrollbars=no,status=no",false,false);return false;}}}).endType();

vjo.ctype("vjo.darwin.core.basememberbadge.BaseMemberBadge").needs(["vjo.dsf.window.utils.VjWindow"]).props({openLink:function(_1){if(_1){var _2=_1;var _3=window.screen.width;vjo.dsf.window.utils.VjWindow.open(_1,"","width=440,height=500,resizable=yes,top=0,left="+(_3-450)+",location=no,menubar=no,scrollbars=no,status=no",false,false);return false;}}}).endType();

vjo.ctype("vjo.darwin.core.cc.VjCharCounter").needs("vjo.dsf.typeextensions.string.TokenReplacement").needs("vjo.dsf.typeextensions.string.Comparison").needs("vjo.dsf.Element").protos({id:null,maxChars:0,noCharLeft:null,singleCharLeft:null,multipleCharsLeft:null,divId:null,alreadyCleared:false,bEuc:false,constructs:function(_1,_2,_3,_4,_5,_6){this.maxChars=_2;this.noCharLeft=_5[2];this.singleCharLeft=_5[1];this.multipleCharsLeft=_5[0];this.id=_3;this.divId=_4;this.alreadyCleared=false;this.bEuc=_6;this.updateDiv();return this;},checkMax:function(){var _7=vjo.dsf.Element.get(this.id);var _8=_7.value;var _9=this.determineLength(_8);var _a=this.maxChars;var _b=_a-_9;if(_9>_a){var _c=_7.scrollTop;var i=_a;if(_7.tagName.toLowerCase().indexOf("textarea")!=-1){i=i-this.getNoOfCRs(_8);if(_8.substr(i)!="\r\n"){i++;_7.value=_8.substr(0,i-1);}else{_7.value=_8.substr(0,i);}}
_7.scrollTop=_c;}
return _b;},getNoOfCRs:function(v){var _f=new RegExp("\r\n","g");var _10=v.match(_f);var l=0;if(_10!==null){var _12=_10.length;if(_12>=1){l=_12;}
return l-1;}
return l;},checkLength:function(v){var _14=0;if(!this.bEuc){return v.length;}
var _15=encodeURIComponent(v);if(_15.indexOf("%")!=-1){_14=_15.split("%").length-1;if(_14==0){_14++;}
var tmp=_15.length-(_14*3);_14=_14+tmp;}else{_14=_15.length;}
return _14;},determineLength:function(v){if(typeof(v)=="string"){var _18=new RegExp("\n","g");var _19=v.match(_18);var _1a=new RegExp("\r\n","g");var _1b=v.match(_1a);if(_19!=null&&_1b==null){var l=1;var _1d=_19.length;if(_1d>=1){l=_1d;}
v=v.replace(_18,"");l=l+this.checkLength(v);return l;}else{if(_1b!=null){var l=1;var _1d=_1b.length;if(_1d>=1){l=_1d*2;}
v=v.replace(_1a,"");l=l+this.checkLength(v);return l;}else{return this.checkLength(v);}}}
return 0;},updateDiv:function(){var _1e=vjo.dsf.Element.get(this.divId);var _1f=this.checkMax();var _20="";if(_1f<=0){_20=this.noCharLeft;}else{if(_1f==1){_20=this.singleCharLeft;}else{_20=this.multipleCharsLeft;}}
_1e.innerHTML=(_20.replaceTokensEx("##n##",_1f));}}).endType();

// en_CA/e685i/FeedbackApp_feedbackError_e685i11945596_6_en_CA
// b=11945596
