
// Generated by Intersoft Script Optimizer V1.5 + Intersoft JS Engine MaxObfuscate(tm) V1.0 
// Generated Datetime : 7/7/2010 7:33:45 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 wi5fa76 = { _c: null, _h: null, _idx: 0, _idxUp: 0,  m4ed37:function(v53815) { var vacd15 =v53815.XmlDt.selectSingleNode("//HighLight"); if (vacd15 !=null) { v53815.HighLight =new HighLight(); wi5fa76.maae13(v53815.HighLight,vacd15); wi5fa76.mac323(v53815); } }, mac323:function(va0215) { Listener.Add(va0215.HtmlObj,"ondragstart",function(){return false; }); Listener.Add(va0215.HtmlObj,"onfocus",wi5fa76.ma2112); Listener.Add(va0215.HtmlObj,"onmouseup",wi5fa76.m33417); Listener.Add(va0215.HtmlObj,"onkeydown",wi5fa76.m34841);  if (IS.moz ||IS.safari ||IS.opera) Listener.Add(va0215.HtmlObj,"onkeyup",wi5fa76.mfce94,va0215);  }, m48394:function(v91615) { v91615.HighLight._o =null; Listener.Remove(v91615.HtmlObj,"ondragstart",function(){return false; }); Listener.Remove(v91615.HtmlObj,"onfocus",wi5fa76.ma2112); Listener.Remove(v91615.HtmlObj,"onmouseup",wi5fa76.m33417); Listener.Remove(v91615.HtmlObj,"onkeydown",wi5fa76.m34841);  if (IS.moz ||IS.safari ||IS.opera) Listener.Remove(v91615.HtmlObj,"onkeyup",wi5fa76.mfce94,v91615);  }, maae13:function(v78515,v81546) { IS.SetProperties(v78515,v81546); v78515.Type =v78515.Type.toLowerCase(); }, OnKeyDown: function() { var v57f51 =window.event.keyCode; if (wi5fa76._c !=null &&!wi5fa76._c.Enabled) { window.event.cancelBubble =true; window.event.returnValue =false; return false; } if (v57f51 ==ISKeyboardKey.LEFT ||v57f51 ==ISKeyboardKey.DELETE ||v57f51 ==ISKeyboardKey.BACKSPACE) { wi5fa76._idx--; wi5fa76._idxUp =wi5fa76._idx; } else { if (v57f51 ==ISKeyboardKey.RIGHT) wi5fa76._idx++; } }, ma2112:function() { var v83670 =wi5fa76._c; if (v83670 !=null &&(!v83670.Enabled ||v83670.ReadOnly)) { if (window.event !=null) { window.event.cancelBubble =true; window.event.returnValue =false; } return false; } var vb5925 =new Object(); if (!wi5fa76.md8f7(vb5925)) return false; vb5925.c._JustFocused =true; window.setTimeout(function(){vb5925.c._JustFocused =false; },200); },  m33417:function(vbc81,v2fc93) { var v43070 =new Object(); var v69725 =null; var v6b413 =wi5fa76._c; if (v6b413 !=null &&(!v6b413.Enabled ||v6b413.ReadOnly)) { if (window.event !=null) { window.event.cancelBubble =true; window.event.returnValue =false; } return false; } if (wi5fa76._c !=null) { if (wi5fa76._c._IsActive) v69725 =wi5fa76._c.Id; if (window.event !=null) { if (window.event.button ==2 &&(v6b413.InitialSelection ="SelectAll" &&v6b413.IsInitialSelection ==true ||(v6b413.HighLight._o.text !=null &&v6b413.HighLight._o.text !=""))) return true; } } if (!wi5fa76.md8f7(v43070,v69725)) return false; if (v43070.c._IsActive ==false) return false; var vb3060 =v43070.c.HighLight; if (vb3060 ==null) return; vb3060._o =null; var vaa230 =v43070.c.HtmlObj; var vff174 =document.selection.createRange(); if (IS.opera) { vff174 =document.createRange(); vff174.setStart(vaa230,0); vff174.setEnd(vaa230,0); } if (IS.safari ||IS.opera) { vff174.tempObj =vaa230; vff174.tempObj.IsSelected =v6b413.HighLight.IsSelected; } var vd6e0 =false; if (v43070.c._JustFocused) { v43070.c._JustFocused =false; if (vff174.text.length ==v43070.c.HtmlObj.value.length) vd6e0 =true; } vb3060.Idx =null; vb3060.Text =""; if (!IS.ie) { v43070.c.HtmlObj.selectionEnd =v43070.c.HtmlObj.selectionStart; if (IS.ie ==false &&IS.moz ==false) v43070.c.HtmlObj.SelectedSelectionEnd =v43070.c.HtmlObj.selectionEnd; } var vbd636 =wi5fa76.m4c44(vb3060,vff174,true); if (!vbd636 &&vb3060.Type !="phrase") { vff174.move(vb3060.Type,-1); vbd636 =wi5fa76.m4c44(vb3060,vff174,true); } if (vbd636) {  if (vb3060.Type =="character" ||vb3060.Type =="word") { if (!wi5fa76.md1391(vb3060.Idx)) { vff174 =wi5fa76.m35932(vff174); if (vff174 ==null) return false; } }  if ((IS.moz ||IS.safari ||IS.opera)&&vb3060.Type !="phrase") { vff174.move("textedit",-1); vff174.moveStart(vb3060.Type,vb3060.Type =="character" ? vb3060.Idx : vb3060.HIdx); vff174.expand(vb3060.Type); }  vb3060.Text =vff174.text; vb3060._o =vff174; if (!vd6e0) { if (!vb3060.IsSelected) {  if (IS.ie) { var vf9886 =vff174.duplicate(); vf9886.collapse(true); try { vf9886.select(); } catch (e) {} } else { if (IS.ie ==false &&IS.moz ==false) vaa230.SelectedSelectionEnd =vaa230.selectionEnd; vaa230.selectionEnd =vaa230.selectionStart; }  vf9886 =null; } else { try { vff174.select(); } catch (e) { } } } else { if (IS.moz ||IS.safari ||IS.opera) { if (v43070.c.IsSelectedAll) { try { vaa230.select(); } catch (e) {} } } } if (!ISEvent.Raise(vb3060.OnHighLighted,v43070.c,vff174)) return false; } return vbd636; }, m34841:function(v5c667,v26585,v83014) { var vfe637 =window.event; if (vfe637.ctrlKey &&vfe637.altKey ==false) return true;  if (IS.moz) { if (vfe637.keyCode ==ISKeyboardKey.TAB) return true; } else { if ((IS.safari ||IS.opera)&&v83014 !=true) { if (vfe637.keyCode ==ISKeyboardKey.TAB) return true; } }  if (vfe637) { if (vfe637.cancelBubble ==true) return false; } var v98c62 =wi5fa76._c; if (v98c62 !=null &&(!v98c62.Enabled ||v98c62.ReadOnly)) { if (vfe637 !=null) { vfe637.cancelBubble =true; vfe637.returnValue =false; } return false; } var v84b68 =new Object(); if (!wi5fa76.md8f7(v84b68,v26585)) return false; var v68f69 =v84b68.c.HighLight; if (v68f69 ==null) return; if (v68f69.Type =="word") wi5fa76.m42e8(v84b68,vfe637,v5c667); else { v68f69._o =null; var vec896 =v84b68.c.HtmlObj; if (v84b68.c.IsSelectedAll &&vfe637.keyCode ==ISKeyboardKey.BACKSPACE) { var v6d596 =v84b68.c.EditFormat; if (v6d596 !=null &&v6d596.Enabled) { v68f69.HIdx =v84b68.c.EditFormat.MaskInfo.ValueParts.length -1; v68f69.Idx =v84b68.c.EditFormat.MaskInfo.ValueParts[v84b68.c.EditFormat.MaskInfo.ValueParts.length -1][2]; } else v68f69.Idx =v68f69.HIdx =vec896.value.length -1; } var vd8e17 =v84b68.tr; var v8e610 =v68f69.Type =="character" ? v68f69.Idx : v68f69.HIdx; var v26f30; var v25619 =ISKeyboardKey.GetChar(); var v79540 =v84b68.c.HtmlObj.value.length; if (v8e610 >v79540) v8e610 =v79540 -1; if (v8e610 ==null) { v8e610 =0; if (v68f69.invalidTextArray.length >0) { for (var v81b57 =0; v81b57 <v68f69.invalidTextArray.length; v81b57++) { if (v68f69.invalidTextArray[v81b57] ==v8e610) v8e610++; else break; } } v68f69.Idx =v8e610; v68f69.HIdx =0; }  if (IS.moz ||IS.safari ||IS.opera) vd8e17.move("textedit",-1);  wi5fa76.mb2a56(v68f69,vd8e17,v8e610); if (v68f69.Type =="character") v26f30 =vd8e17.expand(v68f69.Type); else v26f30 =true; if (!v5c667 ||v5c667.constructor !=Number) { if (v84b68.c.LastAction.indexOf("Valid")>-1) v5c667 =(v68f69.AutoTabWhenFilled)? (v68f69.Type =="phrase" ? (vd8e17.text.indexOf(v68f69.PromptString)<0 ? ISKeyboardKey.RIGHT : null): ISKeyboardKey.RIGHT): null; else v5c667 =vfe637.keyCode; } if (v5c667 ==ISKeyboardKey.DELETE ||v5c667 ==ISKeyboardKey.BACKSPACE)v26f30 =true; if (v26f30 ==true) { var v5aa47; if (wi5fa76._idx >1 ||wi5fa76._idx <-1) { v5aa47 =wi5fa76._idx; if (v68f69.Type !="word") { if ((v68f69.Idx +v5aa47)<0) { v5aa47 =-v68f69.Idx; while (!wi5fa76.md1391(v5aa47 +v68f69.Idx)) { v5aa47++; } } else { if ((v68f69.Idx +v5aa47 +1)>vec896.value.length) { v5aa47 =vec896.value.length -v68f69.Idx -1; while (!wi5fa76.md1391(v5aa47 +v68f69.Idx)) { v5aa47--; } } } } else { var v55233 =vec896.createTextRange(); v55233.moveToPoint(window.event.x,window.event.y); v55233.expand("word"); v5aa47 =0; while (!v55233.isEqual(vd8e17)) { if (wi5fa76._idx >0) { if (v55233.move("word",1)>0) v5aa47++; else break; } else { if (v55233.move("word",-1)) v5aa47--; else break; } } if (v55233.detach) v55233.detach(); v55233 =null; } if (v68f69.Type =="phrase") { var v05a48 =v68f69.Idx +v5aa47; var v81b57 =0; var v1d23 =0; var vb399 =v68f69.invalidTextArray; for (vc8155 =0; vc8155 <=vb399.length; vc8155++) { v81b57 =vc8155 ==vb399.length ? length : vb399[vc8155]; if (vc8155 >0) { if ((v81b57 -vb399[vc8155 -1])>1 &&vb399[vc8155 -1] >0) v1d23++; } if (v05a48 <v81b57) { if (vc8155 ==0) v5aa47 =0; else v5aa47 =v1d23; break; } } v5aa47 =v5aa47 >v68f69.HIdx ? v5aa47 -v68f69.HIdx : -(v68f69.HIdx -v5aa47); } } else v5aa47 =wi5fa76.m8638(v5c667)? -1 : 1; if (wi5fa76.m1202(v5c667)||(v25619 !="" &&v68f69._InternalAutoTabWhenFilled)) { if (v25619 !="" &&v68f69.Type !="phrase") { var v99133 =vd8e17.duplicate(); v68f69.Text =v99133.text =v25619; } var vdd052 =vd8e17.duplicate(); vd8e17 =wi5fa76.m23245(vd8e17,v5aa47); if (vd8e17.isEqual(vdd052)) {  if (IS.moz ||IS.safari ||IS.opera) { try { vd8e17.select(true); } catch (e) {} }  var v02610 =false; for (var vc8155 =0; vc8155 <v68f69.invalidTextArray.length; vc8155++) { if (parseFloat(v68f69.invalidTextArray[vc8155])==v68f69.Idx) { v02610 =true; break; } } if (v02610) { v5aa47 =v5aa47 <0 ? (v5aa47 /-v5aa47): (v5aa47 /v5aa47); vd8e17 =wi5fa76.m23245(vd8e17,-v5aa47); } else wi5fa76.m4c44(v68f69,vd8e17); }  if (vd8e17 ==null) return false; } else { if (v5c667 ==ISKeyboardKey.DELETE ||v5c667 ==ISKeyboardKey.BACKSPACE) { if (v68f69.Type !="phrase") { if (v84b68.c.EditFormat !=null) { var v99133 =vd8e17.duplicate(); var vc4492 =wi4675.mdee93(v84b68.c.EditFormat.MaskInfo.ValueParts,v68f69); vc4492[1] =v68f69.Text =v99133.text =v68f69.PromptString; wi5fa76.m4c44(v68f69,vd8e17); if (v5c667 ==ISKeyboardKey.BACKSPACE) { var v5d071 =vd8e17.duplicate(); vd8e17 =wi5fa76.m23245(vd8e17,-1);  if (IS.moz ||IS.safari ||IS.opera) { if (vd8e17.isEqual(v5d071)) { vd8e17 =wi5fa76.m23245(vd8e17,1); } }  } wi5fa76.m4c44(v68f69,vd8e17); } else { if (vec896.value !=null &&vec896.value !="") { vd8e17.text =""; if (v5aa47 !=-1 &&v5aa47 !=1 &&v5c667 ==ISKeyboardKey.BACKSPACE) { v68f69.Idx =v68f69.Idx +v5aa47; vd8e17 =vec896.createTextRange(); vd8e17.expand("textedit",-1); vd8e17.move("character",v68f69.Idx); } else { vd8e17 =wi5fa76.m23245(vd8e17,-1); } } else v68f69.Idx =v68f69.HIdx =0; wi5fa76.m4c44(v68f69,vd8e17); } } else { if (v84b68.c.EditFormat !=null) { var vc4492 =wi4675.mdee93(v84b68.c.EditFormat.MaskInfo.ValueParts,v68f69); vc4492[1] =v68f69.Text =vd8e17.text =v68f69.PromptString +vd8e17.text.substr(0,vd8e17.text.length -1); vd8e17 =vec896.createTextRange(); wi5fa76.m4c44(v68f69,vd8e17); } } vfe637.returnValue =false; } else { if (v5c667 ==ISKeyboardKey.HOME ||v5c667 ==ISKeyboardKey.END) { vd8e17 =vec896.createTextRange(); if (v84b68.c.EditFormat ==null &&v68f69.Type !="phrase") { vd8e17.collapse(v5c667 ==ISKeyboardKey.HOME); vd8e17.move(v68f69.Type,-1); vd8e17.expand(v68f69.Type); } else { vd8e17.collapse(true); v8e610 =v5c667 ==ISKeyboardKey.HOME ? 0 : v84b68.c.EditFormat.MaskInfo.ValueParts.length -1; if (v68f69.Type !="phrase") { var vc4492 =v84b68.c.EditFormat.MaskInfo.ValueParts[v8e610]; v8e610 =vc4492[2]; } wi5fa76.mb2a56(v68f69,vd8e17,v8e610); wi5fa76.m4c44(v68f69,vd8e17); } } } } wi5fa76._idx =0; } else { vd8e17.text =v25619; wi5fa76.m4c44(v68f69,vd8e17); } v68f69.Text =vd8e17.text; if (!v68f69.IsSelected) {  if (IS.ie) { var v55233 =vd8e17.duplicate(); v55233.collapse(true); try { v55233.select(true); } catch (e) {} } else { if (IS.ie ==false &&IS.moz ==false) vec896.SelectedSelectionEnd =vec896.selectionEnd; vec896.selectionEnd =vec896.selectionStart; }  v55233 =null; } else {  try { vd8e17.select(true); } catch (e) { }  } v68f69._o =vd8e17; } if (!ISEvent.Raise(v68f69.OnHighLighted,v84b68.c,vd8e17,v5c667)) return false; v84b68.c.LastAction ="HighLightByKey";  ISEvent.LastKeyboardType =ISEvent.LastKeyCode =null; return false; }, m42e8:function(ve3c93,vb8a57,v53d45) { var v58a13 =ISKeyboardKey.GetChar(); var v02212 =ve3c93.tr; var v64c3 =ve3c93.c.HighLight; var v89645 =false; var v8e493 =false; var veee98 =v64c3.HIdx; if (IS.moz ||IS.safari ||IS.opera) v02212.move("textedit",-1); wi5fa76.mb2a56(v64c3,v02212,veee98); var va2026 =v02212.expand(v64c3.Type); if (!v53d45 ||v53d45.constructor !=Number) { if (ve3c93.c.LastAction.indexOf("Valid")>-1) v53d45 =(v64c3.AutoTabWhenFilled)? (v64c3.Type =="phrase" ? (v02212.text.indexOf(v64c3.PromptString)<0 ? ISKeyboardKey.RIGHT : null): ISKeyboardKey.RIGHT): null; else v53d45 =vb8a57.keyCode; } if (ve3c93.c.HtmlObj.value.length ==1 &&v53d45 ==ISKeyboardKey.DELETE) { v02212.move("textedit",-1); ve3c93.c.HtmlObj.value =""; v64c3.HIdx =0; return; } if (v53d45 !=null) { if (wi5fa76.m1202(v53d45)) { if (wi5fa76.m8638(v53d45)) veee98 -=1; else veee98 +=1; } else { if (v53d45 ==ISKeyboardKey.DELETE) { if (va2026 ==false &&ve3c93.c.HtmlObj.value.length >0) { v02212.move("character",1); v02212.expand(v64c3.Type); } v02212.text =""; } else { if (v53d45 ==ISKeyboardKey.BACKSPACE) { v02212.text =""; veee98 -=1; } else { if (v53d45 ==ISKeyboardKey.HOME) veee98 =0; else { if (v53d45 ==ISKeyboardKey.END) veee98 =ve3c93.c.HtmlObj.value.length; else { if (v53d45 ==ISKeyboardKey.SPACE) { v89645 =true; v58a13 =" "; } else { if (v58a13 !="") v89645 =true; } } } } } } } if (veee98 <0) veee98 =0; if (v64c3.HIdx !=veee98) wi5fa76.mb2a56(v64c3,v02212,v64c3.HIdx >veee98 ? -1 : 1); va2026 =v02212.expand(v64c3.Type); if (va2026 ==false &&veee98 ==0) { v02212.move("character",1); v02212.expand(v64c3.Type); } v02212.select(); v64c3.HIdx =v02212.text !="" ? veee98 : v64c3.HIdx; if (v02212.text =="" &&veee98 >v64c3.HIdx) { v02212.move(v64c3.Type,-1); v02212.expand(v64c3.Type); v02212.select(); } if (v89645) { if (v58a13 ==" ") { v64c3.Text =v02212.text =v02212.text +v58a13; v02212.move("character",-1); v02212.expand(v64c3.Type); v02212.select(); v02212.move(v64c3.Type,1); v8e493 =true; v64c3.HIdx++; } else { if (v02212.text.substr(v02212.text.length -2)=="  ") { var vd7e52 =false; if (IS.ie) vd7e52 =(wi5fa76.m7275(wi5fa76._c.HtmlObj,v02212)+v02212.text.length)==wi5fa76._c.HtmlObj.value.length; else { if (IS.moz ==false &&typeof (ve3c93.c.HtmlObj.SelectedSelectionEnd)!="undefined") vd7e52 =ve3c93.c.HtmlObj.SelectedSelectionEnd ==ve3c93.c.HtmlObj.value.length; else vd7e52 =ve3c93.c.HtmlObj.selectionEnd ==ve3c93.c.HtmlObj.value.length; } if (vd7e52) { v64c3.Text =v02212.text =v02212.text +v58a13 +" "; v02212.move("textedit",1); v02212.expand(v64c3.Type); v02212.select(); v8e493 =true; v64c3.HIdx++; } else { var vc4598 =v02212.text; var v62590 =-1; for (var v4d639 =0; v4d639 <vc4598.length; v4d639++) { if (vc4598.charAt(v4d639)==" ") { v62590 =v4d639; break; } } v02212.text =vc4598.substr(0,v62590)+v58a13 +vc4598.substr(v62590 +1); } } else { if (v02212.text.substr(v02212.text.length -1)==" ") v64c3.Text =v02212.text =v02212.text.substr(0,v02212.text.length -1)+v58a13 +" "; else v64c3.Text =v02212.text =v02212.text +v58a13; } }  v02212.move("textedit",-1); wi5fa76.mb2a56(v64c3,v02212,v64c3.HIdx);  if (IS.ie ==false) v02212.move("character",2); v02212.expand(v64c3.Type); v02212.select(); v64c3.Text =v02212.text; if (v58a13 ==" " &&v53d45 ==ISKeyboardKey.BACKSPACE) v64c3.HIdx++; vb8a57.returnValue =false; vb8a57.cancelBubble =true; } }, m00068:function(vf3e79) { var v6a049 =ISGetObject(vf3e79); if (v6a049 ==null) return; var v64637 =v6a049.HighLight; if (v64637 ==null) return; wi5fa76._c =v6a049; var vc2f30 =v6a049.HtmlObj.createTextRange();  vc2f30.move("textedit",-1);  if (vc2f30 ==null) return; var v39545; if (v64637.Idx ==null) { if (v6a049.EditFormat !=null) v64637.Idx =v6a049.EditFormat.MaskInfo.ValueParts[0][2]; else v64637.Idx =0; } if (v64637.HIdx ==null) { if (v6a049.EditFormat !=null) v64637.HIdx =v6a049.EditFormat.MaskInfo.ValueParts[0][2]; else v64637.HIdx =0; } if (v64637.Type =="character") v39545 =v64637.Idx >=v6a049.HtmlObj.value.length ? v6a049.HtmlObj.value.length -1 : v64637.Idx; else { if (v6a049.EditFormat !=null) v39545 =v64637.HIdx >=v6a049.EditFormat.MaskInfo.ValueParts.length ? v6a049.EditFormat.MaskInfo.ValueParts.length -1 : v64637.HIdx; else v39545 =v64637.HIdx; } var ve411; wi5fa76.mb2a56(v64637,vc2f30,v39545); ve411 =v64637.Type !="phrase" ? vc2f30.expand(v64637.Type): true; if (ve411) { v64637.Text =vc2f30.text; if (!v64637.IsSelected) { if (IS.ie) { var v3be62 =vc2f30.duplicate(); v3be62.collapse(true); try { v3be62.select(true); } catch (e) {} } else { if (IS.ie ==false &&IS.moz ==false) v6a049.HtmlObj.SelectedSelectionEnd =v6a049.HtmlObj.selectionEnd; v6a049.HtmlObj.selectionEnd =v6a049.HtmlObj.selectionStart; } } else { try { vc2f30.select(); } catch (e) {} } v64637._o =vc2f30; } }, mfce94:function() { var v96a79 =wi5fa76._c; if (v96a79 !=null &&(!v96a79.Enabled ||v96a79.ReadOnly)) { if (window.event !=null) { window.event.cancelBubble =true; window.event.returnValue =false; } return false; } if (!this.IsSelectedAll) wi5fa76.m00068(window.event.srcElement.id); }, m7275:function(vae399,va6414) { var v26415 =vae399.selectionStart; var v32574 =vae399.selectionEnd; var vbc886 =va6414.duplicate(); var v5bd55 =vae399.isSelected; vae399.IsSelected =true; vbc886.moveEnd("character",vae399.value.length); var v3a367 =vae399.value.lastIndexOf(vbc886.text); if (vbc886.text =="") v3a367 =vae399.value.length; vae399.IsSelected =v5bd55; if (IS.safari ||IS.chrome ||IS.opera) { vae399.selectionStart =v26415; vae399.selectionEnd =v32574; vae399.SelectedSelectionEnd =v32574; } return v3a367; }, GetWordIndexNonIE: function(ve4154) { var ve1d99 =ve4154.value.split(" "); var v84c14 =new Array(); var v7fa34 =false; var v24a75 =-1; for (var v2e345 =0; v2e345 <ve1d99.length; v2e345++) { if (ve1d99[v2e345] =="") { if (v7fa34 ==false) { v7fa34 =true; v24a75 =v84c14.length; v84c14[v24a75] =""; } v84c14[v24a75] =v84c14[v24a75] +" "; } else { if (v7fa34) { if (v84c14.length >0) v84c14[v84c14.length -1] +=tempSpace; else v84c14[v84c14.length] +=tempSpace +" "; tempSpace =""; } v84c14[v84c14.length] =ve1d99[v2e345] +" "; v7fa34 =false; } } v24a75 =-1; for (var ve8394 =0; ve8394 <v84c14.length; ve8394++) { if (IS.ie ==false &&IS.moz ==false &&typeof (ve4154.SelectedSelectionEnd)!="undefined") { if (ve4154.selectionStart >=tempLength &&ve4154.SelectedSelectionEnd <=(tempLength +v84c14[ve8394].length)) { v24a75 =ve8394; break; } } else { if (ve4154.selectionStart >=tempLength &&ve4154.selectionEnd <=(tempLength +v84c14[ve8394].length)) { v24a75 =ve8394; break; } } } return v24a75; }, m8e842:function(vd4390) { vd4390 =vd4390.toLowerCase(); if (vd4390 =="character" ||vd4390 =="phrase" ||vd4390 =="word" ||vd4390 =="sentence" ||vd4390 =="textedit") return true; else return false; }, m8638:function(v31390) { return (v31390 ==ISKeyboardKey.LEFT); }, m4fb57:function(vbbb90) { return (vbbb90 ==ISKeyboardKey.RIGHT); }, m1202:function(vfac90) { return (wi5fa76.m8638(vfac90)||wi5fa76.m4fb57(vfac90)); },   m4c44:function(vf0f9,vfb672,v0505) { if (vf0f9.Type !="phrase") { if (vf0f9.Type =="character" &&vfb672.text.length >0) vfb672.collapse(true); var v97e9 =vfb672.expand(vf0f9.Type); if (v97e9) { var vf9d72 =wi5fa76.m7275(wi5fa76._c.HtmlObj,vfb672); vf0f9.Idx =vf9d72; vf0f9.HIdx =wi5fa76.m3f073(vf0f9,vfb672); } return v97e9; } else { var sP,eP,p,length =wi5fa76._c.HtmlObj.value.length; var v1ac5 =vf0f9.invalidTextArray; if (v1ac5 !=null &&v1ac5.length >0) { if (v0505) { if (IS.safari ||IS.chrome) vf0f9.Idx =wi5fa76._c.HtmlObj.selectionStart; else vf0f9.Idx =wi5fa76.m7275(wi5fa76._c.HtmlObj,vfb672); } var i,hIdx; hIdx =0; for (i =0; i <=v1ac5.length; i++) { p =i ==v1ac5.length ? length : v1ac5[i]; if (i >0) { if ((p -v1ac5[i -1])>1 &&v1ac5[i -1] >0) hIdx++; } if (vf0f9.Idx <p) { if (i ==0) hIdx =sP =0; else sP =parseFloat(v1ac5[i -1])+1; eP =p -sP; break; } } vf0f9.HIdx =hIdx >0 ? hIdx : 0; if (sP ==null) { if (v1ac5.length >0) { sP =parseFloat(v1ac5[v1ac5.length -1])+1; eP =length -sP; } else { sP =0; eP =length; vf0f9.HIdx =0; } } } else { sP =0; eP =length; vf0f9.HIdx =0; } vfb672.move("character",(vf0f9.Idx *-1)); vfb672.moveStart("character",sP); vfb672.moveEnd("character",eP); vf0f9.Idx =sP; return true; } }, mb2a56:function(ve8465,v76d51,va1690) { var ve6b45 =0; if (ve8465.Type !="phrase") { if (ve8465.Type =="character") return v76d51.move(ve8465.Type,va1690); else { return v76d51.move(ve8465.Type,va1690); } } else { var sP,eP,v41611,length =wi5fa76._c.HtmlObj.value.length; var vd5c41 =ve8465.invalidTextArray; if (vd5c41 !=null) { if (va1690 >=vd5c41.length) va1690 =vd5c41.length; if (va1690 <0) va1690 =0; var vb5323 =va1690; var va7423 =0; var v41611 =0; for (j =0; j <=vd5c41.length; j++) { v41611 =j ==vd5c41.length ? length : vd5c41[j]; if (va1690 >0) { if ((v41611 -vd5c41[j -1])>1 &&vd5c41[j -1] >0) va7423++; } if (va7423 ==va1690 ||j ==vd5c41.length) { vb5323 =j; if ((j +1)<vd5c41.length) ve6b45 =vd5c41[j +1] -vd5c41[j]; else ve6b45 =length -vd5c41[j -1]; break; } } if (vb5323 ==0) { if (vd5c41[0] !=0) sP =0; else sP =1; } else sP =vd5c41[vb5323 -1] +1; if (vb5323 >0) { if (vb5323 ==vd5c41.length) eP =length -vd5c41[vb5323 -1] -1; else eP =vd5c41[vb5323] -vd5c41[vb5323 -1] -1; } else { if (vd5c41[0] !=0) eP =vd5c41.length >0 ? vd5c41[vb5323] : length; else eP =vd5c41.length >0 ? vd5c41[1] -1 : length; } v76d51.move("character",(ve8465.Idx *-1)); v76d51.moveStart("character",sP); v76d51.moveEnd("character",eP); ve8465.Idx =sP; ve8465.HIdx =va7423; } else { sP =0; eP =length; v76d51.move("character",(ve8465.Idx *-1)); v76d51.moveStart("character",sP); v76d51.moveEnd("character",eP); ve6b45 =eP -sP; ve8465.Idx =sP; } if (ve8465.IsSelected) return (v76d51.text.length >0 ? 1 : 0); else return (ve6b45 >0 ? 1 : 0); } }, md8f7:function(vaa148,v0de91) { var v0b348 =ISGetObject((v0de91 ==null)? window.event.srcElement.id : v0de91); if (v0b348 !=null) { vaa148.c =v0b348; if (v0b348.HighLight ==null) return false; if (v0b348.HighLight.OnPrepareHighLightFunction !=null) { if (!eval(v0b348.HighLight.OnPrepareHighLightFunction)) return false; } if (v0b348.HtmlObj.createTextRange ==undefined) return false; vaa148.tr =v0b348.HtmlObj.createTextRange(); if (vaa148.tr ==null ||!wi5fa76.m8e842(v0b348.HighLight.Type)) return false; wi5fa76._c =v0b348; wi5fa76._h =v0b348.HighLight; return true; } else return false; }, m3f073:function(v99c0,vdf675) { if (v99c0.Type =="character") return v99c0.Idx; else { var v8a551; var v68798 =0; var v76412 =wi5fa76._c.HtmlObj; var v93d56 =vdf675.duplicate(); do { v8a551 =wi5fa76.m7275(v76412,v93d56); if (v8a551 ==0) break; if (v8a551 ==v76412.value.length) { v68798 =v99c0.HIdx; break; } v93d56.move("character",(v8a551 *-1)); v93d56.moveStart("character",(v8a551 -1)); v93d56.moveEnd("character",1); v93d56.expand(v99c0.Type); v68798 =v68798 +1; } while (v8a551 >0);  if (IS.moz ||IS.safari ||IS.opera) { v93d56.move(v99c0.Type,v68798); v93d56.detach(); }  v93d56 =null; return v68798; } }, md1391:function(vf8e56) { var v75920 =true; var v2b285 =wi5fa76._h; for (var v43083 =0; v43083 <v2b285.invalidTextArray.length; v43083++) { if (vf8e56 ==parseFloat(v2b285.invalidTextArray[v43083])) { v75920 =false; break; } } return v75920; }, m35932:function(vbfd39) { var vde339 =vbfd39.duplicate(); vbfd39 =wi5fa76.m23245(vbfd39,1); if (vbfd39.isEqual(vde339)) { vbfd39 =wi5fa76.m23245(vbfd39,-1); } return vbfd39; }, m23245:function(v00931,ve5243) { var vc3e75; var v6e464 =v00931.duplicate(); var i,ih; var v85269 =wi5fa76._h; i =v85269.Idx; ih =v85269.HIdx; var vbd150 =v85269.Type !="phrase" ? ve5243 : (v85269.HIdx +ve5243); do { if (wi5fa76.mb2a56(v85269,v6e464,vbd150)==0) { v6e464 =null; break; } if (v85269.Type =="phrase" ||wi5fa76.m4c44(wi5fa76._h,v6e464)) { if (v85269.Type =="phrase") vc3e75 =v85269.Idx; else vc3e75 =wi5fa76.m7275(wi5fa76._c.HtmlObj,v6e464); if (v85269.IsValidTextCustomFunction ==null ||v85269.IsValidTextCustomFunction =="") { if (wi5fa76.md1391(vc3e75)==true) { v85269.Idx =vc3e75; break; } } else { var vcc641 =true; vcc641 =v85269.IsValidTextCustomFunction(wi5fa76._c,vc3e75); if (vcc641 ==true) vcc641 =wi5fa76.md1391(vc3e75); if (vcc641) { v85269.Idx =vc3e75; break; } } } else { v6e464 =null; break; } vbd150 =v85269.Type !="phrase" ? ve5243 : (vbd150 +ve5243); if (v85269.Type =="phrase") { if (vbd150 >v85269.invalidTextArray.length ||(vbd150 +v85269.HIdx)<0) { v6e464 =null; break; } } } while (v6e464.text !="" &&v6e464.text !=null); if (v6e464 ==null) { v85269.Idx =i; v85269.HIdx =ih; } return (v6e464 ==null ? v00931 : v6e464); }  };function ClientBehaviorDestructor(){ var v24548 =delete wi5fa76;}window.attachEvent("onunload",ClientBehaviorDestructor);if (typeof (Sys)!="undefined") Sys.Application.notifyScriptLoaded();