
// Generated by Intersoft Script Optimizer V1.5 + Intersoft JS Engine MaxObfuscate(tm) V1.0 
// Generated Datetime : 1/29/2010 6:03:51 PM
// Copyright (c) 2005 Intersoft Solutions.
// Unauthorized decryption/reproduction of any codes contained herein is strictly prohibited and will result in severe civil and criminal penalties .
//**Start Encode**
function HighLight(){ this.Type ="character"; this.AutoTabWhenFilled =true; this._InternalAutoTabWhenFilled =true; this.IsEnabled =this.IsSelected =true; this.invalidTextArray =new Array(); this.Idx =this.HIdx =undefined; this.Text =""; this.PromptString =" "; this.OnHighLighted =null; this.IsValidTextCustomFunction =null; this.OnPrepareHighLightFunction =null;}var wib0047 = { _c: null, _h: null, _idx: 0, _idxUp: 0,  m39f96:function(v76c91) { var v34f91 =v76c91.XmlDt.selectSingleNode("//HighLight"); if (v34f91 !=null) { v76c91.HighLight =new HighLight(); wib0047.m86378(v76c91.HighLight,v34f91); wib0047.m29d29(v76c91); } }, m29d29:function(v16391) { Listener.Add(v16391.HtmlObj,"ondragstart",function(){return false; }); Listener.Add(v16391.HtmlObj,"onfocus",wib0047.m93654); Listener.Add(v16391.HtmlObj,"onmouseup",wib0047.md6977); Listener.Add(v16391.HtmlObj,"onkeydown",wib0047.ma3a32);  if (IS.moz ||IS.safari ||IS.opera) Listener.Add(v16391.HtmlObj,"onkeyup",wib0047.mc9d97,v16391);  }, me7828:function(vdc591) { vdc591.HighLight._o =null; Listener.Remove(vdc591.HtmlObj,"ondragstart",function(){return false; }); Listener.Remove(vdc591.HtmlObj,"onfocus",wib0047.m93654); Listener.Remove(vdc591.HtmlObj,"onmouseup",wib0047.md6977); Listener.Remove(vdc591.HtmlObj,"onkeydown",wib0047.ma3a32);  if (IS.moz ||IS.safari ||IS.opera) Listener.Remove(vdc591.HtmlObj,"onkeyup",wib0047.mc9d97,vdc591);  }, m86378:function(v04b91,vd5c31) { IS.SetProperties(v04b91,vd5c31); v04b91.Type =v04b91.Type.toLowerCase(); }, OnKeyDown: function() { var v35091 =window.event.keyCode; if (wib0047._c !=null &&!wib0047._c.Enabled) { window.event.cancelBubble =true; window.event.returnValue =false; return false; } if (v35091 ==ISKeyboardKey.LEFT ||v35091 ==ISKeyboardKey.DELETE ||v35091 ==ISKeyboardKey.BACKSPACE) { wib0047._idx--; wib0047._idxUp =wib0047._idx; } else { if (v35091 ==ISKeyboardKey.RIGHT) wib0047._idx++; } }, m93654:function() { var va7391 =wib0047._c; if (va7391 !=null &&(!va7391.Enabled ||va7391.ReadOnly)) { if (window.event !=null) { window.event.cancelBubble =true; window.event.returnValue =false; } return false; } var v6ff31 =new Object(); if (!wib0047.m5dd79(v6ff31)) return false; v6ff31.c._JustFocused =true; window.setTimeout(function(){v6ff31.c._JustFocused =false; },200); },  md6977:function(v5db32,v70a57) { var v27965 =new Object(); var vbaf19 =null; var v36284 =wib0047._c; if (v36284 !=null &&(!v36284.Enabled ||v36284.ReadOnly)) { if (window.event !=null) { window.event.cancelBubble =true; window.event.returnValue =false; } return false; } if (wib0047._c !=null) { if (wib0047._c._IsActive) vbaf19 =wib0047._c.Id; if (window.event !=null) { if (window.event.button ==2 &&(v36284.InitialSelection ="SelectAll" &&v36284.IsInitialSelection ==true ||(v36284.HighLight._o.text !=null &&v36284.HighLight._o.text !=""))) return true; } } if (!wib0047.m5dd79(v27965,vbaf19)) return false; if (v27965.c._IsActive ==false) return false; var v27e44 =v27965.c.HighLight; if (v27e44 ==null) return; v27e44._o =null; var v5e031 =v27965.c.HtmlObj; var vcec37 =document.selection.createRange(); if (IS.opera) { vcec37 =document.createRange(); vcec37.setStart(v5e031,0); vcec37.setEnd(v5e031,0); } if (IS.safari ||IS.opera) { vcec37.tempObj =v5e031; vcec37.tempObj.IsSelected =v36284.HighLight.IsSelected; } var v54e89 =false; if (v27965.c._JustFocused) { v27965.c._JustFocused =false; if (vcec37.text.length ==v27965.c.HtmlObj.value.length) v54e89 =true; } v27e44.Idx =null; v27e44.Text =""; if (!IS.ie) { v27965.c.HtmlObj.selectionEnd =v27965.c.HtmlObj.selectionStart; if (IS.ie ==false &&IS.moz ==false) v27965.c.HtmlObj.SelectedSelectionEnd =v27965.c.HtmlObj.selectionEnd; } var v68380 =wib0047.m9de2(v27e44,vcec37,true); if (!v68380 &&v27e44.Type !="phrase") { vcec37.move(v27e44.Type,-1); v68380 =wib0047.m9de2(v27e44,vcec37,true); } if (v68380) {  if (v27e44.Type =="character" ||v27e44.Type =="word") { if (!wib0047.m1757(v27e44.Idx)) { vcec37 =wib0047.m5f668(vcec37); if (vcec37 ==null) return false; } }  if ((IS.moz ||IS.safari ||IS.opera)&&v27e44.Type !="phrase") { vcec37.move("textedit",-1); vcec37.moveStart(v27e44.Type,v27e44.Type =="character" ? v27e44.Idx : v27e44.HIdx); vcec37.expand(v27e44.Type); }  v27e44.Text =vcec37.text; v27e44._o =vcec37; if (!v54e89) { if (!v27e44.IsSelected) {  if (IS.ie) { var v71242 =vcec37.duplicate(); v71242.collapse(true); try { v71242.select(); } catch (e) {} } else { if (IS.ie ==false &&IS.moz ==false) v5e031.SelectedSelectionEnd =v5e031.selectionEnd; v5e031.selectionEnd =v5e031.selectionStart; }  v71242 =null; } else { try { vcec37.select(); } catch (e) { } } } else { if (IS.moz ||IS.safari ||IS.opera) { if (v27965.c.IsSelectedAll) { try { v5e031.select(); } catch (e) {} } } } if (!ISEvent.Raise(v27e44.OnHighLighted,v27965.c,vcec37)) return false; } return v68380; }, ma3a32:function(v1bf33,vfa918,v2c422) { var v95368 =window.event; if (v95368.ctrlKey &&v95368.altKey ==false) return true;  if (IS.moz) { if (v95368.keyCode ==ISKeyboardKey.TAB) return true; } else { if ((IS.safari ||IS.opera)&&v2c422 !=true) { if (v95368.keyCode ==ISKeyboardKey.TAB) return true; } }  if (v95368) { if (v95368.cancelBubble ==true) return false; } var va8b26 =wib0047._c; if (va8b26 !=null &&(!va8b26.Enabled ||va8b26.ReadOnly)) { if (v95368 !=null) { v95368.cancelBubble =true; v95368.returnValue =false; } return false; } var v90d58 =new Object(); if (!wib0047.m5dd79(v90d58,vfa918)) return false; var v42895 =v90d58.c.HighLight; if (v42895 ==null) return; if (v42895.Type =="word") wib0047.m7eb55(v90d58,v95368,v1bf33); else { v42895._o =null; var vb4419 =v90d58.c.HtmlObj; if (v90d58.c.IsSelectedAll &&v95368.keyCode ==ISKeyboardKey.BACKSPACE) { var v1db58 =v90d58.c.EditFormat; if (v1db58 !=null &&v1db58.Enabled) { v42895.HIdx =v90d58.c.EditFormat.MaskInfo.ValueParts.length -1; v42895.Idx =v90d58.c.EditFormat.MaskInfo.ValueParts[v90d58.c.EditFormat.MaskInfo.ValueParts.length -1][2]; } else v42895.Idx =v42895.HIdx =vb4419.value.length -1; } var v4a424 =v90d58.tr; var v18757 =v42895.Type =="character" ? v42895.Idx : v42895.HIdx; var vff084; var v5cf58 =ISKeyboardKey.GetChar(); var v1dc91 =v90d58.c.HtmlObj.value.length; if (v18757 >v1dc91) v18757 =v1dc91 -1; if (v18757 ==null) { v18757 =0; if (v42895.invalidTextArray.length >0) { for (var v48653 =0; v48653 <v42895.invalidTextArray.length; v48653++) { if (v42895.invalidTextArray[v48653] ==v18757) v18757++; else break; } } v42895.Idx =v18757; v42895.HIdx =0; }  if (IS.moz ||IS.safari ||IS.opera) v4a424.move("textedit",-1);  wib0047.md685(v42895,v4a424,v18757); if (v42895.Type =="character") vff084 =v4a424.expand(v42895.Type); else vff084 =true; if (!v1bf33 ||v1bf33.constructor !=Number) { if (v90d58.c.LastAction.indexOf("Valid")>-1) v1bf33 =(v42895.AutoTabWhenFilled)? (v42895.Type =="phrase" ? (v4a424.text.indexOf(v42895.PromptString)<0 ? ISKeyboardKey.RIGHT : null): ISKeyboardKey.RIGHT): null; else v1bf33 =v95368.keyCode; } if (v1bf33 ==ISKeyboardKey.DELETE ||v1bf33 ==ISKeyboardKey.BACKSPACE)vff084 =true; if (vff084 ==true) { var v81e66; if (wib0047._idx >1 ||wib0047._idx <-1) { v81e66 =wib0047._idx; if (v42895.Type !="word") { if ((v42895.Idx +v81e66)<0) { v81e66 =-v42895.Idx; while (!wib0047.m1757(v81e66 +v42895.Idx)) { v81e66++; } } else { if ((v42895.Idx +v81e66 +1)>vb4419.value.length) { v81e66 =vb4419.value.length -v42895.Idx -1; while (!wib0047.m1757(v81e66 +v42895.Idx)) { v81e66--; } } } } else { var v58117 =vb4419.createTextRange(); v58117.moveToPoint(window.event.x,window.event.y); v58117.expand("word"); v81e66 =0; while (!v58117.isEqual(v4a424)) { if (wib0047._idx >0) { if (v58117.move("word",1)>0) v81e66++; else break; } else { if (v58117.move("word",-1)) v81e66--; else break; } } if (v58117.detach) v58117.detach(); v58117 =null; } if (v42895.Type =="phrase") { var v18b51 =v42895.Idx +v81e66; var v48653 =0; var v37361 =0; var v2b917 =v42895.invalidTextArray; for (v7719 =0; v7719 <=v2b917.length; v7719++) { v48653 =v7719 ==v2b917.length ? length : v2b917[v7719]; if (v7719 >0) { if ((v48653 -v2b917[v7719 -1])>1 &&v2b917[v7719 -1] >0) v37361++; } if (v18b51 <v48653) { if (v7719 ==0) v81e66 =0; else v81e66 =v37361; break; } } v81e66 =v81e66 >v42895.HIdx ? v81e66 -v42895.HIdx : -(v42895.HIdx -v81e66); } } else v81e66 =wib0047.m1a01(v1bf33)? -1 : 1; if (wib0047.m52019(v1bf33)||(v5cf58 !="" &&v42895._InternalAutoTabWhenFilled)) { if (v5cf58 !="" &&v42895.Type !="phrase") { var v32254 =v4a424.duplicate(); v42895.Text =v32254.text =v5cf58; } var v3cb7 =v4a424.duplicate(); v4a424 =wib0047.m4b88(v4a424,v81e66); if (v4a424.isEqual(v3cb7)) {  if (IS.moz ||IS.safari ||IS.opera) { try { v4a424.select(true); } catch (e) {} }  var v7cc77 =false; for (var v7719 =0; v7719 <v42895.invalidTextArray.length; v7719++) { if (parseFloat(v42895.invalidTextArray[v7719])==v42895.Idx) { v7cc77 =true; break; } } if (v7cc77) { v81e66 =v81e66 <0 ? (v81e66 /-v81e66): (v81e66 /v81e66); v4a424 =wib0047.m4b88(v4a424,-v81e66); } else wib0047.m9de2(v42895,v4a424); }  if (v4a424 ==null) return false; } else { if (v1bf33 ==ISKeyboardKey.DELETE ||v1bf33 ==ISKeyboardKey.BACKSPACE) { if (v42895.Type !="phrase") { if (v90d58.c.EditFormat !=null) { var v32254 =v4a424.duplicate(); var v72f2 =wib9b79.me9d72(v90d58.c.EditFormat.MaskInfo.ValueParts,v42895); v72f2[1] =v42895.Text =v32254.text =v42895.PromptString; wib0047.m9de2(v42895,v4a424); if (v1bf33 ==ISKeyboardKey.BACKSPACE) { var v52e62 =v4a424.duplicate(); v4a424 =wib0047.m4b88(v4a424,-1);  if (IS.moz ||IS.safari ||IS.opera) { if (v4a424.isEqual(v52e62)) { v4a424 =wib0047.m4b88(v4a424,1); } }  } wib0047.m9de2(v42895,v4a424); } else { if (vb4419.value !=null &&vb4419.value !="") { v4a424.text =""; if (v81e66 !=-1 &&v81e66 !=1 &&v1bf33 ==ISKeyboardKey.BACKSPACE) { v42895.Idx =v42895.Idx +v81e66; v4a424 =vb4419.createTextRange(); v4a424.expand("textedit",-1); v4a424.move("character",v42895.Idx); } else { v4a424 =wib0047.m4b88(v4a424,-1); } } else v42895.Idx =v42895.HIdx =0; wib0047.m9de2(v42895,v4a424); } } else { if (v90d58.c.EditFormat !=null) { var v72f2 =wib9b79.me9d72(v90d58.c.EditFormat.MaskInfo.ValueParts,v42895); v72f2[1] =v42895.Text =v4a424.text =v42895.PromptString +v4a424.text.substr(0,v4a424.text.length -1); v4a424 =vb4419.createTextRange(); wib0047.m9de2(v42895,v4a424); } } v95368.returnValue =false; } else { if (v1bf33 ==ISKeyboardKey.HOME ||v1bf33 ==ISKeyboardKey.END) { v4a424 =vb4419.createTextRange(); if (v90d58.c.EditFormat ==null &&v42895.Type !="phrase") { v4a424.collapse(v1bf33 ==ISKeyboardKey.HOME); v4a424.move(v42895.Type,-1); v4a424.expand(v42895.Type); } else { v4a424.collapse(true); v18757 =v1bf33 ==ISKeyboardKey.HOME ? 0 : v90d58.c.EditFormat.MaskInfo.ValueParts.length -1; if (v42895.Type !="phrase") { var v72f2 =v90d58.c.EditFormat.MaskInfo.ValueParts[v18757]; v18757 =v72f2[2]; } wib0047.md685(v42895,v4a424,v18757); wib0047.m9de2(v42895,v4a424); } } } } wib0047._idx =0; } else { v4a424.text =v5cf58; wib0047.m9de2(v42895,v4a424); } v42895.Text =v4a424.text; if (!v42895.IsSelected) {  if (IS.ie) { var v58117 =v4a424.duplicate(); v58117.collapse(true); try { v58117.select(true); } catch (e) {} } else { if (IS.ie ==false &&IS.moz ==false) vb4419.SelectedSelectionEnd =vb4419.selectionEnd; vb4419.selectionEnd =vb4419.selectionStart; }  v58117 =null; } else {  try { v4a424.select(true); } catch (e) { }  } v42895._o =v4a424; } if (!ISEvent.Raise(v42895.OnHighLighted,v90d58.c,v4a424,v1bf33)) return false; v90d58.c.LastAction ="HighLightByKey";  ISEvent.LastKeyboardType =ISEvent.LastKeyCode =null; return false; }, m7eb55:function(vf4858,v2d284,vc3a79) { var v76872 =ISKeyboardKey.GetChar(); var v91b37 =vf4858.tr; var v19156 =vf4858.c.HighLight; var vc1887 =false; var v8b470 =false; var vdfc63 =v19156.HIdx; if (IS.moz ||IS.safari ||IS.opera) v91b37.move("textedit",-1); wib0047.md685(v19156,v91b37,vdfc63); var v27499 =v91b37.expand(v19156.Type); if (!vc3a79 ||vc3a79.constructor !=Number) { if (vf4858.c.LastAction.indexOf("Valid")>-1) vc3a79 =(v19156.AutoTabWhenFilled)? (v19156.Type =="phrase" ? (v91b37.text.indexOf(v19156.PromptString)<0 ? ISKeyboardKey.RIGHT : null): ISKeyboardKey.RIGHT): null; else vc3a79 =v2d284.keyCode; } if (vf4858.c.HtmlObj.value.length ==1 &&vc3a79 ==ISKeyboardKey.DELETE) { v91b37.move("textedit",-1); vf4858.c.HtmlObj.value =""; v19156.HIdx =0; return; } if (vc3a79 !=null) { if (wib0047.m52019(vc3a79)) { if (wib0047.m1a01(vc3a79)) vdfc63 -=1; else vdfc63 +=1; } else { if (vc3a79 ==ISKeyboardKey.DELETE) { if (v27499 ==false &&vf4858.c.HtmlObj.value.length >0) { v91b37.move("character",1); v91b37.expand(v19156.Type); } v91b37.text =""; } else { if (vc3a79 ==ISKeyboardKey.BACKSPACE) { v91b37.text =""; vdfc63 -=1; } else { if (vc3a79 ==ISKeyboardKey.HOME) vdfc63 =0; else { if (vc3a79 ==ISKeyboardKey.END) vdfc63 =vf4858.c.HtmlObj.value.length; else { if (vc3a79 ==ISKeyboardKey.SPACE) { vc1887 =true; v76872 =" "; } else { if (v76872 !="") vc1887 =true; } } } } } } } if (vdfc63 <0) vdfc63 =0; if (v19156.HIdx !=vdfc63) wib0047.md685(v19156,v91b37,v19156.HIdx >vdfc63 ? -1 : 1); v27499 =v91b37.expand(v19156.Type); if (v27499 ==false &&vdfc63 ==0) { v91b37.move("character",1); v91b37.expand(v19156.Type); } v91b37.select(); v19156.HIdx =v91b37.text !="" ? vdfc63 : v19156.HIdx; if (v91b37.text =="" &&vdfc63 >v19156.HIdx) { v91b37.move(v19156.Type,-1); v91b37.expand(v19156.Type); v91b37.select(); } if (vc1887) { if (v76872 ==" ") { v19156.Text =v91b37.text =v91b37.text +v76872; v91b37.move("character",-1); v91b37.expand(v19156.Type); v91b37.select(); v91b37.move(v19156.Type,1); v8b470 =true; v19156.HIdx++; } else { if (v91b37.text.substr(v91b37.text.length -2)=="  ") { var v7b293 =false; if (IS.ie) v7b293 =(wib0047.m2681(wib0047._c.HtmlObj,v91b37)+v91b37.text.length)==wib0047._c.HtmlObj.value.length; else { if (IS.moz ==false &&typeof (vf4858.c.HtmlObj.SelectedSelectionEnd)!="undefined") v7b293 =vf4858.c.HtmlObj.SelectedSelectionEnd ==vf4858.c.HtmlObj.value.length; else v7b293 =vf4858.c.HtmlObj.selectionEnd ==vf4858.c.HtmlObj.value.length; } if (v7b293) { v19156.Text =v91b37.text =v91b37.text +v76872 +" "; v91b37.move("textedit",1); v91b37.expand(v19156.Type); v91b37.select(); v8b470 =true; v19156.HIdx++; } else { var v3c256 =v91b37.text; var v18e48 =-1; for (var v8c633 =0; v8c633 <v3c256.length; v8c633++) { if (v3c256.charAt(v8c633)==" ") { v18e48 =v8c633; break; } } v91b37.text =v3c256.substr(0,v18e48)+v76872 +v3c256.substr(v18e48 +1); } } else { if (v91b37.text.substr(v91b37.text.length -1)==" ") v19156.Text =v91b37.text =v91b37.text.substr(0,v91b37.text.length -1)+v76872 +" "; else v19156.Text =v91b37.text =v91b37.text +v76872; } }  v91b37.move("textedit",-1); wib0047.md685(v19156,v91b37,v19156.HIdx);  if (IS.ie ==false) v91b37.move("character",2); v91b37.expand(v19156.Type); v91b37.select(); v19156.Text =v91b37.text; if (v76872 ==" " &&vc3a79 ==ISKeyboardKey.BACKSPACE) v19156.HIdx++; v2d284.returnValue =false; v2d284.cancelBubble =true; } }, mf1f36:function(v9418) { var v83149 =ISGetObject(v9418); if (v83149 ==null) return; var va8a32 =v83149.HighLight; if (va8a32 ==null) return; wib0047._c =v83149; var v8e682 =v83149.HtmlObj.createTextRange();  v8e682.move("textedit",-1);  if (v8e682 ==null) return; var v9593; if (va8a32.Idx ==null) { if (v83149.EditFormat !=null) va8a32.Idx =v83149.EditFormat.MaskInfo.ValueParts[0][2]; else va8a32.Idx =0; } if (va8a32.HIdx ==null) { if (v83149.EditFormat !=null) va8a32.HIdx =v83149.EditFormat.MaskInfo.ValueParts[0][2]; else va8a32.HIdx =0; } if (va8a32.Type =="character") v9593 =va8a32.Idx >=v83149.HtmlObj.value.length ? v83149.HtmlObj.value.length -1 : va8a32.Idx; else { if (v83149.EditFormat !=null) v9593 =va8a32.HIdx >=v83149.EditFormat.MaskInfo.ValueParts.length ? v83149.EditFormat.MaskInfo.ValueParts.length -1 : va8a32.HIdx; else v9593 =va8a32.HIdx; } var v42980; wib0047.md685(va8a32,v8e682,v9593); v42980 =va8a32.Type !="phrase" ? v8e682.expand(va8a32.Type): true; if (v42980) { va8a32.Text =v8e682.text; if (!va8a32.IsSelected) { if (IS.ie) { var v82c0 =v8e682.duplicate(); v82c0.collapse(true); try { v82c0.select(true); } catch (e) {} } else { if (IS.ie ==false &&IS.moz ==false) v83149.HtmlObj.SelectedSelectionEnd =v83149.HtmlObj.selectionEnd; v83149.HtmlObj.selectionEnd =v83149.HtmlObj.selectionStart; } } else { try { v8e682.select(); } catch (e) {} } va8a32._o =v8e682; } }, mc9d97:function() { var v9288 =wib0047._c; if (v9288 !=null &&(!v9288.Enabled ||v9288.ReadOnly)) { if (window.event !=null) { window.event.cancelBubble =true; window.event.returnValue =false; } return false; } if (!this.IsSelectedAll) wib0047.mf1f36(window.event.srcElement.id); }, m2681:function(v7a663,v49740) { var vc2b8 =v7a663.selectionStart; var v34c61 =v7a663.selectionEnd; var v61c83 =v49740.duplicate(); var vd5688 =v7a663.isSelected; v7a663.IsSelected =true; v61c83.moveEnd("character",v7a663.value.length); var v5ab79 =v7a663.value.lastIndexOf(v61c83.text); if (v61c83.text =="") v5ab79 =v7a663.value.length; v7a663.IsSelected =vd5688; if (IS.safari ||IS.chrome ||IS.opera) { v7a663.selectionStart =vc2b8; v7a663.selectionEnd =v34c61; v7a663.SelectedSelectionEnd =v34c61; } return v5ab79; }, GetWordIndexNonIE: function(v29b94) { var vc5e35 =v29b94.value.split(" "); var v5be79 =new Array(); var v6a55 =false; var v5f074 =-1; for (var v70d46 =0; v70d46 <vc5e35.length; v70d46++) { if (vc5e35[v70d46] =="") { if (v6a55 ==false) { v6a55 =true; v5f074 =v5be79.length; v5be79[v5f074] =""; } v5be79[v5f074] =v5be79[v5f074] +" "; } else { if (v6a55) { if (v5be79.length >0) v5be79[v5be79.length -1] +=tempSpace; else v5be79[v5be79.length] +=tempSpace +" "; tempSpace =""; } v5be79[v5be79.length] =vc5e35[v70d46] +" "; v6a55 =false; } } v5f074 =-1; for (var v1e131 =0; v1e131 <v5be79.length; v1e131++) { if (IS.ie ==false &&IS.moz ==false &&typeof (v29b94.SelectedSelectionEnd)!="undefined") { if (v29b94.selectionStart >=tempLength &&v29b94.SelectedSelectionEnd <=(tempLength +v5be79[v1e131].length)) { v5f074 =v1e131; break; } } else { if (v29b94.selectionStart >=tempLength &&v29b94.selectionEnd <=(tempLength +v5be79[v1e131].length)) { v5f074 =v1e131; break; } } } return v5f074; }, mdbd13:function(vf5430) { vf5430 =vf5430.toLowerCase(); if (vf5430 =="character" ||vf5430 =="phrase" ||vf5430 =="word" ||vf5430 =="sentence" ||vf5430 =="textedit") return true; else return false; }, m1a01:function(v1ce30) { return (v1ce30 ==ISKeyboardKey.LEFT); }, m05929:function(vda565) { return (vda565 ==ISKeyboardKey.RIGHT); }, m52019:function(vb8b65) { return (wib0047.m1a01(vb8b65)||wib0047.m05929(vb8b65)); },   m9de2:function(v54669,v76997,ve5858) { if (v54669.Type !="phrase") { if (v54669.Type =="character" &&v76997.text.length >0) v76997.collapse(true); var v20f65 =v76997.expand(v54669.Type); if (v20f65) { var va2847 =wib0047.m2681(wib0047._c.HtmlObj,v76997); v54669.Idx =va2847; v54669.HIdx =wib0047.m19957(v54669,v76997); } return v20f65; } else { var sP,eP,p,length =wib0047._c.HtmlObj.value.length; var v2da42 =v54669.invalidTextArray; if (v2da42 !=null &&v2da42.length >0) { if (ve5858) { if (IS.safari ||IS.chrome) v54669.Idx =wib0047._c.HtmlObj.selectionStart; else v54669.Idx =wib0047.m2681(wib0047._c.HtmlObj,v76997); } var i,hIdx; hIdx =0; for (i =0; i <=v2da42.length; i++) { p =i ==v2da42.length ? length : v2da42[i]; if (i >0) { if ((p -v2da42[i -1])>1 &&v2da42[i -1] >0) hIdx++; } if (v54669.Idx <p) { if (i ==0) hIdx =sP =0; else sP =parseFloat(v2da42[i -1])+1; eP =p -sP; break; } } v54669.HIdx =hIdx >0 ? hIdx : 0; if (sP ==null) { if (v2da42.length >0) { sP =parseFloat(v2da42[v2da42.length -1])+1; eP =length -sP; } else { sP =0; eP =length; v54669.HIdx =0; } } } else { sP =0; eP =length; v54669.HIdx =0; } v76997.move("character",(v54669.Idx *-1)); v76997.moveStart("character",sP); v76997.moveEnd("character",eP); v54669.Idx =sP; return true; } }, md685:function(v4c096,vaac15,va4380) { var vd8c5 =0; if (v4c096.Type !="phrase") { if (v4c096.Type =="character") return vaac15.move(v4c096.Type,va4380); else { return vaac15.move(v4c096.Type,va4380); } } else { var sP,eP,vbd489,length =wib0047._c.HtmlObj.value.length; var v63666 =v4c096.invalidTextArray; if (v63666 !=null) { if (va4380 >=v63666.length) va4380 =v63666.length; if (va4380 <0) va4380 =0; var v4d976 =va4380; var vd0c66 =0; var vbd489 =0; for (j =0; j <=v63666.length; j++) { vbd489 =j ==v63666.length ? length : v63666[j]; if (va4380 >0) { if ((vbd489 -v63666[j -1])>1 &&v63666[j -1] >0) vd0c66++; } if (vd0c66 ==va4380 ||j ==v63666.length) { v4d976 =j; if ((j +1)<v63666.length) vd8c5 =v63666[j +1] -v63666[j]; else vd8c5 =length -v63666[j -1]; break; } } if (v4d976 ==0) { if (v63666[0] !=0) sP =0; else sP =1; } else sP =v63666[v4d976 -1] +1; if (v4d976 >0) { if (v4d976 ==v63666.length) eP =length -v63666[v4d976 -1] -1; else eP =v63666[v4d976] -v63666[v4d976 -1] -1; } else { if (v63666[0] !=0) eP =v63666.length >0 ? v63666[v4d976] : length; else eP =v63666.length >0 ? v63666[1] -1 : length; } vaac15.move("character",(v4c096.Idx *-1)); vaac15.moveStart("character",sP); vaac15.moveEnd("character",eP); v4c096.Idx =sP; v4c096.HIdx =vd0c66; } else { sP =0; eP =length; vaac15.move("character",(v4c096.Idx *-1)); vaac15.moveStart("character",sP); vaac15.moveEnd("character",eP); vd8c5 =eP -sP; v4c096.Idx =sP; } if (v4c096.IsSelected) return (vaac15.text.length >0 ? 1 : 0); else return (vd8c5 >0 ? 1 : 0); } }, m5dd79:function(v0a354,vd9844) { var v02e71 =ISGetObject((vd9844 ==null)? window.event.srcElement.id : vd9844); if (v02e71 !=null) { v0a354.c =v02e71; if (v02e71.HighLight ==null) return false; if (v02e71.HighLight.OnPrepareHighLightFunction !=null) { if (!eval(v02e71.HighLight.OnPrepareHighLightFunction)) return false; } if (v02e71.HtmlObj.createTextRange ==undefined) return false; v0a354.tr =v02e71.HtmlObj.createTextRange(); if (v0a354.tr ==null ||!wib0047.mdbd13(v02e71.HighLight.Type)) return false; wib0047._c =v02e71; wib0047._h =v02e71.HighLight; return true; } else return false; }, m19957:function(vc7829,vaf932) { if (vc7829.Type =="character") return vc7829.Idx; else { var v0d426; var v21882 =0; var vbe917 =wib0047._c.HtmlObj; var v8af79 =vaf932.duplicate(); do { v0d426 =wib0047.m2681(vbe917,v8af79); if (v0d426 ==0) break; if (v0d426 ==vbe917.value.length) { v21882 =vc7829.HIdx; break; } v8af79.move("character",(v0d426 *-1)); v8af79.moveStart("character",(v0d426 -1)); v8af79.moveEnd("character",1); v8af79.expand(vc7829.Type); v21882 =v21882 +1; } while (v0d426 >0);  if (IS.moz ||IS.safari ||IS.opera) { v8af79.move(vc7829.Type,v21882); v8af79.detach(); }  v8af79 =null; return v21882; } }, m1757:function(v13085) { var vd1b65 =true; var v7ab2 =wib0047._h; for (var vd6e51 =0; vd6e51 <v7ab2.invalidTextArray.length; vd6e51++) { if (v13085 ==parseFloat(v7ab2.invalidTextArray[vd6e51])) { vd1b65 =false; break; } } return vd1b65; }, m5f668:function(veec85) { var v2cf85 =veec85.duplicate(); veec85 =wib0047.m4b88(veec85,1); if (veec85.isEqual(v2cf85)) { veec85 =wib0047.m4b88(veec85,-1); } return veec85; }, m4b88:function(vaf215,v3cc79) { var v00885; var v6fe11 =vaf215.duplicate(); var i,ih; var ve2518 =wib0047._h; i =ve2518.Idx; ih =ve2518.HIdx; var vdab64 =ve2518.Type !="phrase" ? v3cc79 : (ve2518.HIdx +v3cc79); do { if (wib0047.md685(ve2518,v6fe11,vdab64)==0) { v6fe11 =null; break; } if (ve2518.Type =="phrase" ||wib0047.m9de2(wib0047._h,v6fe11)) { if (ve2518.Type =="phrase") v00885 =ve2518.Idx; else v00885 =wib0047.m2681(wib0047._c.HtmlObj,v6fe11); if (ve2518.IsValidTextCustomFunction ==null ||ve2518.IsValidTextCustomFunction =="") { if (wib0047.m1757(v00885)==true) { ve2518.Idx =v00885; break; } } else { var va2b75 =true; va2b75 =ve2518.IsValidTextCustomFunction(wib0047._c,v00885); if (va2b75 ==true) va2b75 =wib0047.m1757(v00885); if (va2b75) { ve2518.Idx =v00885; break; } } } else { v6fe11 =null; break; } vdab64 =ve2518.Type !="phrase" ? v3cc79 : (vdab64 +v3cc79); if (ve2518.Type =="phrase") { if (vdab64 >ve2518.invalidTextArray.length ||(vdab64 +ve2518.HIdx)<0) { v6fe11 =null; break; } } } while (v6fe11.text !="" &&v6fe11.text !=null); if (v6fe11 ==null) { ve2518.Idx =i; ve2518.HIdx =ih; } return (v6fe11 ==null ? vaf215 : v6fe11); }  };function ClientBehaviorDestructor(){ var vc1f18 =delete wib0047;}window.attachEvent("onunload",ClientBehaviorDestructor);if (typeof (Sys)!="undefined") Sys.Application.notifyScriptLoaded();