var gSite="http://www.wickedpad.com/";
function module(_1){
}
function keydownHandler(_2){
}
function hasClass(_3,_4){
var _5=false;
var re=new RegExp("\\b"+_4+"\\b");
if(_3&&_3.className&&_3.className.match(re)){
_5=true;
}
return _5;
}
function addClass(_7,_8){
if(_7){
_7.className+=(_7.className?" ":"")+_8;
}
}
function removeClass(_9,_a){
if(_9){
if("object"!=typeof (_9)||!_9.className){
return;
}
var oc=new RegExp("\\b"+_a+"\\b");
_9.className=_9.className.replace(oc,"");
}
}
function replaceClass(_c,_d,_e){
if(null!=_c){
if(hasClass(_c,_d)){
removeClass(_c,_d);
}
if(!hasClass(_c,_e)){
addClass(_c,_e);
}
}
}
function collapseMe(_f,_10,_11){
if(_f!=null){
if(_10){
if(hasClass(_f,"expanded")||hasClass(_f,"collapsed")){
var _12;
if(hasClass(_f,"expanded")){
_12="expanded";
}else{
if(hasClass(_f,"collapsed")){
_12="collapsed";
}
}
if(_12!=_11){
replaceClass(_f,_12,_11);
}
}else{
if(!_11){
_11="collapsed";
}
addClass(_f,_11);
}
return;
}else{
if(hasClass(_f,"expanded")){
replaceClass(_f,"expanded","collapsed");
return;
}else{
if(hasClass(_f,"collapsed")){
replaceClass(_f,"collapsed","expanded");
return;
}
}
}
if(!_11){
_11="collapsed";
}
collapseMe(_f.parentNode,_10,_11);
}
}
function isEmptyString(str){
var _14=false;
var _15=/\s/g;
if(str){
var _16=str.replace(_15,"");
if(0==_16.length){
_14=true;
}
}else{
_14=true;
}
return _14;
}
var gDialogManager=new (function(){
this.showHideFloatingPopup=function(_17,_18,_19,_1a,_1b){
var trg=document.getElementById(_18);
var _1d=document.getElementById(_19);
if((null!=trg)&&(null!=_1d)){
if(true==_17){
var _1e=0;
var _1f=0;
if(self.scrollHeight){
_1e=self.scrollWidth;
_1f=self.scrollHeight;
}else{
if(document.documentElement&&document.documentElement.scrollWidth){
_1e=document.documentElement.scrollWidth;
_1f=document.documentElement.scrollHeight;
}else{
if(document.body){
_1e=document.body.scrollWidth;
_1f=document.body.scrollHeight;
}
}
}
if((0!=_1e)&&(0!=_1f)){
trg.style.position="absolute";
trg.style.width=_1e+"px";
try{
if(document.body.scrollHeight){
if(_1f>document.body.scrollHeight){
trg.style.height=_1f+"px";
}else{
trg.style.height=document.body.scrollHeight+"px";
}
}else{
trg.style.height=_1f+"px";
}
}
catch(err){
trg.style.height=(_1f*4)+"px";
}
trg.style.left=""+0+"px";
trg.style.top=""+0+"px";
if(true==hasClass(trg,"collapsed")){
collapseMe(trg,true,"expanded");
}
if(true==hasClass(_1d,"collapsed")){
collapseMe(_1d,true,"expanded");
}
_1d.style.position="absolute";
_1b=_1b?null:_1b;
try{
gTools.centerFloat(_1d,_1a);
}
catch(err){
}
try{
ShowDropdowns(false,trg);
ShowHideDropdowns(_1d);
}
catch(err){
}
_1d.style.visibility="visible";
trg.style.visibility="visible";
}
}else{
trg.style.visibility="hidden";
_1d.style.visibility="hidden";
if(true==hasClass(_1d,"expanded")){
collapseMe(_1d,true,"collapsed");
}
if(true==hasClass(trg,"expanded")){
collapseMe(trg,true,"collapsed");
}
try{
ShowDropdowns(true,trg);
ShowDropdowns(true,_1d);
}
catch(err){
}
}
}
};
this.popupWidget=function(id){
this.uID=id;
this.bottomLeft="";
this.hasClose=true;
this.closeAction="";
this.hasOK=false;
this.okLabel="OK";
this.okAction="";
this.hasCancel=false;
this.cancelLabel="Cancel";
this.cancelAction="";
this.hasHelp=true;
this.helpID=0;
this.helpBk="top";
this.width=100;
this.htmlBody="";
this.htmlTitle="";
this.ready=false;
this.blurID=this.uID+"DlgOpac";
this.contentID=this.uID+"DlgContent";
this.waitDivID="waitDiv_"+this.uID;
this.canHidePopup=true;
this.bodycolor="white";
this._isDialogShown=false;
this._titleBGColor="#C7D2D7";
this._titleBGHeight=22;
this._BGColor="#E7EBF8";
this._borderColor="#CCCCCC";
this._ctrlRetAction=null;
this._focusElement=null;
this._initJSCode=null;
this._isWizard=false;
this._wizardManager=null;
this._wizardHandler=null;
this._hasForm=false;
this.dform=null;
this.setParams=function(){
var _21="";
for(i=0;i<arguments.length;){
switch(arguments[i++]){
case "style":
this.bodycolor=arguments[i++];
break;
case "body":
this.htmlBody=arguments[i++];
break;
case "title":
this.htmlTitle=arguments[i++];
break;
case "close":
this.hasClose=true;
this.closeAction=arguments[i++];
break;
case "noclose":
this.hasClose=false;
break;
case "ok":
this.hasOK=true;
this.okLabel=arguments[i++];
this.okAction=arguments[i++];
break;
case "cancel":
this.hasCancel=true;
this.cancelLabel=arguments[i++];
this.cancelAction=arguments[i++];
break;
case "help":
this.hasHelp=true;
this.helpID=arguments[i++];
this.helpBk=arguments[i++];
break;
case "hlp":
this.hasHelp=arguments[i++];
this.helpLink=arguments[i++];
break;
case "bottomLeft":
this.bottomLeft=arguments[i++];
break;
case "width":
this.width=arguments[i++];
break;
case "ctrl_ret":
this._ctrlRetAction=arguments[i++];
if(isEmptyString(this._ctrlRetAction)){
this._ctrlRetAction=this.okAction;
}
break;
case "form":
this._hasForm=true;
break;
case "focusElement":
this._focusElement=arguments[i++];
break;
case "init-JSCode":
this._initJSCode=arguments[i++];
break;
case "is-wizard":
this._isWizard=true;
this._wizardManager=arguments[i++];
break;
default:
try{
this[arguments[i-1]]=arguments[i++];
}
catch(e){
alert(e);
}
break;
}
}
};
this.init=function(_22,_23){
if(this.ready&&!_23){
return true;
}
var _24=document.getElementById(this.contentID);
if(null!=_24){
if(this._isWizard){
this._wizardHandler=new DialogWizard();
_24.innerHTML=this.createContentWizard();
}else{
_24.innerHTML=this.createContent();
}
if(!this.htmlBody||isEmptyString(this.htmlBody)){
var _25=document.getElementById(this.uID+"DlgContentDOM");
var _24=document.getElementById(this.uID+"ContentCover");
if(_25&&_24){
collapseMe(_25,true,"expanded");
_24.appendChild(_25);
}
}
this.ready=true;
}
if(_22){
var _24=document.getElementById(this.contentID);
collapseMe(_24,true,"expanded");
_24.style.visibility="visible";
}
if(this._hasForm&&_24){
this.dform=_24.getElementsByTagName("FORM")[0];
}
if(this._initJSCode){
eval(this._initJSCode);
}
};
this.showPopup=function(_26){
this.init();
this.canHidePopup=true;
gDialogManager.showHideFloatingPopup(true,this.blurID,this.contentID,this.width,_26);
this._isDialogShown=true;
var _27=null;
if(this._focusElement&&!isEmptyString(this._focusElement)){
_27=document.getElementById(this._focusElement);
if(_27){
try{
_27.focus();
}
catch(err){
}
}
}
if(this._isWizard){
this._wizardHandler.setDefaultState();
}
};
this.hide=this.hidePopup=this.cancel=function(_28){
if((this.canHidePopup)||(true==_28)){
gDialogManager.showHideFloatingPopup(false,this.blurID,this.contentID,this.width);
}
this.canHidePopup=true;
this._isDialogShown=false;
};
this.close=function(){
this.hide();
};
this.onOK=function(_29){
if(this.okAction&&!isEmptyString(this.okAction)){
eval(this.okAction);
}
if(_29){
}else{
this.hidePopup();
}
};
this.onCancel=function(_2a){
if(this.cancelAction&&!isEmptyString(this.cancelAction)){
eval(this.cancelAction);
}
if(_2a){
}else{
this.hidePopup();
}
};
this.createDefaultHTML=function(_2b){
var _2c;
_2c=document.createElement("DIV");
document.body.appendChild(_2c);
_2c.id=""+this.uID+"DlgOpac";
_2c.className="collapsed opc";
_2c=document.createElement("DIV");
document.body.appendChild(_2c);
_2c.id=""+this.uID+"DlgContent";
_2c.className="md collapsed";
_2c.style.width=""+_2b+"px";
_2c.style.visibility="hidden";
_2c.style.backgroundImage="url('"+gSite+"/images/dialogs/Body_"+_2b+".jpg')";
_2c.style.backgroundColor="#CACACA";
this.setParams("width",_2b);
};
this.createTitle=function(){
var _2d="";
var _2e=14;
if(350==this.width){
_2e=12;
}
_2d+="<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"width: 100%;\"> <tr> <td style=\"text-align: left; width: 100%; font-weight: bold; font-size: "+_2e+"px;\">"+this.htmlTitle+"</td>\n"+"<td align=\"right\" id=\"waitDiv_"+this.uID+"\" class=\"collapsed\"><img src=\""+gSite+"/images/Qtask-Bar-64.gif\"></td>";
if(this.hasClose){
_2d+="<td style=\"padding-left: 3px;\"> <img width=\"18\" height=\"18\" onclick=\""+this.closeAction+"gPop_"+this.uID+".hidePopup();\" style=\"cursor: pointer;\"\n"+"src=\""+gSite+"/images/quilt/"+this.dialogData["imgsclose"][0]+"\"\n"+" onmouseover=\"this.src='"+gSite+"/images/quilt/"+this.dialogData["imgsclose"][1]+"';\"\n"+"onmouseout=\"this.src='"+gSite+"/images/quilt/"+this.dialogData["imgsclose"][0]+"';\"\n"+"onmousedown=\"this.src='"+gSite+"/images/quilt/"+this.dialogData["imgsclose"][2]+"';\"\n"+"onmouseup=\"this.src='"+gSite+"/images/quilt/"+this.dialogData["imgsclose"][3]+"';\"> </td>";
}
_2d+="</tr></table>";
return _2d;
};
this.createContent=function(){
var _2f="";
this.dialogData={"gray":["/images/dialogs/Top_","/images/dialogs/Body_","/images/dialogs/Bottom_","/images/dialogs/Divider_"],"imgsclose":["Close.gif","CloseHighlight.gif","ClosePressed.gif","CloseHighlight.gif"],"imgshelp":["Help_Icon.jpg","Help_Icon_Highlight.jpg","Help_Icon_Depressed.jpg","Help_Icon.jpg"]};
this._style="gray";
this._height=350;
var _30=0;
this._ext=".jpg";
var _31=50;
var _32=30;
var _33=this.dialogData[this._style];
if(!this.htmlBody){
this.htmlBody="";
}
var _34="&nbsp;&nbsp;";
_2f+="<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"width: "+(this.width+_30)+"px; height: "+_31+"px; background-image: url("+gSite+_33[0]+this.width+this._ext+"); background-repeat: no-repeat; background-position: top;\">"+"<tr>"+"<td style=\"font-weight: bold; padding-top: 3px; padding-left: 6px;\"><div align=\"left\" style=\"width: 100%;\">"+this.htmlTitle+"</div></td>"+"<td align=\"right\" id=\"waitDiv_"+this.uID+"\" class=\"collapsed\"><img src=\""+gSite+"/images/Qtask-Bar-64.gif\"></td>"+"<td style=\"padding: 3px 6px 0px 3px;\" align=\"right\"> <img width=\"18\" height=\"18\" onclick=\""+this.closeAction+"gPop_"+this.uID+".hidePopup();\" style=\"cursor: pointer;\""+"src=\""+gSite+"/images/quilt/"+this.dialogData["imgsclose"][0]+"\"\n"+" onmouseover=\"this.src='"+gSite+"/images/quilt/"+this.dialogData["imgsclose"][1]+"';\""+"onmouseout=\"this.src='"+gSite+"/images/quilt/"+this.dialogData["imgsclose"][0]+"';\""+"onmousedown=\"this.src='"+gSite+"/images/quilt/"+this.dialogData["imgsclose"][2]+"';\""+"onmouseup=\"this.src='"+gSite+"/images/quilt/"+this.dialogData["imgsclose"][3]+"';\">"+"</td>"+"</tr>"+"<tr>"+"<td colspan=\"3\" style=\"vertical-align: middle;\" align=\"center\">"+((false==isEmptyString(this.bottomLeft))?this.bottomLeft:"&nbsp;")+"</td>"+"</tr>"+"</table>";
_2f+="<div valign=\"bottom\" style=\"width: "+(this.width+_30)+"px; line-height: 2px; height: 2px; overflow: hidden; background-repeat: no-repeat; background-image: url("+gSite+_33[3]+this.width+this._ext+");\"></div>";
_2f+="<div id=\""+this.uID+"ContentCoverFull\" style=\"width: "+(this.width+_30)+"px; background-repeat: repeat-y; background-position: top; overflow: hidden;\">";
_2f+="<div id=\""+this.uID+"ContentCover\" style=\"padding-top: 12px; padding-bottom: 12px; padding-left: 24px;  padding-right: 24px; \">";
_2f+=this.htmlBody;
_2f+="</div>";
_2f+="</div>";
_2f+="<div style=\"width: "+(this.width+_30)+"px; background-image: url("+gSite+_33[3]+this.width+this._ext+"); background-repeat: no-repeat; background-position: bottom; line-height: 2px; height: 2px;\"></div>";
_2f+="<table cellspacing=\"0\" cellpadding=\"0\" style=\"width: "+(this.width+_30)+"px; height: "+_32+"px; background-image: url("+gSite+_33[2]+this.width+this._ext+"); background-repeat: no-repeat; background-position: bottom;\" valign=\"middle\"><tr>";
_2f+="<td style=\"white-space: nowrap; padding-left: 18px;\" valign=\"middle\">";
if(this.hasHelp){
_2f+="<img"+(this.helpLink?" onclick=\"window.location='"+this.helpLink+"';\"":" onclick=\"popupHelp('"+this.helpID+"', '"+this.helpBk+"');\" style=\"cursor: pointer;\"")+"src=\""+gSite+"/images/dialogs/"+this.dialogData["imgshelp"][0]+"\""+" onmouseover=\"this.src='"+gSite+"/images/dialogs/"+this.dialogData["imgshelp"][1]+"';\"\n"+"onmouseout=\"this.src='"+gSite+"/images/dialogs/"+this.dialogData["imgshelp"][0]+"';\"\n"+"onmousedown=\"this.src='"+gSite+"/images/dialogs/"+this.dialogData["imgshelp"][2]+"';\"\n"+"onmouseup=\"this.src='"+gSite+"/images/dialogs/"+this.dialogData["imgshelp"][3]+"';\">";
}
_2f+=_34+"</td>";
_2f+="<td style=\"white-space: nowrap; width: 100%; padding-bottom: 2px;\" valign=\"middle\"> &nbsp; </td>";
_2f+="<td style=\"white-space: nowrap; padding-right: 18px; padding-bottom: 2px;\" valign=\"middle\">"+_34;
if(this.hasOK){
if(this._ctrlRetAction){
_2f+=this.ctrlReturnIcon();
}
_2f+=_34+"<input class=\"button-std\" type=\"button\" id=\""+this.uID+"OKButtonBottom\" value=\""+this.okLabel+"\" onclick=\"gPop_"+this.uID+".onOK();\" class=\"expanded\">";
}
if(this.hasCancel){
_2f+=_34+"<input class=\"button-std\" type=\"button\" id=\""+this.uID+"CancelButtonBottom\" value=\""+this.cancelLabel+"\" onclick=\"gPop_"+this.uID+".onCancel();\">";
}
_2f+="</td>";
_2f+="</tr></table>";
_2f+="</div>";
if(this._hasForm){
}
return _2f;
};
this.setOKState=function(_35){
var top=document.getElementById(this.uID+"OKButtonTop");
var _37=document.getElementById(this.uID+"OKButtonBottom");
var cls="expanded";
if(!_35){
cls="collapsed";
}
collapseMe(top,true,cls);
collapseMe(_37,true,cls);
};
this.setCancelText=function(_39){
var top=document.getElementById(this.uID+"CancelButtonTop");
var _3b=document.getElementById(this.uID+"CancelButtonBottom");
if(!_39){
_39=gLocale.Cancel;
}
if(top){
top.value=_39;
}
if(_3b){
_3b.value=_39;
}
};
this.ctrlReturnIcon=function(){
return "<div style=\"display: inline; vertical-align: bottom;\"><img height=\"13\" src=\"/images/ctrl_return"+(browser=="Internet Explorer"?".gif":".png")+"\"></div>";
};
this.cb_keyhandler=function(asc,_3d,_3e,alt,_40,obj,_42){
if(this.dialogObject._isDialogShown&&obj!=null&&_3e&&_42&&(asc==13||asc==10||asc==77)){
if(this.dialogObject._ctrlRetAction){
eval(this.dialogObject._ctrlRetAction);
}
}
};
var kh=new keydownHandler(this.cb_keyhandler);
kh.dialogObject=this;
this.searchOnEnterPress=function(e){
var _45;
try{
if(window.event){
_45=window.event.keyCode;
}else{
if(e){
_45=e.which;
}else{
return true;
}
}
if(13==_45){
this.onOK();
return false;
}
}
catch(err){
}
};
};
});
var HTMLWidgets=function(){
this.htmlVerticalSpace=function(_46,cls){
var _48="";
var _49=12;
if(true==_46){
_49=6;
}
_48+="<div ";
if(cls){
_48+=" class=\""+cls+"\" ";
}
_48+=" style=\"line-height:"+_49+"px;\">&nbsp;</div>";
return _48;
};
this.htmlRoundBox=function(){
this.dialogData={"gray_white_dropshadow":["Gray_UL.gif","Gray_UM.gif","Gray_UR.gif","Gray_ML.gif","Gray_MR.gif","GrayShadow_LL.gif","GrayShadow_LM.gif","GrayShadow_LR.gif"],"gray_white_dropshadow_color":"#FFFFFF","gray_white_wideshadow":["Wizard_UL.gif","Wizard_UM.gif","Wizard_UR.gif","Wizard_ML.gif","Wizard_MR.gif","Wizard_LL.gif","Wizard_LM.gif","Wizard_LR.gif"],"gray_white_wideshadow_color":"#FFFFFF","gray_white":["Gray_UL.gif","Gray_UM.gif","Gray_UR.gif","Gray_ML.gif","Gray_MR.gif","Gray_LL.gif","Gray_LM.gif","Gray_LR.gif"],"gray_white_color":"#FFFFFF","gray_gray":["Gray_UL.gif","Gray_UM.gif","Gray_UR.gif","Gray_ML.gif","Gray_MR.gif","Gray_LL.gif","Gray_LM.gif","Gray_LR.gif"],"gray_gray_color":"#EEEEEE","pink_pink":["Pink_UL.gif","Pink_UM.gif","Pink_UR.gif","Pink_ML.gif","Pink_MR.gif","Pink_LL.gif","Pink_LM.gif","Pink_LR.gif"],"pink_pink_color":"#FFF7EA","default":["Gray_UL.gif","Gray_UM.gif","Gray_UR.gif","Gray_ML.gif","Gray_MR.gif","Gray_LL.gif","Gray_LM.gif","Gray_LR.gif"],"defaultcolor":"#FFFFFF"};
this.create=function(_4a,_4b,_4c,_4d){
if(_4d){
_4d="_"+_4d;
}else{
_4d="";
}
var _4e,_4f;
try{
_4e=this.dialogData[_4b+"_"+_4c+_4d];
_4f=this.dialogData[_4b+"_"+_4c+_4d+"_"+"color"];
}
catch(err){
}
if(!_4e){
_4e=this.dialogData["default"];
}
if(!_4f){
_4f=this.dialogData["defaultcolor"];
}
var _50="";
_50+="<div class=\"roundbox\" style=\"width: 100%;\">\n"+"<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" style=\"empty-cells: show;\">\n"+"<tr>\n"+"<td width=\"5\"><img src=\"/images/"+_4e[0]+"\" /></td>\n"+"<td background=\"/images/"+_4e[1]+"\"> </td>\n"+"<td width=\"5\"><img src=\"/images/"+_4e[2]+"\" /></td>\n"+"</tr>\n"+"<tr>\n"+"<td width=\"5\" background=\"/images/"+_4e[3]+"\" > </td>\n"+"<td bgcolor=\""+_4f+"\">"+_4a+"</td>\n"+"<td width=\"5\" background=\"/images/"+_4e[4]+"\" > </td>\n"+"</tr>\n"+"<tr>\n"+"<td width=\"5\"><img src=\"/images/"+_4e[5]+"\"/></td>\n"+"<td background=\"/images/"+_4e[6]+"\"></td>\n"+"<td width=\"5\"><img src=\"/images/"+_4e[7]+"\"/></td>\n"+"</tr>\n"+"</table>\n"+"</div>";
return _50;
};
};
};
function format(t){
if(arguments.length>1){
var a,i;
a=t.split("%");
t="";
for(i=0;i<a.length;){
t+=a[i++];
if(i<a.length){
t+=(a[i]==""?"%":arguments[parseInt(a[i])]);
i++;
}
}
}
return t;
}
var gTools=new Tools();
function Tools(){
this.centerFloat=function(e){
var t=this.getWindowSize();
var w=(arguments.length>=2&&arguments[1]?arguments[1]:e.offsetWidth);
var h=(arguments.length>=3&&arguments[2]?arguments[2]:e.offsetHeight);
var x=Math.floor((t.w-w)/2)+this.getScrollLeft();
var y=Math.floor((t.h-h)/2)+this.getScrollTop();
if(arguments.length>=4&&arguments[3]){
if((t.h-h)<y){
y=this.getScrollTop();
}
}
if(x<0){
x=0;
}
if(y<0){
y=0;
}
e.style.left=""+x+"px";
e.style.top=""+y+"px";
};
this.getScrollTop=function(){
return (document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop);
};
this.getScrollLeft=function(){
return (document.documentElement&&document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft);
};
this.getWindowSize=function(){
var w=750,h=550;
if(typeof (self.innerWidth)=="number"){
w=self.innerWidth;
h=self.innerHeight;
}else{
if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){
w=document.documentElement.clientWidth;
h=document.documentElement.clientHeight;
}else{
if(document.body&&(document.body.clientWidth||document.body.clientHeight)){
w=document.body.clientWidth;
h=document.body.clientHeight;
}
}
}
return {"w":w,"h":h};
};
this.safeString=function(str){
if(typeof str=="string"){
return str;
}
if(str==0){
return "0";
}
if(!str){
return "";
}
return ""+str;
};
this.toQuoteHTML=function(str){
return this.safeString(str).replace(/"/g,"&quot;");
};
this.toTextbox=function(str){
var t=this.safeString(str);
t=t.replace(/</g,"&lt;");
t=t.replace(/>/g,"&gt;");
t=t.replace(/"/g,"&quot;");
return t;
};
this.toHTML=function(str){
var t=this.safeString(str);
t=t.replace(/</g,"&lt;");
t=t.replace(/>/g,"&gt;");
t=t.replace(/"/g,"&quot;");
t=t.replace(/\ \ /g," &nbsp;");
t=t.replace(/\n/g,"<br>");
return t;
};
this.styleSize=function(s){
return ""+(s<1?1:s)+"px";
};
this.bucket=function(_63){
if(!gTools.bucket_parse){
gTools.bucket_parse=RegExp("(.*)[[](.*)]");
}
this.arr=new Array();
this.free=new Array();
this.me=_63;
this.add=function(obj){
var num=(this.free.length>0?this.free.pop():this.arr.length);
obj.me=this.me+".arr["+num+"]";
this.arr[num]=obj;
};
this.remove=function(obj){
if(obj){
var n,t=gTools.bucket_parse.exec(obj.me);
if(t&&(t.length>=3)){
n=parseInt(t[2]);
if(!isNaN(n)){
this.free.push(n);
eval(obj.me+"=null;");
obj.me=null;
}
}
}
};
eval(_63+"= this");
};
this.ltrim=function(_69){
if(!this.re_ltrim){
this.re_ltrim=/\s*((\S+\s*)*)/;
}
return _69.replace(this.re_ltrim,"$1");
};
this.rtrim=function(_6a){
if(!this.re_rtrim){
this.re_rtrim=/((\s*\S+)*)\s*/;
}
return _6a.replace(this.re_rtrim,"$1");
};
this.trim=function(_6b){
return this.ltrim(this.rtrim(_6b));
};
}
function initPosition(_6c){
var _6d=_6c.value;
_6c.value="";
_6c.select();
var _6e=document.selection.createRange();
_6c.__boundingTop=_6e.boundingTop;
_6c.__boundingLeft=_6e.boundingLeft;
_6c.value=" ";
_6c.select();
_6e=document.selection.createRange();
_6c.__boundingWidth=_6e.boundingWidth;
_6c.__boundingHeight=_6e.boundingHeight;
_6c.value=_6d;
}
function storePosition(_6f){
var _70=document.selection.createRange();
var _71=(_70.offsetTop+_6f.scrollTop)-_6f.__boundingTop;
var _72=(_70.offsetLeft+_6f.scrollLeft)-_6f.__boundingLeft;
_6f.__Line=(_71/_6f.__boundingHeight)+1;
_6f.__Column=(_72/_6f.__boundingWidth)+1;
}
function updatePosition(_73){
storePosition(_73);
document.forms[0].txtLine.value=_73.__Line;
document.forms[0].txtColumn.value=_73.__Column;
}
function storeCaret(_74){
if(_74.createTextRange){
_74.caretPos=document.selection.createRange().duplicate();
}
}
function insertAtCaret(_75,_76){
if(_75.createTextRange&&_75.caretPos){
var _77=_75.caretPos;
_77.text=_77.text.charAt(_77.text.length-1)==" "?_76+" ":_76;
}else{
_75.value=_76;
}
}
var gHTMLWidgets=new HTMLWidgets();

