1if("undefined"==typeof (RadWindowNamespace)){ 2RadWindowNamespace=new Object(); 3} 4Object.Extend=function(_1,_2){ 5for(var _3 in _2){ 6_1[_3]=_2[_3]; 7} 8}; 9if(typeof (window.RadControlsNamespace)=="undefined"){ 10window.RadControlsNamespace=new Object(); 11} 12RadControlsNamespace.AppendStyleSheet=function(_4,_5,_6){ 13if(!_6){ 14return; 15} 16if(!_4){ 17document.write("<"+"link"+" rel='stylesheet' type='text/css' href='"+_6+"' />"); 18}else{ 19var _7=document.createElement("LINK"); 20_7.rel="stylesheet"; 21_7.type="text/css"; 22_7.href=_6; 23document.getElementById(_5+"StyleSheetHolder").appendChild(_7); 24} 25}; 26RadWindowNamespace.RadUtil_Trim=function(_8){ 27return _8.replace(/^\s{1,}/ig,"").replace(/\s{1,}$/ig,""); 28}; 29RadWindowNamespace.RadUtil_Format=function(_9){ 30for(var i=1;i<arguments.length;i++){ 31_9=_9.replace(new RegExp("\\{"+(i-1)+"\\}","ig"),arguments[i]); 32} 33return _9; 34}; 35RadWindowNamespace.RadUtil_EncodeContent=function(_b,_c){ 36var _d=new Array("%","<",">","!","\"","#","$","&","'","(",")",",",":",";","=","?","[","]","\\","^","`","{","|","}","~","+"); 37var _e=_b; 38if(_c){ 39for(var i=0;i<_d.length;i++){ 40_e=_e.replace(new RegExp("\\x"+_d[i].charCodeAt(0).toString(16),"ig"),"%"+_d[i].charCodeAt(0).toString(16)); 41} 42}else{ 43for(var i=_d.length-1;i>=0;i--){ 44_e=_e.replace(new RegExp("%"+_d[i].charCodeAt(0).toString(16),"ig"),_d[i]); 45} 46} 47return _e; 48};
49RadWindowNamespace.RadUtil_PinnedList={}; 50RadWindowNamespace.RadUtil_SetPinned=function(_10,_11){ 51if(_10){ 52_11.TopOffset=parseInt(_11.style.top)-RadWindowNamespace.RadGetScrollTop(document); 53_11.LeftOffset=parseInt(_11.style.left)-RadWindowNamespace.RadGetScrollLeft(document); 54var _12=window.setInterval(function(){ 55RadWindowNamespace.RadUtil_UpdatePinnedElementPosition(_11); 56},100); 57RadWindowNamespace.RadUtil_PinnedList[_12]=_11; 58}else{ 59var _13=null; 60var _14=RadWindowNamespace.RadUtil_PinnedList; 61for(var _15 in _14){ 62if(_14[_15]==_11){ 63_13=_15; 64break; 65} 66} 67if(null!=_13){ 68window.clearInterval(_13); 69RadWindowNamespace.RadUtil_PinnedList[_13]=null; 70} 71_11.TopOffset=null; 72_11.LeftOffset=null; 73} 74}; 75RadWindowNamespace.RadUtil_UpdatePinnedElementPosition=function(_16){ 76var _17=(_16.LeftOffset!=null)?_16.LeftOffset+RadWindowNamespace.RadGetScrollLeft(document):parseInt(_16.style.left); 77var top=(_16.TopOffset!=null)?_16.TopOffset+RadWindowNamespace.RadGetScrollTop(document):parseInt(_16.style.top); 78if(_16.MoveTo){ 79_16.MoveTo(_17,top); 80} 81}; 82RadWindowNamespace.RadUtil_SetOnTop=function(_19){ 83var _1a=GetRadWindowManager(); 84var _1b=_1a.GetNewZidex(); 85if(_19.Overlay&&_19.Overlay.style){ 86_19.Overlay.style.zIndex=_1b; 87} 88_19.style.zIndex=_1b; 89}; 90RadWindowNamespace.RadUtil_EnableScrolling=function(_1c,_1d){ 91if(_1c){ 92document.body.style.overflow=_1d?_1d:""; 93document.documentElement.style.overflow=_1d?_1d:""; 94}else{ 95document.body.style.overflow="hidden"; 96document.documentElement.style.overflow="hidden"; 97} 98}; 99RadWindowNamespace.RadUtil_GetBrowserInnerRect=function(_1e){ 100if(!_1e){ 101_1e=window; 102} 103var _1f=_1e.document; 104var _20={}; 105if(document.all){ 106if(document.documentElement&&document.documentElement.clientHeight){ 107_20.width=_1f.documentElement.clientWidth; 108_20.height=_1f.documentElement.clientHeight; 109}else{ 110_20.width=_1f.body.clientWidth; 111_20.height=_1f.body.clientHeight; 112} 113}else{ 114_20.width=window.innerWidth?parseInt(_1e.innerWidth):parseInt(_1f.body.clientWidth); 115_20.height=window.innerHeight?parseInt(_1e.innerHeight):parseInt(_1f.body.clientHeight); 116} 117return _20; 118}; 119RadWindowNamespace.RadUtil_GetBrowserRect=function(_21){ 120if(!_21){ 121_21=window; 122} 123var _22=_21.document; 124var _23={}; 125if(_22.all&&"CSS1Compat"==_22.compatMode&&!_21.opera){ 126_23.width=_22.documentElement.clientWidth; 127_23.height=_22.documentElement.clientHeight; 128}else{ 129_23.width=window.innerWidth?parseInt(_21.innerWidth):parseInt(_22.body.clientWidth); 130_23.height=window.innerHeight?parseInt(_21.innerHeight):parseInt(_22.body.clientHeight); 131} 132_23.top=RadWindowNamespace.RadGetScrollTop(_22); 133_23.left=RadWindowNamespace.RadGetScrollLeft(_22); 134return _23; 135}; 136RadWindowNamespace.RadGetScrollTop=function(_24){ 137if(_24.documentElement&&_24.documentElement.scrollTop){ 138return _24.documentElement.scrollTop; 139}else{ 140return _24.body.scrollTop; 141} 142}; 143RadWindowNamespace.RadGetScrollLeft=function(_25){ 144if(_25.documentElement&&_25.documentElement.scrollLeft){ 145return _25.documentElement.scrollLeft; 146}else{ 147return _25.body.scrollLeft; 148} 149}; 150RadWindowNamespace.Box={GetOuterWidth:function(_26){ 151var _27=this.GetCurrentStyle(_26); 152return _26.offsetWidth+this.GetHorizontalMarginValue(_27); 153},GetOuterHeight:function(_28){ 154var _29=this.GetCurrentStyle(_28); 155return _28.offsetHeight+this.GetVerticalMarginValue(_29); 156},GetInnerWidth:function(_2a){ 157var _2b=this.GetCurrentStyle(_2a); 158return _2a.offsetWidth-this.GetHorizontalPaddingAndBorderValue(_2b); 159},GetInnerHeight:function(_2c){ 160var _2d=this.GetCurrentStyle(_2c); 161return _2c.offsetHeight-this.GetVerticalPaddingAndBorderValue(_2d); 162},SetOuterWidth:function(_2e,_2f){ 163var _30=this.GetCurrentStyle(_2e); 164if(_30){ 165_2f-=this.GetHorizontalMarginValue(_30); 166} 167if(this.IsCompat()){ 168if(_30){ 169_2f-=this.GetHorizontalPaddingAndBorderValue(_30); 170} 171} 172if(_2f<0){ 173_2e.style.width="auto"; 174}else{ 175_2e.style.width=_2f+"px"; 176} 177},SetOuterHeight:function(_31,_32){ 178var _33=_32; 179var _34=this.GetCurrentStyle(_31); 180_32-=this.GetVerticalMarginValue(_34); 181var _35=0; 182if(this.IsCompat()){ 183_35=this.GetVerticalPaddingAndBorderValue(_34); 184_32-=_35; 185} 186_31.style.height=_32+"px"; 187var _36=this.GetOuterHeight(_31); 188if(_36!=0&&_36!=_33){ 189var _37=(_36-_33); 190var _38=(_33-_37); 191if(_38>0){ 192_31.style.height=(_38-_35)+"px"; 193} 194} 195},SafeParseInt:function(_39){ 196var _3a=parseInt(_39); 197return isNaN(_3a)?0:_3a; 198},GetStyleValues:function(_3b){ 199if(!_3b){ 200return 0; 201} 202var _3c=0; 203for(var i=1;i<arguments.length;i++){ 204_3c+=this.SafeParseInt(_3b[arguments[i]]); 205} 206return _3c; 207},GetHorizontalPaddingAndBorderValue:function(_3e){ 208return this.GetStyleValues(_3e,"borderLeftWidth","paddingLeft","paddingRight","borderRightWidth"); 209},GetVerticalPaddingAndBorderValue:function(_3f){ 210return this.GetStyleValues(_3f,"borderTopWidth","paddingTop","paddingBottom","borderBottomWidth"); 211},GetHorizontalMarginValue:function(_40){ 212return this.GetStyleValues(_40,"marginLeft","marginRight"); 213},GetVerticalMarginValue:function(_41){ 214return this.GetStyleValues(_41,"marginTop","marginBottom"); 215},GetCurrentStyle:function(_42){ 216if(_42.currentStyle){ 217return _42.currentStyle; 218}else{ 219if(document.defaultView&&document.defaultView.getComputedStyle){ 220return document.defaultView.getComputedStyle(_42,null); 221}else{ 222return null; 223} 224} 225},IsCompat:function(){ 226return true; 227}}; 228RadWindowNamespace.RadGetElementRect=function(_43){ 229if(!_43){ 230_43=this; 231} 232var _44=0; 233var top=0; 234var _46=RadWindowNamespace.Box.GetOuterWidth(_43); 235var _47=RadWindowNamespace.Box.GetOuterHeight(_43); 236while(_43.offsetParent){ 237_44+=_43.offsetLeft; 238top+=_43.offsetTop; 239_43=_43.offsetParent; 240} 241if(_43.x){ 242_44=_43.x; 243} 244if(_43.y){ 245top=_43.y; 246} 247var _48={}; 248_48.left=RadWindowNamespace.RadUtil_GetIntValue(_44,0); 249_48.top=RadWindowNamespace.RadUtil_GetIntValue(top,0); 250_48.width=RadWindowNamespace.RadUtil_GetIntValue(_46,0); 251_48.height=RadWindowNamespace.RadUtil_GetIntValue(_47,0); 252return _48; 253}; 254RadWindowNamespace.RadUtil_DetectBrowser=function(_49){ 255_49=_49.toLowerCase(); 256if("ie"==_49){ 257_49="msie"; 258}else{ 259if("mozilla"==_49||"firefox"==_49){ 260_49="compatible"; 261} 262} 263var _4a=navigator.userAgent.toLowerCase(); 264place=_4a.indexOf(_49)+1; 265if(place){ 266return true; 267}else{ 268return false;
269} 270}; 271RadWindowNamespace.RadUtil_IsDocumentLoaded=function(_4b){ 272return (null!=document.readyState&&"complete"!=document.readyState)?false:true; 273}; 274RadWindowNamespace.RadUtil_GetIntValue=function(_4c,_4d){ 275if(!_4d){ 276_4d=0; 277} 278var _4e=parseInt(_4c); 279return (isNaN(_4e)?_4d:_4e); 280}; 281RadWindowNamespace.RadUtil_GetEventSource=function(e){ 282if(null==e){ 283return null; 284} 285return (e.srcElement?e.srcElement:e.target); 286}; 287RadWindowNamespace.RadUtil_CancelEvent=function(_50){ 288if(!_50){ 289return; 290} 291_50.returnValue=false; 292_50.cancelBubble=true; 293if(_50.stopPropagation){ 294_50.stopPropagation(); 295} 296if(_50.preventDefault){ 297_50.preventDefault(); 298} 299return false; 300}; 301RadWindowNamespace.RadUtil_AttachEventEx=function(_51,_52,_53){ 302_52=RadWindowNamespace.RadUtil_FixEventName(_52); 303if(_51.addEventListener){ 304_51.addEventListener(_52,_53,false); 305}else{ 306if(_51.attachEvent){ 307_51.attachEvent(_52,_53); 308} 309} 310}; 311RadWindowNamespace.RadUtil_DetachEventEx=function(_54,_55,_56){ 312_55=RadWindowNamespace.RadUtil_FixEventName(_55); 313if(_54.addEventListener){ 314_54.removeEventListener(_55,_56,false); 315}else{ 316if(_54.detachEvent){ 317_54.detachEvent(_55,_56); 318} 319} 320}; 321RadWindowNamespace.RadUtil_StartsWith=function(_57,_58){ 322if(typeof (_58)!="string"){ 323return false; 324} 325return (0==_57.indexOf(_58)); 326}; 327RadWindowNamespace.RadUtil_FixEventName=function(_59){ 328_59=_59.toLowerCase(); 329if(document.addEventListener){ 330if(RadWindowNamespace.RadUtil_StartsWith(_59,"on")){ 331return _59.substr(2); 332}else{ 333return _59; 334} 335}else{ 336if(document.attachEvent&&!RadWindowNamespace.RadUtil_StartsWith(_59,"on")){ 337return "on"+_59; 338}else{ 339return _59; 340} 341} 342};;;RadWindowNamespace.CurrentDragTarget=null; 343RadWindowNamespace.MakeMoveable=function(_1,_2,_3,_4,_5){ 344if(!_1||_1.Move){ 345return; 346} 347Object.Extend(_1,RadWindowNamespace.RadMoveableObject); 348_1.AllowMove=(_5)?true:false; 349if(_4!=false){ 350Object.Extend(_1,RadWindowNamespace.ResizableObject); 351_1.InitResize(); 352} 353_1.onmouseout=function(e){ 354if(""!=this.style.cursor){ 355this.style.cursor=""; 356} 357}; 358_1.onmousedown=function(e){ 359if(!this.MoveEnabled){ 360return; 361} 362if(!e){ 363e=window.event; 364} 365if(this.SetOnTop){ 366this.SetOnTop(); 367} 368if(!this.DragMode){ 369if(this.AllowResize&&this.ResizeDir){ 370this.DragMode=2; 371this.StartDrag(e); 372}else{ 373if(this.AllowMove&&this.GripHitTest(e)){ 374this.DragMode=1; 375} 376} 377} 378return RadWindowNamespace.RadUtil_CancelEvent(e); 379}; 380_1.onmouseup=function(e){ 381this.DragMode=""; 382RadWindowNamespace.HideOverlayImage(); 383if(this.OnMouseUp){ 384this.OnMouseUp(e); 385} 386}; 387_1.onmousemove=function(e){ 388if(!e){ 389e=window.event; 390} 391if(this.DragMode){ 392this.StartDrag(e); 393return; 394} 395if(this.IsMoving()){ 396return; 397} 398if(!this.IsResizing()&&null!=this.CalcResizeDir){ 399this.ResizeDir=this.CalcResizeDir(e); 400this.style.cursor=this.ResizeDir; 401} 402}; 403if(_3!=false&&document.all&&!window.opera){ 404RadWindowNamespace.EnableOverlayIframe(_1); 405} 406}; 407RadWindowNamespace.RadMoveableObject={OnDragStart:null,OnDragEnd:null,OnMouseUp:null,OnResize:null,OnShow:null,OnHide:null,AllowMove:true,AllowResize:true,UseDragHelper:true,DragMode:null,MoveEnabled:true,EnableMove:function(_a){ 408this.MoveEnabled=_a; 409},StartDrag:function(_b){ 410if(this.DragStarted){ 411return; 412} 413this.MouseX=_b.clientX; 414this.MouseY=_b.clientY; 415RadWindowNamespace.RadUtil_AttachEventEx(document,"onmouseup",RadWindowNamespace.GeneralMouseUp); 416RadWindowNamespace.RadUtil_AttachEventEx(document,"onmousemove",RadWindowNamespace.GeneralMouseMove); 417RadWindowNamespace.CurrentDragTarget=this; 418if(this.UseDragHelper){ 419this.DragHelper=RadWindowNamespace.GetDragHelper(); 420this.DragHelper.Show(this.GetRect()); 421} 422if(this.OnDragStart){ 423this.OnDragStart(_b); 424} 425this.ActualZindex=this.style.zIndex; 426this.style.zIndex=50000; 427RadWindowNamespace.ShowOverlayImage(this); 428this.DragHelper.style.zIndex=this.style.zIndex+1; 429this.DragStarted=true; 430},EndDrag:function(_c){ 431if(this.DragHelper){ 432var rc=this.DragHelper.GetRect(); 433if(1==this.DragMode){ 434this.MoveTo(rc.left,rc.top); 435}else{ 436if(2==this.DragMode){ 437this.SetSize(rc.width,rc.height); 438this.MoveTo(rc.left,rc.top); 439} 440} 441} 442this.CancelDrag(_c); 443if(this.OnDragEnd){ 444this.OnDragEnd(_c); 445} 446},CancelDrag:function(_e){ 447RadWindowNamespace.CurrentDragTarget=null; 448this.DragStarted=false; 449RadWindowNamespace.HideOverlayImage(); 450var _f=document; 451RadWindowNamespace.RadUtil_DetachEventEx(_f,"onmouseup",RadWindowNamespace.GeneralMouseUp); 452RadWindowNamespace.RadUtil_DetachEventEx(_f,"onmousemove",RadWindowNamespace.GeneralMouseMove); 453if(this.DragHelper){ 454this.DragHelper.Hide(); 455this.DragHelper=null; 456} 457this.DragMode=""; 458this.style.zIndex=this.ActualZindex; 459this.Show(); 460},DoDrag:function(e){ 461if(1==this.DragMode){ 462this.Move(e); 463}else{ 464if(2==this.DragMode){ 465this.Resize(e); 466} 467} 468this.MouseX=e.clientX; 469this.MouseY=e.clientY; 470},GripHitTest:function(_11){ 471var _12=RadWindowNamespace.RadUtil_GetEventSource(_11); 472try{ 473while(_12&&null!=_12.getAttribute){ 474if(null!=_12.getAttribute("grip")){ 475return _12; 476}else{ 477_12=_12.parentNode; 478} 479} 480} 481catch(e){ 482} 483return null; 484},Move:function(_13){ 485var dX=_13.clientX-this.MouseX; 486var dY=_13.clientY-this.MouseY; 487this.DragHelper.MoveBy(dX,dY); 488},MoveBy:function(dX,dY){ 489if(!this.Left){ 490this.Left=parseInt(this.style.left); 491} 492if(!this.Top){ 493this.Top=parseInt(this.style.top); 494} 495this.MoveTo(this.Left+dX,this.Top+dY); 496},MoveTo:function(x,y){ 497if(isNaN(x)||isNaN(y)){ 498return; 499} 500this.Left=x; 501this.Top=y; 502this.style.position="absolute"; 503this.style.left=this.Left+"px"; 504this.style.top=this.Top+"px"; 505if(this.NeedOverlay){ 506this.SetOverlay(); 507this.NeedOverlay=false; 508} 509if(this.Overlay){ 510this.Overlay.style.top=this.style.top; 511this.Overlay.style.left=this.style.left; 512} 513},SetSize:function(_1a,_1b,_1c){ 514_1a=parseInt(_1a); 515_1b=parseInt(_1b); 516if(_1a<5||_1b<5){ 517return; 518} 519if(!isNaN(_1a)&&_1a>=0){ 520RadWindowNamespace.Box.SetOuterWidth(this,_1a); 521if(this.Overlay){ 522RadWindowNamespace.Box.SetOuterWidth(this.Overlay,_1a); 523} 524} 525if(!isNaN(_1b)&&_1b>=0){ 526RadWindowNamespace.Box.SetOuterHeight(this,_1b); 527if(this.Overlay){ 528this.Overlay.style.height=_1b+"px"; 529} 530} 531if((false!=_1c)&&this.OnResize&&"function"==typeof (this.OnResize)){ 532this.OnResize(); 533} 534},GetRect:function(){ 535if(this==RadWindowNamespace.CurrentDragTarget&&this.DragHelper&&this.DragHelper.IsVisible()){ 536return RadWindowNamespace.RadGetElementRect(this.DragHelper); 537}else{ 538return RadWindowNamespace.RadGetElementRect(this); 539} 540},SetPosition:function(_1d){ 541if(_1d){ 542this.MoveTo(_1d.left,_1d.top); 543this.SetSize(_1d.width,_1d.height); 544} 545},SetOnTop:function(){ 546var _1e=0; 547var _1f=0; 548var _20=this.parentNode.childNodes; 549var _21; 550for(var i=0;i<_20.length;i++){ 551_21=_20[i]; 552if(1!=_21.nodeType){ 553continue; 554} 555_1f=parseInt(_21.style.zIndex); 556if(_1f>_1e){ 557_1e=_1f; 558} 559} 560this.style.zIndex=_1e+1; 561},Show:function(_23){ 562this.style.display=this.OldDisplayMode?this.OldDisplayMode:""; 563if(null!=_23){ 564this.SetPosition(_23); 565} 566this.SetOnTop(); 567if(this.ShowOverlay){ 568this.ShowOverlay(); 569} 570if(this.OnShow){ 571this.OnShow(); 572} 573},Hide:function(){ 574if(!this.IsVisible()){ 575return; 576} 577this.OldDisplayMode=this.style.display; 578this.style.display="none"; 579if(this.HideOverlay){ 580this.HideOverlay(); 581} 582if(this.OnHide){ 583this.OnHide(); 584} 585},IsVisible:function(){ 586return (this.style.display!="none"); 587},IsResizing:function(){ 588return (2==this.DragMode); 589},IsMoving:function(){ 590return (1==this.DragMode); 591},DisableMove:function(){ 592this.CalcResizeDir=null; 593this.Resize=null; 594this.Inflate=null; 595this.InitResize=null; 596this.SetResizeDirs=null; 597this.onmousemove=null; 598this.onmouseup=null; 599this.onmouseout=null; 600this.onmousedown=null; 601this.StartDrag=null; 602this.EndDrag=null; 603this.CancelDrag=null; 604this.DoDrag=null; 605this.GripHitTest=null; 606this.Move=null; 607this.MoveBy=null; 608this.MoveTo=null; 609this.SetOnTop=null; 610this.GetRect=null; 611this.SetPosition=null; 612this.SetOverlay=null; 613this.ShowOverlay=null; 614this.HideOverlay=null; 615this.IsOverlayVisible=null; 616this.Show=null; 617this.Hide=null; 618this.IsVisible=null; 619this.IsResizing=null; 620this.IsMoving=null; 621this.DragHelper=null; 622this.OnDragStart=null; 623this.OnDragEnd=null; 624this.OnMouseUp=null; 625this.OnResize=null; 626this.OnShow=null; 627this.OnHide=null; 628this.DragMode=null; 629this.GlobalDragHelper=null; 630this.Overlay=null; 631this.GeneralMouseUp=null; 632this.GeneralMouseMove=null; 633}}; 634RadWindowNamespace.GeneralMouseUp=function(e){ 635if(!RadWindowNamespace.CurrentDragTarget){ 636return; 637} 638if(!e){ 639e=window.event; 640} 641var _25=RadWindowNamespace.CurrentDragTarget; 642_25.EndDrag(e); 643_25.DragMode=""; 644}; 645RadWindowNamespace.MoveCounter=0; 646RadWindowNamespace.GeneralMouseMove=function(e){ 647var _27=RadWindowNamespace.CurrentDragTarget; 648if(!_27){ 649return; 650} 651if(RadWindowNamespace.MoveCounter++%2){ 652_27.DoDrag(e); 653} 654RadWindowNamespace.RadUtil_CancelEvent(e); 655}; 656RadWindowNamespace.GlobalDragHelper=null; 657RadWindowNamespace.GetDragHelper=function(){ 658if(this.GlobalDragHelper){ 659return this.GlobalDragHelper; 660} 661var _28=document.createElement("DIV"); 662document.body.appendChild(_28); 663_28.style.position="absolute"; 664_28.style.top=10; 665_28.style.left=10; 666_28.style.width=100; 667_28.style.height=100; 668_28.style.display="none"; 669_28.className="RadWDragHelper"; 670RadWindowNamespace.MakeMoveable(_28,false,false,true); 671this.GlobalDragHelper=_28; 672return _28; 673}; 674RadWindowNamespace.EnableOverlayIframe=function(obj){ 675obj.SetOverlay=function(){
676var frm=document.createElement("IFRAME"); 677frm=frm.cloneNode(true); 678frm.src="javascript:'';"; 679frm.frameBorder=0; 680frm.scrolling="no"; 681frm.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=0)"; 682var _2b=frm.style; 683_2b.overflow="hidden"; 684this.Overlay=frm; 685}; 686obj.ShowOverlay=function(){ 687this.parentNode.insertBefore(this.Overlay,this); 688var _2c=this.Overlay.style; 689_2c.display="inline"; 690_2c.position="absolute"; 691var _2d=this.GetRect(); 692_2c.width=_2d.width+"px"; 693_2c.height=_2d.height+"px"; 694_2c.left=_2d.left+"px"; 695_2c.top=_2d.top+"px"; 696}; 697obj.HideOverlay=function(){ 698this.Overlay.style.display="none"; 699}; 700if("complete"==document.readyState){ 701obj.SetOverlay(); 702}else{ 703obj.NeedOverlay=true; 704} 705}; 706RadWindowNamespace.GetOverlayImage=function(){ 707if(!this.OverlayImage){ 708var img=document.createElement("IMG"); 709if(document.all){ 710var _2f=new Function("return false"); 711img.setAttribute("unselectable","on"); 712img.setAttribute("galleryimg","no"); 713img.onselectstart=_2f; 714img.ondragstart=_2f; 715img.onmouseover=_2f; 716img.onmousemove=_2f; 717} 718img.onmouseup=RadWindowNamespace.HideOverlayImage; 719var _30=img.style; 720_30.display="none"; 721_30.position="absolute"; 722_30.left=_30.top="0px"; 723if(null!=document.readyState&&"complete"!=document.readyState){ 724RadWindowNamespace.RadUtil_AttachEventEx(window,"load",function(){ 725document.body.appendChild(img); 726}); 727}else{ 728document.body.appendChild(img); 729} 730this.OverlayImage=img; 731} 732return this.OverlayImage; 733}; 734RadWindowNamespace.ShowOverlayImage=function(_31){ 735var _32=RadWindowNamespace.GetOverlayImage(); 736if(_32){ 737var _33=RadWindowNamespace.RadUtil_GetBrowserInnerRect(); 738var _34=_32.style; 739_34.display=""; 740_34.width=parseInt(_33.width)+"px"; 741_34.height=parseInt(_33.height)+"px"; 742_34.top=RadWindowNamespace.RadGetScrollTop(_32.ownerDocument); 743_34.left=RadWindowNamespace.RadGetScrollLeft(_32.ownerDocument); 744if(_31&&_31.style.zIndex){ 745var _35=_31.style.zIndex; 746_34.zIndex=_35; 747_31.style.zIndex=_35++; 748} 749} 750}; 751RadWindowNamespace.HideOverlayImage=function(e){ 752var _37=RadWindowNamespace.GetOverlayImage(); 753if(_37){ 754_37.style.display="none"; 755} 756RadWindowNamespace.GeneralMouseUp(e); 757};;RadWindowMinimizeMode={SameLocation:1,MinimizeZone:2,Default:1}; 758RadWindowBehavior={None:0,Resize:1,Minimize:2,Close:4,Pin:8,Maximize:16,Move:32,Reload:64,Default:(1+2+4+8+16+32+64)}; 759function RadWindowInitialize(id,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d,_e,_f,_10,_11,_12,_13,_14,_15,_16,_17,_18,_19,_1a,_1b,_1c,_1d){ 760var _1e=GetRadWindowManager(); 761if(_4){ 762_1e.CreateSplash(_b,_c); 763return; 764} 765var _1f=_1e.CreateWindowObject(id); 766_1f._events=[]; 767_1f.Name=_2; 768_1f.JsName=_3; 769if(_6){ 770_1f["OnClientShow"]=_6; 771} 772if(_7){ 773_1f["OnClientClose"]=_7; 774} 775if(_8){ 776_1f["OnClientPageLoad"]=_8; 777} 778if(_1d){ 779_1f.ClientCallBackFunction=_1d; 780} 781if(_9){ 782_1f._iconUrl=_9; 783} 784if(_a){ 785_1f._minimizeIconUrl=_a; 786} 787if(_5){ 788_1f._url=_5; 789} 790if(_b){ 791_1f.Width=_b; 792} 793if(_c){ 794_1f.Height=_c; 795} 796if(_d){ 797_1f.private_SetSizeValue("Left",_d,false); 798} 799if(_e){ 800_1f.private_SetSizeValue("Top",_e,false); 801} 802if(_f){ 803_1f._title=_f; 804} 805if(_10){ 806_1f._minimizeZoneId=_10; 807} 808if(_11!=RadWindowBehavior.None){ 809_1f._initialBehavior=_11; 810} 811if(_12!=RadWindowBehavior.Default){ 812_1f._behavior=_12; 813} 814if(_13!=RadWindowMinimizeMode.Default){ 815_1f._minimizeMode=_13; 816} 817if(_18!=RadWindowClass.prototype._offsetElementId){ 818_1f._offsetElementId=_18; 819} 820if(_19!=RadWindowClass.prototype._openerElementId){ 821_1f._openerElementId=_19; 822} 823if(_1f._openerElementId){ 824var _20=function(){ 825_1f.SetOpenerElementId(_1f._openerElementId); 826}; 827var _21=document.getElementById(_1f._openerElementId); 828if(!_21){ 829RadWindowNamespace.RadUtil_AttachEventEx(window,"load",_20); 830}else{ 831_20(); 832} 833} 834if(_15!=null){ 835_1f._visibleStatusbar=_15; 836} 837if(_16!=null){ 838_1f._visibleTitlebar=_16; 839} 840if(_17!=null){ 841_1f._visibleOnPageLoad=_17; 842} 843if(_1a!=null){ 844_1f._destroyOnClose=_1a; 845} 846if(_1b!=null){ 847_1f._reloadOnShow=_1b; 848} 849if(_1c!=null){ 850_1f._showContentDuringLoad=_1c; 851} 852if(_14!=null){ 853_1f._modal=_14; 854} 855if(_1f._visibleOnPageLoad){ 856_1f.Show(); 857} 858return _1f; 859} 860function RadWindowClass(id){ 861this.IsIE=RadWindowNamespace.RadUtil_DetectBrowser("ie"); 862this.Id=id; 863this.JsName=id; 864this.Name=""; 865this.BrowserWindow=window; 866} 867RadWindowClass.prototype.ClientCallBackFunction=null; 868RadWindowClass.prototype.BrowserWindow=null; 869RadWindowClass.prototype.Width=300;
870RadWindowClass.prototype.Height=300; 871RadWindowClass.prototype.Left=null; 872RadWindowClass.prototype.Top=null; 873RadWindowClass.prototype._title=""; 874RadWindowClass.prototype._url=null; 875RadWindowClass.prototype._minimizeZoneId=""; 876RadWindowClass.prototype._offsetElementId=""; 877RadWindowClass.prototype._openerElementId=""; 878RadWindowClass.prototype._iconUrl=""; 879RadWindowClass.prototype._minimizeIconUrl=""; 880RadWindowClass.prototype._language="en_US"; 881RadWindowClass.prototype._localization={}; 882RadWindowClass.prototype._schemeBasePath=null; 883RadWindowClass.prototype._behavior=RadWindowBehavior.Default; 884RadWindowClass.prototype._initialBehavior=RadWindowBehavior.None; 885RadWindowClass.prototype._minimizeMode=RadWindowMinimizeMode.Default; 886RadWindowClass.prototype._maximized=false; 887RadWindowClass.prototype._minimized=false; 888RadWindowClass.prototype._pinned=false; 889RadWindowClass.prototype._closed=false; 890RadWindowClass.prototype._modal=false; 891RadWindowClass.prototype._loaded=false; 892RadWindowClass.prototype._visibleStatusbar=true; 893RadWindowClass.prototype._visibleTitlebar=true; 894RadWindowClass.prototype._visibleOnPageLoad=false; 895RadWindowClass.prototype._created=false; 896RadWindowClass.prototype._destroyOnClose=false; 897RadWindowClass.prototype._reloadOnShow=false; 898RadWindowClass.prototype._events=null; 899RadWindowClass.prototype._showContentDuringLoad=false; 900RadWindowClass.prototype._iframe=null; 901RadWindowClass.prototype.WrapperElement=null; 902RadWindowClass.prototype.TitleElement=null; 903RadWindowClass.prototype.HeaderRowElement=null; 904RadWindowClass.prototype.LoadingWrapper=null; 905RadWindowClass.prototype.MinimizedWindow=null; 906RadWindowClass.prototype.ClassicWindow=null; 907RadWindowClass.prototype.SetOffsetElementId=function(id){ 908this._offsetElementId=id; 909}; 910RadWindowClass.prototype.SetOpenerElementId=function(id){ 911var _25=this; 912_25._openerElementId=id; 913var _26=document.getElementById(_25._openerElementId); 914if(_26){ 915var _27=_26.onclick; 916_26.onclick=function(e){ 917if(_27){ 918_27(); 919} 920_25.Show(); 921if(e){ 922RadWindowNamespace.RadUtil_CancelEvent(e); 923} 924return false; 925}; 926}else{ 927alert(_25.Id+" (OpenerElementId)- Could not find element on page with id "+_25._openerElementId); 928} 929}; 930RadWindowClass.prototype.ExecuteServerClientEvent=function(_29){ 931var _2a=this[_29]; 932if(!_2a){ 933return; 934} 935if(typeof (_2a)=="string"){ 936_2a=eval(_2a); 937} 938if(typeof (_2a)!="function"){ 939return; 940} 941try{ 942return _2a(this); 943} 944catch(e){ 945alert("Exception while executing client event "+_29+" Error:"+e.message); 946} 947return true; 948}; 949RadWindowClass.prototype.AutoResize=function(){ 950try{ 951var frm=this._iframe; 952var _2c=function(){ 953var _2d=frm.clientHeight; 954var _2e=frm.contentWindow.document.body.scrollHeight; 955if(_2e>_2d){ 956frm.style.height=parseInt(_2e)+"px"; 957} 958if(!document.all){ 959frm.style.marginTop="-3px"; 960frm.style.marginBottom="-3px"; 961} 962}; 963_2c(); 964} 965catch(e){ 966} 967}; 968RadWindowClass.prototype.Dispose=function(){ 969try{ 970this.Close(); 971var _2f=document.getElementById(this._openerElementId); 972if(_2f){ 973_2f.onclick=null; 974} 975if(this.WrapperElement){ 976if(this.WrapperElement.DisableMove){ 977this.WrapperElement.DisableMove(); 978} 979this.WrapperElement=null; 980} 981if(this.HeaderRowElement){ 982this.HeaderRowElement.ondblclick=null; 983} 984this.HeaderRowElement=null; 985this.TitleElement=null; 986this.StatusElement=null; 987if(this.IframeDocumentClickHandler&&this.IframeDocument){ 988RadWindowNamespace.RadUtil_DetachEventEx(this.IframeDocument,"click",this.IframeDocumentClickHandler); 989this.IframeDocumentClickHandler=null; 990this.IframeDocument=null; 991} 992if(this.IframeLoadHandler){ 993RadWindowNamespace.RadUtil_DetachEventEx(this._iframe,"load",this.IframeLoadHandler); 994this.IframeLoadHandler=null; 995} 996if(this._iframe){ 997this._iframe.src="javascript:'<html></html>';"; 998this._iframe=null; 999} 1000window[this.JsName]=null; 1001this.LoadingWrapper=null; 1002if(this.MinimizedWindow&&this.MinimizedWindow.Dispose){ 1003this.MinimizedWindow.Dispose(); 1004} 1005this.MinimizedWindow=null; 1006if(this.ModalElement&&this.ModalElement.Dispose){ 1007this.ModalElement.Dispose(); 1008} 1009this.ModalElement=null; 1010this._events=null; 1011this.RestoreRect=null; 1012var _30=document.getElementById("WindowHolder_"+this.Id); 1013if(_30){ 1014_30.innerHTML=""; 1015} 1016} 1017catch(e){ 1018} 1019}; 1020RadWindowClass.prototype.AttachClientEvent=function(_31,_32){ 1021if(!_32){ 1022return; 1023}else{ 1024if(null==this._events[_31]){ 1025this._events[_31]=[]; 1026} 1027var _33=this._events[_31]; 1028if(typeof (_32)=="string"){ 1029_32=eval(_32); 1030} 1031_33[_33.length]=_32; 1032} 1033}; 1034RadWindowClass.prototype.ExecuteClientEvent=function(_34){ 1035var _35=this._events[_34]; 1036if(null!=_35){ 1037var _36=_35.length; 1038for(var i=0;i<_36;i++){ 1039try{ 1040_35[i](this); 1041} 1042catch(e){ 1043} 1044} 1045} 1046return true; 1047};
1048RadWindowClass.prototype.SetModal=function(_38){ 1049this._modal=_38; 1050if(this._modal&&!this.ModalElement){ 1051this.ModalElement=new RadWindowNamespace.RadWindowModal(this); 1052}else{ 1053if(!this._modal&&this.ModalElement){ 1054this.ModalElement.Dispose(); 1055this.ModalElement=null; 1056} 1057} 1058}; 1059RadWindowClass.prototype.MoveTo=function(x,y){ 1060var _3b=this; 1061if(!_3b.WrapperElement){ 1062return; 1063} 1064x=parseInt(x); 1065y=parseInt(y); 1066_3b.WrapperElement.MoveTo(x,y); 1067if(!_3b.RestoreRect){ 1068_3b.RestoreRect={}; 1069} 1070_3b.RestoreRect=_3b.WrapperElement.GetRect(); 1071}; 1072RadWindowClass.prototype.SetWidth=function(_3c){ 1073if(!this.WrapperElement){ 1074this.Width=_3c; 1075return; 1076} 1077var _3d=this.WrapperElement.GetRect(); 1078this.SetSize(_3c,_3d.height); 1079}; 1080RadWindowClass.prototype.SetHeight=function(_3e){ 1081if(!this.WrapperElement){ 1082this.Height=_3e; 1083return; 1084} 1085var _3f=this.WrapperElement.GetRect(); 1086this.SetSize(_3f.width,_3e); 1087}; 1088RadWindowClass.prototype.GetWidth=function(){ 1089if(!this.WrapperElement){ 1090return this.Width; 1091} 1092var _40=this.WrapperElement.GetRect(); 1093if(_40.width==0&&this.RestoreRect){ 1094return this.RestoreRect.width; 1095} 1096return _40.width; 1097}; 1098RadWindowClass.prototype.GetHeight=function(){ 1099if(!this.WrapperElement){ 1100return this.Height; 1101} 1102var _41=this.WrapperElement.GetRect(); 1103if(_41.height==0&&this.RestoreRect){ 1104return this.RestoreRect.height; 1105} 1106return _41.height; 1107};
1108RadWindowClass.prototype.GetLeftPosition=function(){ 1109if(!this.WrapperElement){ 1110return this.Left; 1111} 1112var _42=this.WrapperElement.GetRect(); 1113if(this.IsMinimized()||(_42.left==0&&this.RestoreRect)){ 1114return this.RestoreRect.left; 1115} 1116return _42.left; 1117}; 1118RadWindowClass.prototype.GetTopPosition=function(){ 1119if(!this.WrapperElement){ 1120return this.Top; 1121} 1122var _43=this.WrapperElement.GetRect(); 1123if(this.IsMinimized()||(_43.top==0&&this.RestoreRect)){ 1124return this.RestoreRect.top; 1125} 1126return _43.top; 1127}; 1128RadWindowClass.prototype.SetTitle=function(_44){ 1129if(!_44){ 1130return; 1131} 1132if(this.TitleElement){ 1133this.TitleElement.innerHTML=_44; 1134} 1135this._title=_44; 1136}; 1137RadWindowClass.prototype.GetWindowManager=function(){ 1138return GetRadWindowManager(); 1139}; 1140RadWindowClass.prototype.GetRectangle=function(){ 1141if(this.IsVisible()){ 1142return this.WrapperElement.GetRect(); 1143}else{ 1144return this.RestoreRect; 1145} 1146}; 1147RadWindowClass.prototype.Center=function(){ 1148var _45=this.WrapperElement; 1149var _46=RadWindowNamespace.RadGetElementRect(_45); 1150var _47=RadWindowNamespace.RadUtil_GetBrowserRect(); 1151var _48=_46.width; 1152var _49=_46.height; 1153var x=_47.left+((_47.width-parseInt(_48))/2); 1154var y=_47.top+((_47.height-parseInt(_49))/2); 1155if(!isNaN(x)){ 1156_45.style.left=(x)+"px"; 1157} 1158if(!isNaN(y)){ 1159_45.style.top=(y)+"px"; 1160} 1161if(_45){ 1162this.RestoreRect=_45.GetRect(); 1163} 1164}; 1165RadWindowClass.prototype.SetVisible=function(_4c){ 1166if(_4c){ 1167if(!this.WrapperElement.Show){ 1168this.WrapperElement.style.display=""; 1169return; 1170} 1171var _4d=this.RestoreRect; 1172if(_4d){ 1173this.WrapperElement.MoveTo(_4d.left,_4d.top); 1174} 1175this.WrapperElement.Show(); 1176if(_4d){ 1177this.WrapperElement.SetSize(_4d.width,_4d.height); 1178} 1179this._closed=false; 1180}else{ 1181if(!this.IsVisible()){ 1182return; 1183} 1184if(this.WrapperElement.Hide){ 1185this.WrapperElement.Hide(); 1186}else{ 1187this.WrapperElement.style.display="none"; 1188} 1189} 1190this.UpdateStatus(); 1191}; 1192RadWindowClass.prototype.SetSize=function(_4e,_4f){ 1193var _50=this; 1194var _51=function(){ 1195if(_50.StatusElement){ 1196_50.StatusElement.style.width=""; 1197} 1198var _52=parseInt(_4e); 1199var _53=parseInt(_4f); 1200_50.Width=_52; 1201_50.Height=_53; 1202if(_50.WrapperElement.SetSize){ 1203_50.WrapperElement.SetSize(_52,_53); 1204}else{ 1205_50.WrapperElement.style.height=_53+"px"; 1206_50.WrapperElement.style.width=_52+"px"; 1207} 1208if(_50.RestoreRect){ 1209_50.RestoreRect.width=_52; 1210_50.RestoreRect.height=_53; 1211} 1212_50.UpdateStatus(); 1213}; 1214_51(); 1215}; 1216RadWindowClass.prototype.Create=function(){ 1217if(!this.WrapperElement){ 1218var _54=GetRadWindowManager(); 1219var _55=this.private_BuildWindowHtml(); 1220var _56=document.createElement("SPAN"); 1221_56.setAttribute("id","WindowHolder_"+this.Id); 1222document.body.appendChild(_56); 1223_56.innerHTML=_55; 1224this.WrapperElement=document.getElementById("RadWindowWrapperElement"+this.Id); 1225this.TitleElement=document.getElementById("RadWindowTitle"+this.Id); 1226this.HeaderRowElement=document.getElementById("RadWindowHeaderRow"+this.Id); 1227this.StatusElement=document.getElementById("RadWStatus"+this.Id); 1228this._iframe=document.getElementById("RadWindowContentFrame"+this.Id); 1229this.LoadingWrapper=document.getElementById("RadWindowLoadingWrapper"+this.Id); 1230RadWindowNamespace.MakeMoveable(this.WrapperElement,useDragHelper=true,this._useOverlay,this.IsBehaviorEnabled(RadWindowBehavior.Resize),this.IsBehaviorEnabled(RadWindowBehavior.Move)); 1231var _57=this; 1232this.WrapperElement.OnMouseUp=function(){ 1233_57.SetActive(true); 1234}; 1235this.WrapperElement.OnDragEnd=function(){ 1236_57.RestoreRect=_57.WrapperElement.GetRect(); 1237_57.SetActive(true); 1238_57.UpdateStatus(); 1239_57.ExecuteClientEvent("ondragend"); 1240}; 1241if(this.IsBehaviorEnabled(RadWindowBehavior.Maximize)&&this.HeaderRowElement){ 1242this.HeaderRowElement.ondblclick=function(){ 1243_57.ToggleMaximize(); 1244}; 1245} 1246this.CreateBackReference(); 1247} 1248this._created=true; 1249}; 1250RadWindowClass.prototype.Show=function(){ 1251var _58=this; 1252var _59=function(){ 1253var _5a=false; 1254if(!_58._created){ 1255_58.Create(); 1256if(RadWindowBehavior.Minimize&_58._initialBehavior){ 1257_58.Minimize(); 1258_5a=true; 1259}else{ 1260if(RadWindowBehavior.Maximize&_58._initialBehavior){ 1261_58.Maximize(); 1262_5a=true; 1263} 1264} 1265} 1266if(_58._url&&(!_58._loaded||_58._reloadOnShow)){ 1267_58.SetUrl(_58._url); 1268} 1269if(_5a){ 1270return; 1271} 1272if(!_58.RestoreRect){ 1273var _5b=_58.WrapperElement; 1274if(_58.WrapperElement&&_58.WrapperElement.SetSize){ 1275_58.WrapperElement.SetSize(_58.Width,_58.Height); 1276} 1277if(!_58.IsVisible()){ 1278_5b.Show(); 1279} 1280var _5c=_58.GetLeftTopPosition(); 1281var x=_5c.left; 1282var y=_5c.top; 1283_58.SetVisible(true); 1284if(_58.IsIE&&"CSS1Compat"==document.compatMode){ 1285_5b.SetSize(_58.Width,_58.Height); 1286} 1287_58.MoveTo(x,y); 1288}else{ 1289_58.SetVisible(true); 1290} 1291if(RadWindowBehavior.Pin&_58._initialBehavior){ 1292_58._pinned=false; 1293_58.TogglePin(); 1294} 1295if(_58.IsMinimizeModeEnabled(RadWindowMinimizeMode.MinimizeZone)&&!_58.MinimizedWindow){ 1296_58.MinimizedWindow=new RadWindowNamespace.RadWindowMinimize(_58); 1297} 1298_58.SetModal(_58._modal); 1299_58.SetTitle(_58._title); 1300if(_58._modal){ 1301_58.SetActive(true); 1302} 1303_58._closed=false; 1304if(_58.IsMinimized()){ 1305_58.ExecuteClientEvent("onrestore"); 1306} 1307_58._minimized=false; 1308_58.ExecuteClientEvent("onshow"); 1309_58.ExecuteServerClientEvent("OnClientShow"); 1310_58.SizePending=null; 1311_58.MovePending=null; 1312}; 1313if((null!=document.readyState&&"complete"!=document.readyState)){ 1314RadWindowNamespace.RadUtil_AttachEventEx(window,"load",_59); 1315}else{ 1316_59(); 1317} 1318}; 1319RadWindowClass.prototype.Hide=function(){ 1320this.SetVisible(false); 1321}; 1322RadWindowClass.prototype.GetLeftTopPosition=function(){ 1323var _5f=this; 1324var x=null,y=null; 1325if(_5f._offsetElementId){ 1326var _62=document.getElementById(_5f._offsetElementId); 1327if(_62){ 1328var _63=RadWindowNamespace.RadGetElementRect(_62); 1329if(_63){ 1330x=(_63.left+(this.Left?parseInt(this.Left):0)); 1331y=(_63.top+(this.Top?parseInt(this.Top):0)); 1332} 1333} 1334} 1335if(null==x||null==y){ 1336var _64=RadWindowNamespace.RadUtil_GetBrowserRect();
1337x=RadWindowNamespace.RadGetScrollLeft(document)+(_5f.Left?parseInt(_5f.Left):(_64.width-parseInt(_5f.GetWidth()))/2); 1338y=RadWindowNamespace.RadGetScrollTop(document)+(_5f.Top?parseInt(_5f.Top):(_64.height-parseInt(_5f.GetHeight()))/2); 1339var _65=parseInt(_5f.GetHeight()); 1340if(_65<_64.height){ 1341var _66=_65-_64.height; 1342if(_66>0){ 1343y+=_66/2; 1344} 1345} 1346} 1347return {left:x,top:y}; 1348}; 1349RadWindowClass.prototype.CallBack=function(_67,_68){ 1350if(true!=_68){ 1351this.Close(); 1352} 1353var _69=this.ClientCallBackFunction; 1354if(_69){ 1355if("string"==typeof (_69)){ 1356_69=eval(_69); 1357} 1358if("function"==typeof (_69)){ 1359_69(this,_67); 1360} 1361} 1362}; 1363RadWindowClass.prototype.CreateBackReference=function(){ 1364var _6a=this; 1365if(!_6a.Argument){ 1366_6a.Argument={}; 1367} 1368var _6b=this._iframe; 1369try{ 1370if(this.ClassicWindow){ 1371var _6c=this.ClassicWindow; 1372_6c.radWindow=_6a; 1373}else{ 1374_6b.radWindow=_6a; 1375if(_6b.contentWindow!=null){ 1376_6b.contentWindow.radWindow=_6a; 1377} 1378} 1379} 1380catch(e){ 1381} 1382}; 1383RadWindowClass.prototype.GetContentFrame=function(){ 1384return this._iframe; 1385}; 1386RadWindowClass.prototype.GetTitlebar=function(){ 1387return this.TitleElement; 1388}; 1389RadWindowClass.prototype.GetStatusbar=function(){ 1390return this.StatusElement; 1391}; 1392RadWindowClass.prototype.SetContent=function(_6d){ 1393this.CreateBackReference(); 1394var frm=this._iframe; 1395if(_6d){ 1396var _6f="function GetRadWindow(){"+"var oWindow = null;"+"if (window.radWindow) oWindow = window.radWindow;"+"else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;"+"return oWindow; }"; 1397if(window.opera){ 1398frm.src=this._schemeBasePath+"../../Opera.html"; 1399var _70=this; 1400frm.attachEvent("onload",function(){ 1401frm.contentWindow.document.body.innerHTML=_6d; 1402re=new RegExp("<(SCRIPT)([^>]*)>([\\s\\S]*?)</(SCRIPT)([^>]*)>","ig"); 1403var _71=[]; 1404_6d.replace(re,function(_72,a,b,c){ 1405_71[_71.length]=c; 1406return _72; 1407}); 1408var _76=frm.contentWindow.document.body; 1409var _77=_76.getElementsByTagName("SCRIPT"); 1410var _78=_77.length; 1411for(var i=0;i<_78;i++){ 1412var _7a=_71[i]; 1413if(_7a.indexOf("GetLocalizedString")>-1){ 1414var _7b=_7a.indexOf("GetLocalizedString("); 1415var _7c=_7a.indexOf(")",_7b+19); 1416var _7d=_7a.substring(_7b+20,_7c-1); 1417_77[i].parentNode.innerHTML+=_70.GetLocalizedString(_7d); 1418} 1419} 1420var _7e=frm.contentWindow.document; 1421var _7f=_7e.createElement("SCRIPT"); 1422_76.insertBefore(_7f,_76.firstChild); 1423_7f.innerHTML=_6f; 1424var _80=_76.getElementsByTagName("STYLE"); 1425if(_80&&_80.length>0){ 1426var _81=new RegExp("<(STYLE)([^>]*)>[\\s\\S]*?</(STYLE)([^>]*)>","ig"); 1427var stl=_6d.match(_81); 1428var _83=_80[0]; 1429if(stl){ 1430_83.innerText=stl; 1431} 1432} 1433}); 1434}else{ 1435function fillContent(doc){ 1436doc.write(""); 1437doc.close(); 1438doc.open(); 1439doc.write("<"+"script"+">"+_6f+"<"+"/script>"+_6d); 1440doc.close(); 1441} 1442if(!frm.contentWindow||!frm.contentWindow.document){ 1443frm.src=this._schemeBasePath+"../../Opera.html"; 1444var _70=this; 1445frm.addEventListener("load",function(){ 1446fillContent(frm.contentWindow.document); 1447},false); 1448}else{ 1449fillContent(frm.contentWindow.document); 1450} 1451} 1452} 1453}; 1454RadWindowClass.prototype.GetUrl=function(){ 1455return this._url; 1456}; 1457RadWindowClass.prototype.SetUrl=function(url){ 1458var _86=url; 1459this._url=_86; 1460var _87=_86; 1461if(this._reloadOnShow){ 1462var str="rwndrnd="+Math.random(); 1463if(_87.indexOf("?")>-1){ 1464str="&"+str; 1465}else{ 1466str="?"+str; 1467} 1468_87+=str; 1469} 1470this._iframe.src=_87; 1471if(!this._showContentDuringLoad){ 1472this._iframe.style.width="0px"; 1473this._iframe.style.height="0px"; 1474} 1475this.LoadingWrapper.style.display=""; 1476var _89=this; 1477var _8a=function(){ 1478_89.LoadingWrapper.style.display="none"; 1479_89._iframe.style.width="100%"; 1480_89._iframe.style.height="100%"; 1481if(!_89.IsVisible()||_89.IsActive()||_89.IsClosed()){ 1482}else{ 1483_89.SetActive(true); 1484} 1485try{ 1486_89.IframeDocument=_89._iframe.contentWindow.document; 1487_89.IframeDocumentClickHandler=function(e){ 1488if(!_89.IsVisible()||_89.IsActive()||_89.IsClosed()){ 1489return; 1490} 1491_89.SetActive(true); 1492}; 1493RadWindowNamespace.RadUtil_AttachEventEx(_89.IframeDocument,"click",_89.IframeDocumentClickHandler); 1494if(_89.IframeDocument.title){ 1495_89.SetTitle(_89.IframeDocument.title); 1496} 1497} 1498catch(e){ 1499} 1500_89.ExecuteServerClientEvent("OnClientPageLoad"); 1501_89.ExecuteClientEvent("onwindowload"); 1502}; 1503if(!this._loaded){ 1504this.IframeLoadHandler=_8a; 1505RadWindowNamespace.RadUtil_AttachEventEx(this._iframe,"load",this.IframeLoadHandler); 1506if(window.opera&&this._iframe.attachEvent){ 1507this._iframe.attachEvent("onload",_8a); 1508} 1509} 1510this._loaded=true; 1511};
1512RadWindowClass.prototype.Reload=function(){ 1513this.LoadingWrapper.style.display=""; 1514try{ 1515this._iframe.contentWindow.location.reload(); 1516} 1517catch(e){ 1518this.LoadingWrapper.style.display="none"; 1519} 1520}; 1521RadWindowClass.prototype.SetActive=function(_8c){ 1522if(false!=_8c){ 1523var _8d=this._url; 1524try{ 1525_8d=this._iframe.contentWindow.location.href; 1526if(_8d.indexOf("javascript")==0){ 1527_8d=""; 1528} 1529} 1530catch(e){ 1531_8d=""; 1532} 1533if(!this.GetStatus()){ 1534} 1535this.private_SetActiveCssClass(true); 1536RadWindowNamespace.RadUtil_SetOnTop(this.WrapperElement); 1537var _8e=GetRadWindowManager(); 1538var _8f=_8e.GetActiveWindow(); 1539if(this==_8f){ 1540return; 1541}else{ 1542_8e.SetActiveWindow(this); 1543} 1544} 1545}; 1546RadWindowClass.prototype.SetActiveProtected=function(_90){ 1547this.private_SetActiveCssClass(_90); 1548if(_90){ 1549var _91=this.WrapperElement; 1550if(!this.IsIE&&(this._minimizeMode!=RadWindowMinimizeMode.MinimizeZone)){ 1551_91.Hide(); 1552_91.Show(); 1553} 1554} 1555this.ExecuteClientEvent(_90?"onactivate":"ondeactivate"); 1556}; 1557RadWindowClass.prototype.SetStatus=function(_92){ 1558if(this.StatusElement){ 1559this.StatusElement.value=_92; 1560var _93=this.StatusElement.parentNode; 1561var _94=_93&&_93.offsetWidth>0?_93.offsetWidth-5:""; 1562if(_94){ 1563_94+="px"; 1564} 1565this.StatusElement.style.width=_94; 1566} 1567}; 1568RadWindowClass.prototype.UpdateStatus=function(_95){ 1569if(this.StatusElement){ 1570var _96=this; 1571this.StatusElement.style.width=""; 1572window.setTimeout(function(){ 1573_96.SetStatus(_96.GetStatus()); 1574}); 1575} 1576}; 1577RadWindowClass.prototype.GetStatus=function(){ 1578if(this.StatusElement){ 1579return this.StatusElement.value; 1580} 1581}; 1582RadWindowClass.prototype.Minimize=function(){ 1583if(!this._created||this._closed||this._minimized){ 1584return; 1585} 1586this.WrapperElement.Hide(); 1587RadWindowNamespace.RadUtil_EnableScrolling(true); 1588this._minimized=true; 1589this._maximized=false; 1590var _97=GetRadWindowManager(); 1591if(this==_97.GetActiveWindow()){ 1592_97.ActiveWindow=null; 1593} 1594if(!this.MinimizedWindow){ 1595this.MinimizedWindow=new RadWindowNamespace.RadWindowMinimize(this); 1596} 1597this.ExecuteClientEvent("onminimize"); 1598}; 1599RadWindowClass.prototype.ToggleMaximize=function(){ 1600var _98=this._pinned; 1601if(_98){ 1602this.TogglePin(); 1603} 1604if(this._maximized){ 1605this.Restore(); 1606}else{ 1607this.Maximize(); 1608} 1609if(_98){ 1610this.TogglePin(); 1611} 1612}; 1613RadWindowClass.prototype.Restore=function(){ 1614if(!this._created){ 1615return; 1616} 1617if(this.WrapperElement&&this.WrapperElement.EnableMove){ 1618this.WrapperElement.EnableMove(true); 1619} 1620if(this.OnResizeHanlder){ 1621RadWindowNamespace.RadUtil_DetachEventEx(window,"resize",this.OnResizeHanlder); 1622this.OnResizeHanlder=null; 1623} 1624RadWindowNamespace.RadUtil_EnableScrolling(true,this.PageOverflow); 1625this.PageOverflow=null; 1626var _99=this.RestoreRect; 1627if(!_99){ 1628var _9a=this.GetLeftTopPosition(); 1629this.RestoreRect={width:this.Width,height:this.Height,top:_9a.top,left:_9a.left}; 1630_99=this.RestoreRect; 1631} 1632this.SetVisible(true); 1633var _9b=this.WrapperElement; 1634_9b.SetSize(_99.width,_99.height); 1635_9b.MoveTo(_99.left,_99.top); 1636this.private_SetAttribute("ToggleMaximizeButton","title",this.GetLocalizedString("Maximize")); 1637this.private_SetAttribute("ToggleMaximizeButton","src",this.private_GetImageUrl("Maximize.gif")); 1638this._maximized=false; 1639this._minimized=false; 1640this.SetActive(true); 1641this.ExecuteClientEvent("onrestore"); 1642return this; 1643}; 1644RadWindowClass.prototype.Maximize=function(){ 1645if(!this._created){ 1646return; 1647} 1648this.SetVisible(true); 1649if(this.WrapperElement&&this.WrapperElement.EnableMove){ 1650this.WrapperElement.EnableMove(false); 1651} 1652this.PageOverflow=document.body.style.overflow; 1653RadWindowNamespace.RadUtil_EnableScrolling(false); 1654var _9c=RadWindowNamespace.RadUtil_GetBrowserRect(); 1655this.WrapperElement.MoveTo(_9c.left,_9c.top); 1656this.WrapperElement.SetSize(_9c.width,_9c.height,false); 1657this.private_SetAttribute("ToggleMaximizeButton","title",this.GetLocalizedString("Restore")); 1658this.private_SetAttribute("ToggleMaximizeButton","src",this.private_GetImageUrl("Restore.gif")); 1659this._maximized=true; 1660this._minimized=false; 1661this.SetActive(true); 1662if(!this.OnResizeHanlder){ 1663var _9d=this.WrapperElement; 1664var _9e=this; 1665this.OnResizeHanlder=function(){ 1666var _9f=RadWindowNamespace.RadUtil_GetBrowserRect(); 1667_9d.MoveTo(_9f.left,_9f.top);
1668_9d.SetSize(_9f.width,_9f.height,false); 1669}; 1670RadWindowNamespace.RadUtil_AttachEventEx(window,"resize",this.OnResizeHanlder); 1671} 1672this.ExecuteClientEvent("onmaximize"); 1673}; 1674RadWindowClass.prototype.Close=function(_a0){ 1675if(!this._created||this._closed){ 1676return; 1677} 1678RadWindowNamespace.RadUtil_EnableScrolling(true); 1679this.SetVisible(false); 1680this._closed=true; 1681if(null!=_a0){ 1682this.CallBack(_a0); 1683} 1684var _a1=GetRadWindowManager(); 1685if(this==_a1.GetActiveWindow()){ 1686_a1.ActiveWindow=null; 1687} 1688this.ExecuteClientEvent("onclose"); 1689if(_a1._singleNonMinimizedWindow&&this.IsMinimizeModeEnabled(RadWindowMinimizeMode.MinimizeZone)){ 1690this.ExecuteServerClientEvent("OnClientClose"); 1691this.Argument=null; 1692return; 1693} 1694if(this.WindowToSetActive){ 1695this.WindowToSetActive.SetActive(true); 1696this.WindowToSetActive=null; 1697}else{ 1698_a1.FocusNextWindow(this); 1699} 1700if(true==this._destroyOnClose){ 1701_a1.UnregisterWindow(this); 1702} 1703this.ExecuteServerClientEvent("OnClientClose"); 1704this.Argument=null; 1705}; 1706RadWindowClass.prototype.TogglePin=function(){ 1707if(!this._created){ 1708return; 1709} 1710this._pinned=!this._pinned; 1711var _a2=this._pinned?"PinOn":"PinOff"; 1712this.private_SetAttribute("TogglePinButton","title",this.GetLocalizedString(_a2)); 1713this.private_SetAttribute("TogglePinButton","src",this.private_GetImageUrl(_a2+".gif")); 1714RadWindowNamespace.RadUtil_SetPinned(this._pinned,this.WrapperElement); 1715this.ExecuteClientEvent("ontogglepin"); 1716}; 1717RadWindowClass.prototype.private_SetAttribute=function(id,_a4,_a5){ 1718var _a6=document.getElementById(id+this.Id); 1719if(_a6&&_a6.setAttribute){ 1720_a6.setAttribute(_a4,_a5,0); 1721} 1722}; 1723RadWindowClass.prototype.private_SetSizeValue=function(_a7,_a8,_a9){ 1724if(null==_a8||""==_a8){ 1725if(!_a9){ 1726return; 1727} 1728}else{ 1729this[_a7]=_a8; 1730} 1731}; 1732RadWindowClass.prototype.private_GetImageUrl=function(_aa){ 1733return this._schemeBasePath+"Img/"+_aa; 1734}; 1735RadWindowClass.prototype.GetLocalizedString=function(key){ 1736var str=this._localization[key]; 1737return str?str:key; 1738}; 1739RadWindowClass.prototype.toString=function(){ 1740return "object [RadWindow id="+this.Id+"]"; 1741}; 1742RadWindowClass.prototype.private_SetActiveCssClass=function(_ad){ 1743this.WrapperElement.className=_ad?"RadWWrapperActive":"RadWWrapperInactive"; 1744}; 1745RadWindowClass.prototype.IsMaximized=function(){ 1746return this._maximized; 1747}; 1748RadWindowClass.prototype.IsMinimized=function(){ 1749return this._minimized; 1750}; 1751RadWindowClass.prototype.IsModal=function(){ 1752return this._modal; 1753}; 1754RadWindowClass.prototype.IsClosed=function(){ 1755return this._closed; 1756}; 1757RadWindowClass.prototype.IsPinned=function(){ 1758return this._pinned; 1759}; 1760RadWindowClass.prototype.IsVisible=function(){ 1761return (this.WrapperElement&&this.WrapperElement.style.display!="none"); 1762}; 1763RadWindowClass.prototype.IsActive=function(){ 1764try{ 1765var _ae=GetRadWindowManager(); 1766return (_ae.GetActiveWindow()==this); 1767} 1768catch(e){ 1769} 1770}; 1771RadWindowClass.prototype.IsMinimizeModeEnabled=function(_af){ 1772return _af&this._minimizeMode; 1773}; 1774RadWindowClass.prototype.IsBehaviorEnabled=function(_b0){ 1775return _b0&this._behavior?true:false; 1776}; 1777RadWindowClass.prototype.private_RenderCommandButtons=function(){ 1778var id=this.Id; 1779var _b2=this.JsName; 1780var _b3=""; 1781if(!this._modal&&this.IsBehaviorEnabled(RadWindowBehavior.Pin)){ 1782_b3+="\t\t<td width='1' title='"+this.GetLocalizedString("PinOff")+"' class='RadWWrapperHeaderCenter' nowrap>\n"+"<img onmousedown='return RadWindowNamespace.RadUtil_CancelEvent(event);' class='RadWButton' border='0' src='"+this.private_GetImageUrl("PinOff.gif")+"' id='TogglePinButton"+id+"' onclick='"+_b2+".TogglePin();return false;' ondblclick='return RadWindowNamespace.RadUtil_CancelEvent(event);'/>"+"</td>\n"; 1783} 1784if(this.IsBehaviorEnabled(RadWindowBehavior.Reload)){ 1785_b3+="\t\t<td width='1' class='RadWWrapperHeaderCenter' nowrap>\n"+"\t\t\t\t\t<img onmousedown='return RadWindowNamespace.RadUtil_CancelEvent(event);' class='RadWButton' border='0' src='"+this.private_GetImageUrl("Reload.gif")+"' title='"+this.GetLocalizedString("Reload")+"' id='ReloadButton"+id+"' onclick='"+_b2+".Reload();return false;' ondblclick='return RadWindowNamespace.RadUtil_CancelEvent(event);'/>"+"\t\t\t</td>\n"; 1786} 1787if(this.IsBehaviorEnabled(RadWindowBehavior.Minimize)){ 1788_b3+="\t\t<td width='1' class='RadWWrapperHeaderCenter' nowrap>\n"+"\t\t\t\t\t<img onmousedown='return RadWindowNamespace.RadUtil_CancelEvent(event);' class='RadWButton' border='0' src='"+this.private_GetImageUrl("Minimize.gif")+"' title='"+this.GetLocalizedString("Minimize")+"' id='MinimizeButton"+id+"' onclick='"+_b2+".Minim
1788ize();return false;'/>"+"\t\t\t</td>\n"; 1789} 1790if(this.IsBehaviorEnabled(RadWindowBehavior.Maximize)){ 1791_b3+="\t\t<td width='1' class='RadWWrapperHeaderCenter' nowrap>\n"+"\t\t\t\t\t<img onmousedown='return RadWindowNamespace.RadUtil_CancelEvent(event);' class='RadWButton' border='0' src='"+this.private_GetImageUrl("Maximize.gif")+"' title='"+this.GetLocalizedString("Maximize")+"' id='ToggleMaximizeButton"+id+"' onclick='"+_b2+".ToggleMaximize();return false;'/>"+"\t\t\t</td>\n"; 1792} 1793if(this.IsBehaviorEnabled(RadWindowBehavior.Close)){ 1794_b3+="\t\t\t<td width='1' title='"+this.GetLocalizedString("Close")+"' class='RadWWrapperHeaderCenter' nowrap>\n"+"\t\t\t\t\t<img onmousedown='return RadWindowNamespace.RadUtil_CancelEvent(event);' class='RadWButton' border='0' src='"+this.private_GetImageUrl("Close.gif")+"' id='CloseButton"+id+"' onclick='"+_b2+".Close();return false;'/>\n"+"\t\t\t\t</td>\n"; 1795} 1796return _b3; 1797}; 1798RadWindowClass.prototype.private_BuildWindowHtml=function(){ 1799var id=this.Id; 1800var _b5=this.JsName; 1801var _b6=this.Name; 1802var url=document.all?"javascript:'';":""; 1803var _b8=""; 1804_b8+="\t\t<table border=0 id='RadWindowWrapperElement"+id+"' class='RadWWrapperActive' style='display:none;z-index:"+this.Zindex+";width:"+this.Width+";height:"+this.Height+";position:absolute;' cellspacing='0' cellpadding='0'>\n"+"\t\t <tbody style='"+(document.all?"":"height:100%")+"'>"+"\t\t\t<tr class='RadWTitleRow' "+"\t\t\t\tstyle='"+(this._visibleTitlebar?"":"display:none")+"'>\n"+"\t\t\t\t<td width='1' style='height:3px;' class='RadWWrapperHeaderLeft' nowrap></td>\n"+"\t\t\t\t<td valign='top' unselectable='on' grip='true' titleGrip='show' width='100%' style='height:3px;' class='RadWWrapperHeaderCenter' nowrap='true' >\n"+" <div class='RadWHeaderTopResizer'> </div>"+"\t\t<table border=0 cellspacing='0' cellpadding=0' width='100%' ><tr>"+"<td class='RadWWrapperHeaderCenter'>\n"+"\t\t\t\t\t<img ondblclick='"+_b5+".Close();return RadWindowNamespace.RadUtil_CancelEvent(event);' class='RadWIcon' src='"+this._iconUrl+"' align='absmiddle' border='0'>"+"\t\t\t\t</td><td id='RadWindowHeaderRow"+id+"' class='RadWWrapperHeaderCenter' nowrap width='100%'>\t<span id='RadWindowTitle"+id+"' unselectable='on' onselectstart='return false;' class='RadWTitleText'>"+this._title+"</span>\n"+"\t\t\t\t</td>"; 1805_b8+=this.private_RenderCommandButtons(); 1806_b8+="\t\t\t</tr></table> </td>\n"; 1807_b8+="\t\t\t\t<td width='1' class='RadWWrapperHeaderRight' nowrap></td>\n"+"\t\t\t</tr>\n"; 1808_b8+="\t\t\t<tr height='100%' style='height:100%' >\n"+"\t\t\t\t<td align='left' id='RadWindowContentTD"+id+"' colspan='8' style='width:100%;height:100%;'>\n"+"\t\t\t\t\t<table style='border:0px solid red;width:100%;height:100%;' cellspacing='0' cellpadding='0'>\n"+"\t\t\t\t\t\t<tbody style='height:100%'><tr height='100%' style='height:100%'>"+"\t\t\t\t\t\t\t<td rowspan=2 width='1' class='RadWWrapperBodyLeft' nowrap> </td>\n"+"\t\t\t\t\t\t\t<td height='100%' style='height:100%' width='100%' class='RadWWrapperBodyCenter' valign='bottom' align='left' onselectstart='return false;'>\n"+"\t\t\t\t\t\t\t\t\t<iframe class='RadWContentFrame' name='"+_b6+"' frameborder='0' style='border:0px solid green;width:100%;height:100%;' id='RadWindowContentFrame"+id+"' src='"+url+"' border='no' ></iframe>"+"\t\t\t\t\t\t\t</td>"+"\t\t\t\t\t\t\t<td rowspan=2 width='1' class='RadWWrapperBodyRight' nowrap> </td>"+"\t\t\t\t\t\t</tr>"+"\t\t\t\t\t<tr style='height:1px;'><td class='RadWStatusRow'>"+"<div class='RadWStatus' style='"+(this._visibleStatusbar?"":"display:none")+"'> "+"\t\t\t\t\t<span class='RadWLoadingWrapper' style='display:none;white-space:nowrap' id='RadWindowLoadingWrapper"+id+"'>"+"\t\t\t\t\t<img align='absmiddle' src='"+this.private_GetImageUrl("loading.gif")+"' border='0'> "+this.GetLocalizedString("Loading")+"</span> "+"\t\t\t\t\t<input style='font:icon;border:0px solid red;background-color:transparent;' unselectable='on' type='text' onselect='return false;' onbeforeactivate='return false;' onmousedown='return false;' id='RadWStatus"+id+"'/>"+"\t\t\t</div></td></tr>"+"\t\t\t\t\t</tbody></table>"+"\t\t\t\t</td>\n"+"\t\t\t</tr>\n"; 1809_b8+="\t\t\t<tr>\n"+"\t\t\t\t<td colspan='8' width='100%' height='1'>"+"\t\t\t\t\t<table border='0' width='100%' height='1' cellspacing='0' cellpadding='0'>\n"+"\t\t\t\t\t\t<tr>\n"+"\t\t\t\t\t\t\t<td width='1' class='RadWWrapperFooterLeft' nowrap> </td>\n"+"\t\t\t\t\t\t\t<td width='100%' class='RadWWrapperFooterCenter' nowrap> </td>\t\t\n"+"\t\t\t\t\t\t\t<td width='1' class='RadWWrapperFooterRight' nowrap> </td>\n"+"\t\t\t\t\t\t</tr>\n"+"\t\t\t\t\t</table>\n"+"\t\t\t\t</td>\n"+"\t\t\t</tr>\n"+"\t\t</tbody></table>\n"; 1810return _b8; 1811};;RadWindowNamespace.RadWindowClassicEmptyFunction=function(){ 1812}; 1813RadWindowNamespace.RadWindowClassic={Create:RadWindowNamespace.RadWindowClassicEmptyFunction,Minimize:RadWindowNamespace.RadWindowClassicEmptyFunction,Maximize:RadWindowNamespace.RadWindowClassicEmptyFunction,Restore:RadWindowNamespace.RadWindowClassicEmptyFunction,TogglePin:RadWindowNamespace.RadWindowClassicEmptyFunction,SetModal:RadWindowNamespace.RadWindowClassicEmptyFunction,Cascade:RadWindowNamespace.RadWindowClassicEmptyFunction,Tile:RadWindowNamespace.RadWindowClassicEmptyFunction,SetUrl:function(_1){ 1814var _2=this.ClassicWindow; 1815try{ 1816_2.location.href=_1; 1817} 1818catch(e){ 1819} 1820},Show:function(_3){ 1821if(_3){ 1822this._url=_3; 1823} 1824var _4="width="+this.Width+", height="+this.Height+", scrollbars=yes"+", resizable="+(this.IsBehaviorEnabled(RadWindowBehavior.Resize)?"yes":"no"); 1825this.ClassicWindow=window.open(this._url,this.Name,_4); 1826this.CreateBackReference(); 1827},SetPosition:function(_5,_6){ 1828if(this.ClassicWindow){ 1829this.ClassicWindow.dialogLeft=_5; 1830this.ClassicWindow.dialogTop=_6; 1831} 1832},SetSize:function(_7,_8){ 1833var _9=this.ClassicWindow; 1834if(_9){ 1835if(_9.dialogWidth&&_9.dialogHeight){ 1836_9.dialogWidth=_7; 1837_9.dialogHeight=_8; 1838}else{ 1839_9.resizeTo(_7,_8); 1840} 1841} 1842},Dispose:function(){ 1843this.Close(); 1844this.ClassicWindow=null; 1845},Close:function(){ 1846this.ClassicWindow.close(); 1847},SetActiveProtected:function(){ 1848if(false!=setActive){ 1849this.ClassicWindow.focus(); 1850}else{ 1851this.ClassicWindow.blur(); 1852} 1853},GetWidth:function(){ 1854var _a=this.ClassicWindow; 1855if(_a){ 1856if(_a.dialogWidth){ 1857return parseInt(_a.dialogWidth); 1858}else{ 1859if(window.outerWidth){ 1860return parseInt(window.outerWidth); 1861}else{ 1862if(_a.document.domain==window.document.domain){ 1863var _b=RadWindowNamespace.RadUtil_GetBrowserRect(_a); 1864if(_b){ 1865return (_b.width); 1866} 1867} 1868} 1869} 1870} 1871return 100; 1872},SetWidth:function(_c){ 1873var _d=this.ClassicWindow; 1874if(_d){ 1875if(_d.dialogWidth){ 1876_d.dialogTop=_d.screenTop-31; 1877_d.dialogLeft=_d.screenLeft-4; 1878_d.dialogWidth=_c+"px"; 1879}else{ 1880_d.outerWidth=_c; 1881} 1882} 1883},GetHeight:function(){ 1884var _e=this.ClassicWindow; 1885if(_e){ 1886if(_e.dialogHeight){ 1887return parseInt(_e.dialogHeight); 1888}else{ 1889if(window.outerHeight){ 1890return (parseInt(window.outerHeight)); 1891}else{ 1892if(_e.document.domain==window.document.domain){ 1893var _f=RadWindowNamespace.RadUtil_GetBrowserRect(_e); 1894if(_f){ 1895return (_f.height+30); 1896} 1897} 1898} 1899} 1900} 1901return 30; 1902},SetHeight:function(_10){ 1903var _11=this.ClassicWindow; 1904if(_11.dialogWidth){ 1905_11.dialogTop=_11.screenTop-30; 1906_11.dialogLeft=_11.screenLeft-4; 1907_11.dialogHeight=_10+"px"; 1908}else{ 1909_11.outerHeight=_10; 1910} 1911},IsVisible:function(){ 1912if(!this._closed&&this.ClassicWindow&&!this.ClassicWindow.closed){ 1913return true; 1914} 1915return false;
1916}};;function RadWindowManagerInitialize(id,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d,_e,_f,_10,_11,_12,_13,_14,_15,_16,_17,_18,_19,_1a,_1b,_1c,_1d,_1e,_1f,_20,_21,_22){ 1917var _23=null; 1918if(RadWindowNamespace.WindowManager){ 1919if(RadWindowNamespace.WindowManager.Id==id){ 1920var _24=RadWindowNamespace.WindowManager.Windows; 1921for(var i=0;i<_24.length;i++){ 1922_24[i].Dispose(); 1923} 1924}else{ 1925_23=RadWindowNamespace.WindowManager.Windows; 1926} 1927RadWindowNamespace.WindowManager.Windows=null; 1928RadWindowNamespace.WindowManager=null; 1929} 1930var _26=GetRadWindowManager(); 1931if(_23){ 1932_26.Windows=_23; 1933} 1934_26.Id=id; 1935_26.InitializePage(_3+"Img/transp.gif"); 1936_26._applicationPath=_2; 1937_26._schemeBasePath=_3; 1938_26._singleNonMinimizedWindow=_7; 1939_26._useClassicWindows=_5; 1940_26._localization=eval("localization_"+(_4?_4:"en_US")); 1941_26._useOverlay=_1f; 1942_26._enableStandardPopups=_20; 1943_26._preserveClientState=(_8==true); 1944RadWindowNamespace.RadUtil_AttachEventEx(window,"unload",_26.RadWindowManagerDispose); 1945if(_26._preserveClientState){ 1946RadWindowNamespace.RadUtil_AttachEventEx(window,"load",RadWindowNamespace.RadWindowStateManager.RestoreState); 1947} 1948_26.CreateBrowserCommands(); 1949if(_26.EnableShortcuts){ 1950_26.EnableShortcuts(_9); 1951} 1952var _27=new RadWindowClass(""); 1953_27._events=[]; 1954_27._schemeBasePath=_3; 1955if(_a){ 1956_27["OnClientShow"]=_a; 1957} 1958if(_b){ 1959_27["OnClientClose"]=_b; 1960} 1961if(_c){ 1962_27["OnClientPageLoad"]=_c; 1963} 1964_27.ClientCallBackFunction=_6; 1965_27.Width=_f?_f:"500px"; 1966_27.Height=_10?_10:"200px"; 1967_27.private_SetSizeValue("Left",_11,false); 1968_27.private_SetSizeValue("Top",_12,false); 1969_27._iconUrl=_d?_d:_3+"Img/defaultIcon.gif"; 1970_27._minimizeIconUrl=_e?_e:_27._iconUrl; 1971_27._title=_13; 1972_27._minimizeZoneId=_14; 1973_27._initialBehavior=_15; 1974_27._behavior=_16; 1975_27._minimizeMode=_17; 1976_27._visibleStatusbar=_19; 1977_27._visibleTitlebar=_1a; 1978_27._visibleOnPageLoad=_1b; 1979_27._modal=_18; 1980_27._localization=_26._localization; 1981_27._offsetElementId=_1c; 1982_27._openerElementId=_1d; 1983_27._destroyOnClose=_1e; 1984_27._reloadOnShow=_21; 1985_27._useOverlay=_26._useOverlay; 1986_27._showContentDuringLoad=_22; 1987_26._defaultWindow=_27; 1988} 1989RadWindowNamespace.WindowManager=null; 1990function GetRadWindowManager(){ 1991if(null==RadWindowNamespace.WindowManager){ 1992RadWindowNamespace.WindowManager=new RadWindowManagerClass(); 1993} 1994return RadWindowNamespace.WindowManager; 1995} 1996function RadWindowManagerClass(){ 1997this.Windows=[]; 1998this.HistoryStack=[]; 1999this.PageInitilized=false; 2000this.Zindex=3000; 2001this.JavascriptObjectId="radWindow_"; 2002this.ActiveWindow=null; 2003this._singleNonMinimizedWindow=false; 2004this._schemeBasePath=null; 2005this._useOverlay=true; 2006} 2007RadWindowManagerClass.prototype.CreateSplash=function(_28,_29){ 2008this.SplashWidth=_28?_28:this._defaultWindow.Width; 2009this.SplashHeight=_29?_29:this._defaultWindow.Height; 2010this.ShowSplash(); 2011}; 2012RadWindowManagerClass.prototype.ShowSplash=function(_2a){ 2013var _2b=this; 2014var _2c=_2b.GetSplashTemplate(_2b._defaultWindow); 2015var _2d=document.getElementById("RadWSplashHolder"); 2016_2d.style.position="absolute"; 2017_2d.style.zIndex=""+5000; 2018_2d.innerHTML=_2c; 2019if(false==_2a){ 2020_2d.style.display="none"; 2021}else{ 2022_2d.style.display=""; 2023var _2e=document.body; 2024_2e.insertBefore(_2d,_2e.firstChild); 2025var _2f=this.SplashWidth; 2026var _30=this.SplashHeight; 2027var _31=function(){ 2028var _32=RadWindowNamespace.RadGetElementRect(_2d); 2029var _33=RadWindowNamespace.RadUtil_GetBrowserRect(); 2030var _34=50-Math.floor((parseInt(_2f)*100/_33.width)/2); 2031var _35=50-Math.ceil((parseInt(_30)*100/_33.height)/2); 2032_2d.style.left=_34+"%"; 2033_2d.style.top=_35+"%"; 2034}; 2035_31(); 2036if(!this.SplashInitialized){ 2037this.SplashInitialized=true; 2038RadWindowNamespace.RadUtil_AttachEventEx(window,"resize",_31); 2039RadWindowNamespace.RadUtil_AttachEventEx(window,"scroll",_31); 2040RadWindowNamespace.RadUtil_AttachEventEx(window,"load",function(){ 2041window.setTimeout(function(){ 2042_2d.innerHTML=""; 2043},200); 2044}); 2045} 2046} 2047return _2d; 2048}; 2049RadWindowManagerClass.prototype.RadWindowManagerDispose=function(){ 2050var _36=GetRadWindowManager(); 2051if(_36._preserveClientState&&RadWindowNamespace.RadWindowStateManager){ 2052RadWindowNamespace.RadWindowStateManager.SaveState(); 2053} 2054try{ 2055_36.ExecuteAll("Dispose"); 2056} 2057catch(e){ 2058} 2059_36.Windows=null; 2060_36.HistoryStack=null; 2061_36.ActiveWindow=null; 2062};
2063RadWindowManagerClass.prototype.InitializePage=function(_37){ 2064if(this.PageInitilized){ 2065return; 2066} 2067if(_37){ 2068var _38=RadWindowNamespace.GetOverlayImage(); 2069if(_38){ 2070_38.src=_37; 2071} 2072} 2073this.PageInitilized=true; 2074}; 2075RadWindowManagerClass.prototype.Open=function(url,_3a){ 2076var _3b=this; 2077var _3c=_3b.GetWindowByName(_3a); 2078if(!_3c){ 2079_3c=_3b.CreateWindowObject(_3a); 2080} 2081if(_3b._useClassicWindows){ 2082_3c.Show(url); 2083}else{ 2084_3c.Show(); 2085if(url){ 2086_3c.SetUrl(url); 2087} 2088} 2089return _3c; 2090}; 2091RadWindowManagerClass.prototype.CreateWindowObject=function(id){ 2092var _3e=this.GetNewZidex(); 2093if(!id){ 2094id="RadWindowClass"+_3e; 2095} 2096var _3f=new RadWindowClass(id); 2097_3f.Zindex=_3e; 2098this.Windows[this.Windows.length]=_3f; 2099var _40=this.JavascriptObjectId+_3f.Id; 2100window[_40]=_3f; 2101var _41=this._defaultWindow; 2102if(_41){ 2103for(var _42 in _41){ 2104if("function"!=typeof (_41[_42])){ 2105_3f[_42]=_41[_42]; 2106} 2107} 2108} 2109if(this._useClassicWindows){ 2110Object.Extend(_3f,RadWindowNamespace.RadWindowClassic); 2111} 2112_3f.Id=id; 2113_3f.Name=id; 2114_3f.JsName=_40; 2115_3f._events=[]; 2116return _3f; 2117}; 2118RadWindowManagerClass.prototype.GetNewZidex=function(){ 2119var _43=this.Zindex; 2120var _44=this.Windows; 2121var _45=_44.length; 2122for(var i=0;i<_45;i++){ 2123oWnd=_44[i]; 2124if(oWnd.WrapperElement&&oWnd.WrapperElement.style.zIndex>_43){ 2125_43=oWnd.WrapperElement.style.zIndex; 2126} 2127} 2128oWnd=null; 2129return (this.Zindex=++_43); 2130}; 2131RadWindowManagerClass.prototype.CreateStandardPopup=function(_47,_48){ 2132var _49=this.CreateWindowObject(_47); 2133_49._behavior=RadWindowBehavior.Close+RadWindowBehavior.Move; 2134_49._initialBehavior=RadWindowBehavior.None; 2135_49._minimizeMode=RadWindowClass.prototype._minimizeMode; 2136_49._minimizeZoneId=""; 2137_49._offsetElementId=""; 2138_49._openerElementId=""; 2139_49._visibleStatusbar=false; 2140_49._destroyOnClose=true; 2141_49.Create(); 2142_49.SetTitle(_49.GetLocalizedString(_47)); 2143_49.SetModal(true); 2144var _4a={Text:_48}; 2145var _4b=this.private_GetTemplate(_47+"Template",this._defaultWindow,_4a); 2146if(_4b){ 2147_49.SetContent(_4b); 2148} 2149return _49; 2150}; 2151RadWindowManagerClass.prototype.GetSplashTemplate=function(_4c){ 2152return this.private_GetTemplate("SplashTemplate",_4c); 2153}; 2154RadWindowManagerClass.prototype.GetMinimizeTemplate=function(_4d){ 2155return this.private_GetTemplate("MinimizeTemplate",_4d); 2156}; 2157RadWindowManagerClass.prototype.private_GetTemplate=function(_4e,_4f,_50){ 2158var _51=document.getElementById(this.Id+"_"+_4e); 2159var _52=RadWindowNamespace.RadUtil_EncodeContent(_51.value,false); 2160_52=RadWindowNamespace.RadUtil_Format(RadWindowNamespace.RadUtil_Trim(_52),_4f.Id,_4f.JsName,this._schemeBasePath,_4f._minimizeIconUrl,_4f._title,"",_50?_50.Text:""); 2161return _52; 2162};
2163RadWindowManagerClass.prototype.private_GetWindowsSortedByZindex=function(){ 2164var _53=this.Windows.concat([]); 2165var _54=function(_55,_56){ 2166if(_55.Zindex==_55.Zindex){ 2167return 0; 2168} 2169return (_55.Zindex<_55.Zindex?-1:1); 2170}; 2171return _53.sort(_54); 2172}; 2173RadWindowManagerClass.prototype.private_RemoveArrayMember=function(_57,_58){ 2174if(!_57||_57.length<1){ 2175return; 2176} 2177for(var i=0;i<_57.length;i++){ 2178if(_57[i]==_58){ 2179_57.splice(i,1); 2180return; 2181} 2182} 2183}; 2184RadWindowManagerClass.prototype.private_AddArrayMember=function(_5a,_5b){ 2185if(!_5a){ 2186return; 2187} 2188_5a[_5a.length]=_5b; 2189}; 2190RadWindowManagerClass.prototype.GetActiveWindow=function(){ 2191return this.ActiveWindow; 2192}; 2193RadWindowManagerClass.prototype.SetActiveWindow=function(_5c){ 2194var _5d=this.ActiveWindow; 2195this.ActiveWindow=_5c; 2196if(_5d&&_5d!=_5c){ 2197_5d.SetActiveProtected(false); 2198} 2199this.ActiveWindow.SetActiveProtected(true); 2200if(this._singleNonMinimizedWindow){ 2201this.MinimizeInactiveWindows(); 2202} 2203this.private_RemoveArrayMember(this.HistoryStack,this.ActiveWindow); 2204this.private_AddArrayMember(this.HistoryStack,this.ActiveWindow); 2205}; 2206RadWindowManagerClass.prototype.FocusNextWindow=function(_5e){ 2207var _5f=function(_60,_61){ 2208if(_60&&_60._created&&!_60.IsClosed()&&(!_60.IsMinimized()||_61._singleNonMinimizedWindow)){ 2209_60.SetActive(true); 2210return true; 2211} 2212return false; 2213}; 2214if(null!=_5e){ 2215this.private_RemoveArrayMember(this.HistoryStack,_5e); 2216var _62=this.HistoryStack.length>0?this.HistoryStack[this.HistoryStack.length-1]:null; 2217if(_62){ 2218var _63=_5f(_62,this); 2219if(_63){ 2220return; 2221} 2222} 2223} 2224var _64=this.ActiveWindow; 2225var _65=this.Windows.concat([]); 2226if(!_64){ 2227_5f(_65[0],this); 2228}else{ 2229var _66=0; 2230var _67=false; 2231var i=0; 2232for(;i<_65.length;i++){ 2233if(_64==_65[i]){ 2234_66=i; 2235_67=true; 2236break; 2237} 2238} 2239if(_67){ 2240var _69=function(_6a,_6b,_6c){ 2241for(var _6d=_6a;_6d<_6b;_6d++){ 2242var _6e=_5f(_65[_6d],_6c); 2243if(_6e){ 2244return true; 2245} 2246} 2247}; 2248var _6f=_69(i+1,_65.length,this); 2249if(!_6f){ 2250_69(0,_66,this); 2251} 2252} 2253} 2254}; 2255RadWindowManagerClass.prototype.UnregisterWindow=function(_70){ 2256if(!_70){ 2257return; 2258} 2259this.private_RemoveArrayMember(this.Windows,_70); 2260this.private_RemoveArrayMember(this.HistoryStack,_70); 2261if(_70.Dispose){ 2262_70.Dispose(); 2263} 2264if(_70==this.ActiveWindow){ 2265this.ActiveWindow=null; 2266} 2267}; 2268RadWindowManagerClass.prototype.GetWindowById=function(id){ 2269var _72=this.Windows; 2270for(var i=0;i<_72.length;i++){ 2271var _74=_72[i]; 2272if(id==_74.Id){ 2273if(!_74._created){ 2274_74.Create(); 2275} 2276return _74; 2277} 2278} 2279return null; 2280}; 2281RadWindowManagerClass.prototype.GetWindowByName=function(_75){ 2282var _76=this.Windows; 2283for(var i=0;i<_76.length;i++){ 2284var _78=_76[i]; 2285if(_75==_78.Name){ 2286if(!_78._created){ 2287_78.Create(); 2288} 2289return _78; 2290} 2291} 2292return null; 2293}; 2294RadWindowManagerClass.prototype.GetWindowObjects=function(){ 2295return this.Windows; 2296}; 2297RadWindowManagerClass.prototype.GetWindows=function(){ 2298return this.Windows; 2299}; 2300RadWindowManagerClass.prototype.Cascade=function(){ 2301var _79=40; 2302var _7a=40; 2303var _7b=this.private_GetWindowsSortedByZindex(); 2304for(var i=0;i<_7b.length;i++){ 2305var _7d=_7b[i]; 2306if(!_7d._closed&&_7d._created){ 2307var _7e=_7d.Restore(); 2308_7d.MoveTo(_79,_7a); 2309RadWindowNamespace.RadUtil_SetOnTop(_7d.WrapperElement); 2310_79+=25; 2311_7a+=25; 2312} 2313} 2314}; 2315RadWindowManagerClass.prototype.Tile=function(){ 2316var _7f=this.private_GetWindowsSortedByZindex(); 2317var _80=0; 2318for(var i=0;i<_7f.length;i++){ 2319var _82=_7f[i]; 2320if(!_82._closed&&_82._created){ 2321_80++; 2322} 2323} 2324var _83=5; 2325var _84=0; 2326var _85=1; 2327if(_80<=_83){ 2328_84=_80; 2329}else{ 2330var i=2; 2331while((_80*i)<(_83*(i+1))){ 2332i++; 2333if(i>6){ 2334break; 2335} 2336} 2337_85=i; 2338_84=Math.ceil(_80/_85); 2339} 2340var _86=RadWindowNamespace.RadUtil_GetBrowserRect(); 2341var _87=Math.floor(_86.width/_84); 2342var _88=Math.floor(_86.height/_85); 2343var _89=RadWindowNamespace.RadGetScrollLeft(document); 2344var top=RadWindowNamespace.RadGetScrollTop(document); 2345var _8b=0; 2346for(var i=0;i<_7f.length;i++){ 2347var _82=_7f[i]; 2348if(!_82._closed&&_82._created){ 2349_8b++; 2350if((_8b-1)%(_84)==0&&_8b>_84){ 2351top+=_88; 2352_89=RadWindowNamespace.RadGetScrollLeft(document); 2353} 2354_82.Restore(); 2355_82.MoveTo(_89,top); 2356_82.SetSize(_87,_88); 2357_89+=_87; 2358} 2359} 2360}; 2361RadWindowManagerClass.prototype.Fire=function(_8c){ 2362if(this[_8c]&&"function"==typeof (this[_8c])){ 2363this[_8c](); 2364} 2365}; 2366RadWindowManagerClass.prototype.MinimizeInactiveWindows=function(){ 2367var _8d=this.ActiveWindow; 2368var _8e=this.Windows; 2369var _8f=_8e.length; 2370for(var i=0;i<_8f;i++){ 2371var _91=_8e[i]; 2372if(_91!=_8d){ 2373_91.Minimize(); 2374} 2375} 2376}; 2377RadWindowManagerClass.prototype.EscapeActiveWindow=function(){ 2378var _92=this.GetActiveWindow(); 2379if(_92){ 2380var _93=_92.WrapperElement; 2381if(_93.IsMoving()||_93.IsResizing()){ 2382_93.CancelDrag(); 2383}else{ 2384_92.Close(); 2385} 2386} 2387}; 2388RadWindowManagerClass.prototype.ExecuteActiveWindow=function(_94){ 2389if(this.ActiveWindow&&"function"==typeof (this.ActiveWindow[_94])){ 2390this.ActiveWindow[_94](); 2391} 2392}; 2393RadWindowManagerClass.prototype.CloseActiveWindow=function(){ 2394this.ExecuteActiveWindow("Close"); 2395}; 2396RadWindowManagerClass.prototype.MinimizeActiveWindow=function(){ 2397this.ExecuteActiveWindow("Minimize"); 2398}; 2399RadWindowManagerClass.prototype.RestoreActiveWindow=function(){ 2400this.ExecuteActiveWindow("Restore"); 2401}; 2402RadWindowManagerClass.prototype.CloseAll=function(){ 2403this.ExecuteAll("Close"); 2404}; 2405RadWindowManagerClass.prototype.ShowAll=function(){ 2406this.ExecuteAll("Show"); 2407}; 2408RadWindowManagerClass.prototype.MinimizeAll=function(){ 2409this.ExecuteAll("Minimize"); 2410}; 2411RadWindowManagerClass.prototype.MaximizeAll=function(){ 2412this.ExecuteAll("Maximize"); 2413}; 2414RadWindowManagerClass.prototype.RestoreAll=function(){ 2415this.ExecuteAll("Restore"); 2416}; 2417RadWindowManagerClass.prototype.ExecuteAll=function(_95){ 2418if(!this.Windows){ 2419return; 2420}
2421var _96=this.Windows.concat([]); 2422for(var i=0;i<_96.length;i++){ 2423_96[i][_95](); 2424} 2425};;RadWindowManagerClass.prototype.CreateBrowserCommands=function(){ 2426var _1=this; 2427window.radopen=function(_2,_3){ 2428var _4=function(){ 2429var _5=_1.Open(_2,_3); 2430return _5; 2431}; 2432if(!RadWindowNamespace.RadUtil_IsDocumentLoaded()){ 2433RadWindowNamespace.RadUtil_AttachEventEx(window,"load",_4); 2434return null; 2435}else{ 2436return _4(); 2437} 2438}; 2439modalDialogCallBack=function(_6){ 2440if(this.Close!=RadWindowClass.prototype.Close){ 2441this.Close=RadWindowClass.prototype.Close; 2442} 2443this.Close(); 2444if(this.ModalCallBackFunction){ 2445this.ModalCallBackFunction(_6,this.CallerObj); 2446} 2447this.Argument=null; 2448}; 2449window.radsplash=function(_7){ 2450return _1.ShowSplash(_7); 2451}; 2452window.radalert=function(_8,_9,_a,_b){ 2453if(!_1._enableStandardPopups){ 2454alert(_8); 2455}else{ 2456var _c=function(){ 2457if(!_9){ 2458_9=280; 2459} 2460if(!_a){ 2461_a=200; 2462} 2463var _d=_1.CreateStandardPopup("Alert",_8); 2464_d.WindowToSetActive=_1.GetActiveWindow(); 2465if(typeof (_b)!="undefined"){ 2466_d.SetTitle(_b); 2467} 2468_d.SetSize(_9,_a); 2469_d["OnClientShow"]=function(){ 2470_d.AutoResize(); 2471_d.Center(); 2472}; 2473window.setTimeout(function(){ 2474_d.Show(); 2475},0); 2476return _d; 2477}; 2478if(!RadWindowNamespace.RadUtil_IsDocumentLoaded()){ 2479RadWindowNamespace.RadUtil_AttachEventEx(window,"load",_c); 2480return null; 2481}else{ 2482return _c(); 2483} 2484} 2485}; 2486window.radprompt=function(_e,_f,_10,_11,_12,_13){ 2487if(!_1._enableStandardPopups){ 2488return prompt(_e); 2489}else{ 2490var _14=function(){ 2491if(!_10){ 2492_10=280; 2493} 2494if(!_11){ 2495_11=210; 2496} 2497var _15=_1.CreateStandardPopup("Prompt",_e); 2498_15.ModalCallBackFunction=_f; 2499_15.CallerObj=_12; 2500_15.WindowToSetActive=_1.GetActiveWindow(); 2501if(typeof (_13)!="undefined"){ 2502_15.SetTitle(_13); 2503} 2504_15.SetSize(_10,_11); 2505_15["OnClientShow"]=function(){ 2506_15.AutoResize(); 2507_15.Center(); 2508}; 2509window.setTimeout(function(){ 2510_15.Show(); 2511},0); 2512_15.Close=function(_16){ 2513if(null==_16){ 2514_16=""; 2515} 2516_15.Close=RadWindowClass.prototype.Close; 2517_15.ModalDialogCallBack(_16); 2518}; 2519_15.ModalDialogCallBack=modalDialogCallBack; 2520return _15; 2521}; 2522if(!RadWindowNamespace.RadUtil_IsDocumentLoaded()){ 2523RadWindowNamespace.RadUtil_AttachEventEx(window,"load",_14); 2524return null; 2525}else{ 2526return _14(); 2527} 2528} 2529}; 2530window.radconfirm=function(_17,_18,_19,_1a,_1b,_1c){ 2531if(!_1._enableStandardPopups){ 2532return confirm(_17); 2533}else{ 2534var _1d=function(){ 2535if(!_19){ 2536_19=280; 2537} 2538if(!_1a){ 2539_1a=210; 2540} 2541var _1e=_1.CreateStandardPopup("Confirm",_17); 2542_1e.ModalCallBackFunction=_18; 2543_1e.CallerObj=_1b; 2544_1e.WindowToSetActive=_1.GetActiveWindow(); 2545if(typeof (_1c)!="undefined"){ 2546_1e.SetTitle(_1c); 2547} 2548_1e.SetSize(_19,_1a); 2549_1e["OnClientShow"]=function(){ 2550_1e.AutoResize(); 2551_1e.Center(); 2552}; 2553window.setTimeout(function(){ 2554_1e.Show(); 2555},0); 2556_1e.Close=function(_1f){ 2557if(null==_1f){ 2558_1f=false; 2559} 2560_1e.Close=RadWindowClass.prototype.Close; 2561_1e.ModalDialogCallBack(_1f); 2562}; 2563_1e.ModalDialogCallBack=modalDialogCallBack; 2564return _1e; 2565}; 2566if(!RadWindowNamespace.RadUtil_IsDocumentLoaded()){ 2567RadWindowNamespace.RadUtil_AttachEventEx(window,"load",_1d); 2568return null; 2569}else{ 2570return _1d(); 2571} 2572} 2573}; 2574};;RadWindowManagerClass.prototype.EnableShortcuts=function(_1){ 2575try{ 2576this.KeyboardManager={}; 2577Object.Extend(this.KeyboardManager,RadWindowNamespace.RadWindowKeyboardManager); 2578for(var i=0;i<_1.length;i++){ 2579this.AddShortcut(_1[i][0],_1[i][1]); 2580} 2581var _3=this; 2582RadWindowNamespace.RadUtil_AttachEventEx(document,"keydown",function(_4){ 2583_3.OnKeyDown(_4); 2584}); 2585} 2586catch(e){ 2587} 2588}; 2589RadWindowManagerClass.prototype.OnKeyDown=function(_5){ 2590var _6=RadWindowNamespace.RadUtil_GetEventSource(_5); 2591if(this.KeyboardManager&&_6){ 2592var _7=this.KeyboardManager.HitTest(_5.keyCode,_5.ctrlKey,(null!=_5.ctrlLeft?_5.ctrlLeft:_5.ctrlKey),_5.shiftKey,(null!=_5.shiftLeft?_5.shiftLeft:_5.shiftKey),_5.altKey,(null!=_5.altLeft?_5.altLeft:_5.altKey)); 2593if(null!=_7){ 2594this.Fire(_7.Name); 2595RadWindowNamespace.RadUtil_CancelEvent(_5); 2596} 2597} 2598}; 2599RadWindowManagerClass.prototype.AddShortcut=function(_8,_9){ 2600if(this.KeyboardManager){ 2601this.KeyboardManager.AddShortcut(_8,_9); 2602} 2603}; 2604RadWindowManagerClass.prototype.RemoveShortcut=function(_a){ 2605if(this.KeyboardManager){ 2606this.KeyboardManager.RemoveShortcut(_a); 2607} 2608}; 2609RadWindowManagerClass.prototype.SetShortcut=function(_b,_c){ 2610if(this.KeyboardManager){ 2611this.KeyboardManager.SetShortcut(_b,_c); 2612} 2613}; 2614RadWindowNamespace.RadWindowKeyboardManager={Shortcuts:[],Dispose:function(){ 2615this.Shortcuts=null; 2616},AddShortcut:function(_d,_e){
2617var rs=new RadWindowNamespace.RadShortcut(_d,_e); 2618rs.HashValue=this.GetShortcutHashValue(rs); 2619this.Shortcuts[rs.HashValue]=rs; 2620},RemoveShortcut:function(_10){ 2621var _11=this.FindByName(_10); 2622if(_11){ 2623this.Shortcuts[_11.HashValue]=null; 2624} 2625},SetShortcut:function(_12,_13){ 2626this.RemoveShortcut(_12); 2627this.AddShortcut(_12,_13); 2628},HitTest:function(_14,_15,_16,_17,_18,_19,_1a){ 2629var _1b=this.GetHashValue(_14,_15,_16,_17,_18,_19,_1a); 2630return this.Shortcuts[_1b]; 2631},GetHashValue:function(_1c,_1d,_1e,_1f,_20,_21,_22){ 2632var _23=_1c&65535; 2633var _24=0; 2634_24|=(_1d?RadWindowNamespace.KF_CTRL:0); 2635_24|=(_1f?RadWindowNamespace.KF_SHIFT:0); 2636_24|=(_21?RadWindowNamespace.KF_LSHIFT:0); 2637_23|=(_24<<16); 2638return _23; 2639},GetShortcutHashValue:function(_25){ 2640return this.GetHashValue(_25.KeyCode,_25.CtrlKey,_25.LeftCtrlKey,_25.ShiftKey,_25.LeftShiftKey,_25.AltKey,_25.LeftAltKey); 2641},FindByName:function(_26){ 2642var _27; 2643for(var _28 in this.Shortcuts){ 2644_27=this.Shortcuts[_28]; 2645if(null!=_27&&_27.Name==_26){ 2646return _27; 2647} 2648} 2649return null; 2650}}; 2651RadWindowNamespace.KF_CTRL=(1<<0); 2652RadWindowNamespace.KF_CTRL=(1<<1); 2653RadWindowNamespace.KF_SHIFT=(1<<2); 2654RadWindowNamespace.KF_LSHIFT=(1<<3); 2655RadWindowNamespace.KF_LSHIFT=(1<<4); 2656RadWindowNamespace.KF_LALT=(1<<5);
2657RadWindowNamespace.RadShortcut=function(_29,_2a){ 2658this.CtrlKey=false; 2659this.ShiftKey=false; 2660this.AltKey=false; 2661this.KeyCode=0; 2662this.Name=_29; 2663this.ParseShortcutString(_2a); 2664}; 2665RadWindowNamespace.RadShortcut.prototype.ParseShortcutString=function(_2b){ 2666if("string"==typeof (_2b)){ 2667this.CtrlKey=false; 2668this.LeftCtrlKey=false; 2669this.ShiftKey=false; 2670this.LeftShiftKey=false; 2671this.AltKey=false; 2672this.LeftAltKey=false; 2673this.KeyCode=0; 2674_2b=_2b.replace(/\s*/gi,""); 2675_2b=_2b.replace(/\+\+/gi,"+PLUS"); 2676var _2c=_2b.split("+"); 2677var _2d=""; 2678for(var i=0;i<_2c.length;i++){ 2679_2d=_2c[i].toUpperCase(); 2680switch(_2d){ 2681case "LCTRL": 2682this.LeftCtrlKey=true; 2683case "CTRL": 2684this.CtrlKey=true; 2685break; 2686case "LSHIFT": 2687this.LeftShiftKey=true; 2688case "SHIFT": 2689this.ShiftKey=true; 2690break; 2691case "LALT": 2692this.LeftAltKey=true; 2693case "ALT": 2694this.AltKey=true; 2695break; 2696case "F1": 2697this.KeyCode=112; 2698break; 2699case "F2": 2700this.KeyCode=113; 2701break; 2702case "F3": 2703this.KeyCode=114; 2704break; 2705case "F4": 2706this.KeyCode=115; 2707break; 2708case "F5": 2709this.KeyCode=116; 2710break; 2711case "F6": 2712this.KeyCode=117; 2713break; 2714case "F7": 2715this.KeyCode=118; 2716break; 2717case "F8": 2718this.KeyCode=119; 2719break; 2720case "F9": 2721this.KeyCode=120; 2722break; 2723case "F10": 2724this.KeyCode=121; 2725break; 2726case "F11": 2727this.KeyCode=122; 2728break; 2729case "F12": 2730this.KeyCode=123; 2731break; 2732case "ENTER": 2733this.KeyCode=13; 2734break; 2735case "HOME": 2736this.KeyCode=36; 2737break; 2738case "END": 2739this.KeyCode=35; 2740break; 2741case "LEFT": 2742this.KeyCode=37; 2743break; 2744case "RIGHT": 2745this.KeyCode=39; 2746break; 2747case "UP": 2748this.KeyCode=38; 2749break; 2750case "DOWN": 2751this.KeyCode=40; 2752break; 2753case "PAGEUP": 2754this.KeyCode=33; 2755break; 2756case "PAGEDOWN": 2757this.KeyCode=34; 2758break; 2759case "SPACE": 2760this.KeyCode=32; 2761break; 2762case "TAB": 2763this.KeyCode=9; 2764break; 2765case "BACK": 2766this.KeyCode=8; 2767break; 2768case "CONTEXT": 2769this.KeyCode=93; 2770break; 2771case "ESCAPE": 2772case "ESC": 2773this.KeyCode=27; 2774break; 2775case "DELETE": 2776case "DEL": 2777this.KeyCode=46; 2778break; 2779case "INSERT": 2780case "INS": 2781this.KeyCode=45; 2782break; 2783case "PLUS": 2784this.KeyCode="+".charCodeAt(0); 2785break; 2786default: 2787this.KeyCode=_2d.charCodeAt(0); 2788break; 2789} 2790} 2791}else{ 2792throw {description:"Invalid shortcut string"}; 2793} 2794};;RadWindowNamespace.RadWindowMinimize=function(_1){ 2795this.Window=_1; 2796this.Id=_1.Id; 2797var _2=GetRadWindowManager(); 2798var _3=_2.GetMinimizeTemplate(_1); 2799var _4=document.createElement("div"); 2800_4.innerHTML=_3; 2801document.body.appendChild(_4); 2802this.MinimizedElement=(_4.childNodes.length==1)?_4.firstChild:_4; 2803var _5=this; 2804var _6=function(){ 2805_5.SetVisible(false); 2806}; 2807var _7=this.MinimizedElement; 2808if(_7){ 2809_7.setAttribute("id","RadWMinimized"+this.Id); 2810_7.className="RadWMinimizedActive"; 2811_7.onmouseover=function(){ 2812this.CurClassName=this.className; 2813this.className="RadWMinimizedOver"; 2814}; 2815_7.onmouseout=function(){ 2816this.className=this.CurClassName; 2817}; 2818} 2819var _8=_5.FindElement("RadWMinimizedTitle"); 2820if(_8){ 2821_5.TitleElement=_8; 2822} 2823var _9=_5.FindElement("RadWMinimizedClose"); 2824if(_9){ 2825if(!_1.IsBehaviorEnabled(RadWindowBehavior.Close)){ 2826_9.style.display="none"; 2827}else{ 2828_9.onclick=function(e){ 2829_1.Close(); 2830}; 2831} 2832} 2833if(_1.IsMinimizeModeEnabled(RadWindowMinimizeMode.MinimizeZone)){ 2834var _b=_5.FindElement("RadWMinimizedRestore"); 2835if(_b){ 2836_b.style.display="none"; 2837} 2838this.MinimizedElement.onclick=function(){ 2839if(_1.IsClosed()){ 2840return; 2841} 2842if(!_1.IsVisible()){ 2843_1.Show(); 2844} 2845_1.SetActive(true); 2846_7.CurClassName=_7.className="RadWMinimizedActive"; 2847}; 2848_1.AttachClientEvent("onshow",this.OnRadWindowMinimize); 2849}else{ 2850var _b=_5.FindElement("RadWMinimizedRestore"); 2851if(_b){ 2852_b.onclick=function(){ 2853_5.RestoreWindow(); 2854}; 2855} 2856this.MinimizedElement.ondblclick=function(){ 2857_5.RestoreWindow(); 2858}; 2859if(this.MinimizedElement.tagName=="TABLE"&&this.MinimizedElement.rows.length>0){ 2860var _c=this.MinimizedElement.rows[0].cells[1]; 2861if(_c){ 2862_c.setAttribute("grip","true"); 2863_c.setAttribute("titleGrip","show"); 2864} 2865} 2866RadWindowNamespace.MakeMoveable(this.MinimizedElement,useDragHelper=true,useOverlay=true,resizable=false,_1.IsBehaviorEnabled(RadWindowBehavior.Move)); 2867_7.OnDragEnd=function(){ 2868var _d=this.GetRect(); 2869var _e=_1.RestoreRect; 2870if(_e){ 2871_e.top=_d.top; 2872_e.left=_d.left; 2873} 2874}; 2875_1.AttachClientEvent("onmaximize",_6); 2876_1.AttachClientEvent("onrestore",_6); 2877} 2878_1.AttachClientEvent("onclose",_6); 2879_1.AttachClientEvent("onminimize",this.OnRadWindowMinimize); 2880_1.AttachClientEvent("onactivate",function(){ 2881_5.SetActiveProtected(true); 2882}); 2883_1.AttachClientEvent("ondeactivate",function(){ 2884_5.SetActiveProtected(false); 2885}); 2886_1.AttachClientEvent("onwindowload",function(){ 2887if(_5.TitleElement){ 2888_5.TitleElement.innerHTML=_1._title; 2889} 2890var _f=_5.MinimizedElement; 2891if("none"!=_f.style.display){ 2892if(!_5.PageLoadInterval&&!_1.IsVisible()){ 2893_5.PageLoadedCount=0; 2894_5.PageLoadInterval=window.setInterval(function(){ 2895_5.MinimizedElement.className=((_5.PageLoadedCount++)%2==0)?"RadWMinimizedActive":"RadWMinimizedPageLoaded"; 2896if(11==_5.PageLoadedCount){ 2897window.clearInterval(_5.PageLoadInterval); 2898_5.PageLoadInterval=null; 2899_5.PageLoadedCount=0; 2900} 2901},500); 2902} 2903} 2904}); 2905}; 2906RadWindowNamespace.RadWindowMinimize.prototype={FindElement:function(_10){ 2907return document.getElementById(_10+this.Id); 2908},Dispose:function(_11){ 2909this.Window=null; 2910var _12=this.MinimizedElement; 2911_12.ondblclick=null; 2912_12.onclick=null; 2913_12.Overlay=null; 2914_12.OnDragEnd=null; 2915if(_12.parentNode&&_12.parentNode.removeChild){ 2916_12.parentNode.removeChild(_12); 2917_12.removeAttribute("id"); 2918} 2919this.MinimizedElement=null; 2920},OnRadWindowMinimize:function(_13){ 2921var _14=_13._minimizeMode; 2922var _15=_13.MinimizedWindow; 2923if(_15.TitleElement){ 2924_15.TitleElement.innerHTML=_13._title; 2925} 2926if(!(RadWindowMinimizeMode.SameLocation==_14)){ 2927if(_13._minimizeZoneId){ 2928var _16=document.getElementById(_13._minimizeZoneId); 2929if(_16){ 2930var _17=_15.MinimizedElement; 2931if(_17.parentNode!=_16){ 2932_17.parentNode.removeChild(_17); 2933_16.appendChild(_17); 2934_17.style.position=""; 2935} 2936_17.style.display="inline"; 2937} 2938return; 2939} 2940} 2941var _18=_13.GetRectangle(); 2942var x=null,y=null; 2943if(!_18){ 2944var _18=_15.Window.GetLeftTopPosition(); 2945x=_18.left; 2946y=_18.top; 2947}else{ 2948x=_18.left; 2949y=_18.top; 2950} 2951if(_15.MinimizedElement.MoveTo){ 2952_15.MinimizedElement.MoveTo(x,y); 2953} 2954_15.SetVisible(true); 2955_15.SetPinState(); 2956},RestoreWindow:function(){ 2957var _1b=this.Window; 2958var _1c=this.MinimizedElement; 2959var _1d=_1c.GetRect(); 2960var _1e=_1b.RestoreRect; 2961if(_1e){ 2962_1e.top=_1d.top; 2963_1e.left=_1d.left; 2964_1b.Restore(); 2965}else{ 2966if(!_1b.IsVisible()){ 2967_1b.Show(); 2968} 2969_1b.SetSize(_1b.Width,_1b.Height); 2970_1b.MoveTo(_1d.left,_1d.top); 2971_1b.SetActive(true); 2972} 2973_1c.Hide(); 2974},SetActiveProtected:function(_1f){ 2975var _20=this.MinimizedElement; 2976if("none"==_20.style.display){ 2977return; 2978} 2979if(_1f){ 2980if(this.Window.IsMinimizeModeEnabled(RadWindowMinimizeMode.MinimizeZone)){ 2981if(!this.Window.IsVisible()){ 2982this.Window.Show(); 2983} 2984}else{ 2985RadWindowNamespace.RadUtil_SetOnTop(_20); 2986} 2987} 2988_20.className=_1f?"RadWMinimizedActive":"RadWMinimizedInactive"; 2989},SetPinState:function(){ 2990RadWindowNamespace.RadUtil_SetPinned(this.Window.IsPinned(),this.MinimizedElement); 2991},SetVisible:function(_21){ 2992var _22=this.MinimizedElement; 2993if(_21){ 2994if(_22.Show){ 2995_22.Show(); 2996}else{ 2997_22.style.display=""; 2998} 2999var _23=_22.GetRect();
3000_22.SetSize(_23.width,_23.height,false); 3001}else{ 3002if(_22.Hide){ 3003_22.Hide(); 3004}else{ 3005_22.style.display="none"; 3006} 3007} 3008}};;RadWindowNamespace.GetModalOverlayImage=function(){ 3009if(!RadWindowNamespace.ModalImage){ 3010var _1=document.createElement("IMG"); 3011_1.src=GetRadWindowManager()._schemeBasePath+"Img/transp.gif"; 3012_1.setAttribute("unselectable","on"); 3013_1.setAttribute("galleryimg","no"); 3014_1.onselectstart=RadWindowNamespace.RadUtil_CancelEvent; 3015_1.ondragstart=RadWindowNamespace.RadUtil_CancelEvent; 3016_1.onmouseover=RadWindowNamespace.RadUtil_CancelEvent; 3017_1.onmousemove=RadWindowNamespace.RadUtil_CancelEvent; 3018_1.onmouseup=RadWindowNamespace.RadUtil_CancelEvent; 3019_1.style.position="absolute"; 3020_1.className="RadWModalImage"; 3021RadWindowNamespace.ModalImage=_1; 3022} 3023return RadWindowNamespace.ModalImage; 3024}; 3025RadWindowNamespace.ShowModalOverlayImage=function(){ 3026function oModalFun(){ 3027var _2=RadWindowNamespace.GetModalOverlayImage(); 3028if(_2.style.display=="none"){ 3029return; 3030} 3031var _3=(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft); 3032var _4=(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop); 3033var _5; 3034if(window.innerWidth){ 3035_5=Math.min(window.innerWidth,document.documentElement.clientWidth); 3036}else{ 3037_5=Math.max(document.body.clientWidth,document.documentElement.clientWidth); 3038} 3039var _6; 3040if(window.innerHeight){ 3041_6=Math.max(window.innerHeight,document.documentElement.clientHeight); 3042}else{ 3043if(document.documentElement.clientHeight>0){ 3044_6=document.documentElement.clientHeight; 3045}else{ 3046_6=document.body.clientHeight; 3047} 3048} 3049_2.style.left=_3+"px"; 3050_2.style.top=_4+"px"; 3051_2.style.width=_5+"px"; 3052_2.style.height=_6+"px"; 3053var _7=GetRadWindowManager().GetActiveWindow(); 3054if(!_7.IsModal()){ 3055return; 3056} 3057if(!_7.Top&&!_7.Left){ 3058_7.Center(); 3059} 3060} 3061if(!RadWindowNamespace.AttachedHandlers){ 3062RadWindowNamespace._resizeHandler=oModalFun; 3063RadWindowNamespace._scrollHandler=oModalFun; 3064RadWindowNamespace.RadUtil_AttachEventEx(window,"resize",RadWindowNamespace._resizeHandler); 3065RadWindowNamespace.RadUtil_AttachEventEx(window,"scroll",RadWindowNamespace._scrollHandler); 3066RadWindowNamespace.AttachedHandlers=true; 3067} 3068var _8=GetRadWindowManager().GetActiveWindow(); 3069var _9=_8.WrapperElement; 3070var _a=RadWindowNamespace.GetModalOverlayImage(); 3071if(_9&&_9.style.zIndex){ 3072if(null!=document.readyState&&"complete"!=document.readyState){ 3073return; 3074}else{ 3075if(_a.parentNode!=document.body){ 3076document.body.appendChild(_a); 3077} 3078var _b=parseInt(_9.style.zIndex)+1; 3079_a.style.display=""; 3080window.setTimeout(function(){ 3081if(!_8.IsActive()){ 3082return; 3083} 3084_a.style.zIndex=""+(_b+(document.all?0:-3)); 3085_9.style.zIndex=""+_b; 3086if(_8&&_8.WrapperElement){ 3087_8.WrapperElement.Show(); 3088} 3089},100); 3090} 3091} 3092RadWindowNamespace._resizeHandler(); 3093}; 3094RadWindowNamespace.HideModalOverlayImage=function(){ 3095if(RadWindowNamespace.ModalImage){ 3096this.ModalImage.style.display="none"; 3097} 3098}; 3099RadWindowNamespace.RadWindowModal=function(_c){ 3100this.Window=_c; 3101var _d=this; 3102var _e=function(){ 3103_d.SetActiveProtected(true); 3104}; 3105_c.AttachClientEvent("onactivate",_e); 3106_c.AttachClientEvent("onrestore",_e); 3107var _f=function(){ 3108_d.SetActiveProtected(false); 3109}; 3110_c.AttachClientEvent("onclose",_f); 3111_c.AttachClientEvent("onminimize",_f); 3112_c.private_SetActiveCssClass=function(_10){ 3113_c.WrapperElement.className=_10?"RadWWrapperModal":"RadWWrapperInactive"; 3114}; 3115this.InputElementsState=[]; 3116}; 3117RadWindowNamespace.RadWindowModal.prototype.Dispose=function(){ 3118this.Window=null; 3119this.InputElementsState=null; 3120}; 3121RadWindowNamespace.RadWindowModal.prototype.SetActiveProtected=function(_11){ 3122var _12=this.Window.GetWindowManager(); 3123if(_11&&!this.Window._closed){ 3124if(this.Window._minimized&&!this.Window.IsMinimizeModeEnabled(RadWindowMinimizeMode.MinimizeZone)){ 3125return; 3126} 3127RadWindowNamespace.ShowModalOverlayImage(this.Window); 3128this.DisableInputElements(); 3129if(_12&&_12.AddShortcut){ 3130_12.DisableTabKey=function(){ 3131}; 3132_12.AddShortcut("DisableTabKey","TAB"); 3133} 3134}else{ 3135if(_12&&_12.AddShortcut){ 3136_12.DisableTabKey=null; 3137_12.RemoveShortcut("DisableTabKey"); 3138} 3139RadWindowNamespace.HideModalOverlayImage(); 3140this.RestoreInputElementsState(); 3141} 3142}; 3143RadWindowNamespace.RadWindowModal.prototype.DisableInputElements=function(){ 3144if(this.Window.IsIE&&!this.DisabledDrodpowns){ 3145this.InputElementsState=[]; 3146var _13=document.getElementsByTagName("SELECT"); 3147for(var i=0;i<_13.length;i++){ 3148this.InputElementsState[i]={inputElement:_13[i],isDisabled:_13[i].disabled}; 3149_13[i].setAttribute("disabled","true"); 3150} 3151this.DisabledDrodpowns=true; 3152} 3153}; 3154RadWindowNamespace.RadWindowModal.prototype.RestoreInputElementsState=function(){ 3155if(this.Window.IsIE){ 3156this.DisabledDrodpowns=false; 3157for(var i=0;i<this.InputElementsState.length;i++){ 3158var _o=this.InputElementsState[i]; 3159_o.inputElement.setAttribute("disabled",_o.isDisabled); 3160} 3161} 3162};;RadWindowNamespace.RadWindowStateManager={SaveState:function(){ 3163var _1=GetRadWindowManager(); 3164var _2=_1.GetWindowObjects(); 3165if(!_2){ 3166return; 3167} 3168for(i=0;i<_2.length;i++){ 3169var _3=_2[i]; 3170var _4=(_3.IsVisible()||_3.IsMinimized())+"@"+_3.GetWidth()+"@"+_3.GetHeight()+"@"+_3.GetLeftPosition()+"@"+_3.GetTopPosition()+"@"+_3.IsMinimized(); 3171this.SetRadWindowCookie(_3.Id,_4); 3172} 3173},RestoreState:function(){ 3174function restoreWindow(_5,_6){ 3175var _7=_6.split("@"); 3176if(_7.length>1){ 3177if("true"==_7[0]&&!_5.IsVisible()){ 3178_5.Show(); 3179} 3180window.setTimeout(function(){ 3181if(parseInt(_7[1])>0){
3182_5.SetWidth(_7[1]); 3183} 3184if(parseInt(_7[2])>0){ 3185_5.SetHeight(_7[2]); 3186} 3187_5.MoveTo(_7[3],_7[4]); 3188if("true"==_7[5]){ 3189_5.Minimize(); 3190} 3191},1); 3192} 3193} 3194var _8=RadWindowNamespace.RadWindowStateManager; 3195var _9=GetRadWindowManager(); 3196var _a=_9.GetWindowObjects(); 3197for(i=0;i<_a.length;i++){ 3198var _b=_a[i]; 3199var _c=_8.GetRadWindowCookie(_b.Id); 3200if(_c){ 3201restoreWindow(_b,_c); 3202} 3203} 3204},GetOnlyCookie:function(){ 3205var _d="RadWindowCookie"; 3206var _e=document.cookie.split("; "); 3207for(var i=0;i<_e.length;i++){ 3208var _10=_e[i].split("="); 3209if(_d==_10[0]){ 3210return _10[1]; 3211} 3212} 3213return null; 3214},SetRadWindowCookie:function(_11,_12){ 3215_11="["+_11+"]"; 3216var _13=this.GetOnlyCookie(); 3217var _14=""; 3218var _15=""; 3219if(_13){ 3220var _16=_13.split(_11); 3221if(_16&&_16.length>1){ 3222_14=_16[0]; 3223_15=_16[1].substr(_16[1].indexOf("#")+1); 3224}else{ 3225_15=_13; 3226} 3227} 3228var _17=new Date(); 3229_17.setFullYear(_17.getFullYear()+10); 3230document.cookie="RadWindowCookie"+"="+(_14+_11+"-"+_12+"#"+_15)+";path=/;expires="+_17.toUTCString()+";"; 3231},GetRadWindowCookie:function(_18){ 3232var _19=this.GetOnlyCookie(); 3233if(!_19){ 3234return; 3235} 3236var _1a=null; 3237_18="["+_18+"]"; 3238var _1b=_19.indexOf(_18); 3239if(_1b>=0){ 3240var _1c=_1b+_18.length+1; 3241_1a=_19.substring(_1c,_19.indexOf("#",_1c)); 3242} 3243return _1a; 3244}};;RadWindowNamespace.ThresholdX=5; 3245RadWindowNamespace.ThresholdY=5; 3246RadWindowNamespace.ResizableObject={EnableResize:true,InitResizeElemsArray:function(){ 3247if(this.ResizeInitialized){ 3248return; 3249}else{ 3250this.ResizeInitialized=true; 3251} 3252this.ResizeCursors=["nw-resize","n-resize","ne-resize","w-resize","e-resize","sw-resize","s-resize","se-resize"]; 3253var _1=[]; 3254_1[0]=this.rows[0].cells[0]; 3255_1[1]=this.rows[0].cells[1].getElementsByTagName("DIV")[0]; 3256_1[2]=this.rows[0].cells[this.rows[0].cells.length-1]; 3257var _2=this.rows[1].getElementsByTagName("TABLE")[0].rows[0]; 3258_1[3]=_2.cells[0]; 3259_1[4]=_2.cells[2]; 3260var _3=this.rows[this.rows.length-1].getElementsByTagName("TABLE")[0].rows[0]; 3261_1[5]=_3.cells[0]; 3262_1[6]=_3.cells[1]; 3263_1[7]=_3.cells[2]; 3264for(var i=0;i<_1.length;i++){ 3265obj=_1[i]; 3266if(obj){ 3267obj.style.cursor=this.ResizeCursors[i]; 3268} 3269} 3270this.ResizeElems=_1; 3271},GetComputedStyle:function(_5,_6,_7){ 3272if(_5.ownerDocument.defaultView&&_5.ownerDocument.defaultView.getComputedStyle){ 3273try{ 3274return _5.ownerDocument.defaultView.getComputedStyle(_5,_7||null)[_6]; 3275} 3276catch(ev){ 3277} 3278}else{ 3279if(_5&&_5.currentStyle){ 3280return _5.currentStyle[_6]; 3281} 3282} 3283return null; 3284},CalcResizeDir2:function(_8,_9,_a){ 3285if(!this.EnableResize){ 3286return ""; 3287} 3288var _b=_8.srcElement?_8.srcElement:_8.target; 3289this.InitResizeElemsArray(); 3290var _c=this.LastCursor; 3291this.LastCursor=""; 3292var _c=this.GetComputedStyle(_b,"cursor"); 3293if(!_c||_c=="default"){ 3294_c=""; 3295} 3296return _c; 3297},CalcResizeDir:function(_d,_e,_f){ 3298if(this.tagName=="TABLE"){ 3299return this.CalcResizeDir2(_d,_e,_f); 3300} 3301if(!this.EnableResize){ 3302return ""; 3303} 3304var _10=_d.srcElement?_d.srcElement:_d.target; 3305if(_10!=this){ 3306return ""; 3307} 3308var rc=this.GetRect(); 3309var _12=""; 3310if(null==_e){ 3311_e=RadWindowNamespace.ThresholdX; 3312} 3313if(null==_f){ 3314_f=RadWindowNamespace.ThresholdY; 3315} 3316var _13,_14; 3317if(null!=_d.offsetY){ 3318_13=_d.offsetX; 3319_14=_d.offsetY; 3320}else{ 3321if(null!=_d.layerY){ 3322_13=_d.layerX; 3323_14=_d.layerY; 3324} 3325} 3326if(_14<=_f&&this.AllowNorth){ 3327_12+="n"; 3328}else{ 3329if((rc.height-_14)<=_f&&this.AllowSouth){ 3330_12+="s"; 3331} 3332} 3333if(_13<=_e&&this.AllowWest){ 3334_12+="w"; 3335}else{ 3336if((rc.width-_13)<=_e&&this.AllowEast){ 3337_12+="e"; 3338} 3339} 3340return (""!=_12?(_12+"-resize"):""); 3341},Resize:function(_15){ 3342var dX=_15.clientX-this.MouseX; 3343var dY=_15.clientY-this.MouseY; 3344this.style.cursor=this.ResizeDir; 3345switch(this.ResizeDir){ 3346case "n-resize": 3347this.Inflate(0,dY,null,null); 3348break; 3349case "s-resize": 3350this.Inflate(0,0,0,dY); 3351break; 3352case "w-resize": 3353this.Inflate(dX,0,null,null); 3354break; 3355case "e-resize": 3356this.Inflate(0,0,dX,0); 3357break; 3358case "ne-resize": 3359this.Inflate(0,dY,dX,null); 3360break; 3361case "nw-resize": 3362this.Inflate(dX,dY,null,null); 3363break; 3364case "se-resize": 3365this.Inflate(0,0,dX,dY); 3366break; 3367case "sw-resize": 3368this.Inflate(dX,0,null,dY); 3369break; 3370default: 3371break; 3372} 3373},Inflate:function(_18,_19,_1a,_1b){ 3374var rc=this.GetRect(); 3375var top=rc.top+_19; 3376var _1e=rc.left+_18; 3377if(top<0){ 3378_19=-rc.top; 3379} 3380if(_1e<0){ 3381_18=-rc.left; 3382} 3383top=rc.top+_19; 3384_1e=rc.left+_18; 3385if(null==_1a){ 3386_1a=-_18; 3387} 3388if(null==_1b){ 3389_1b=-_19; 3390} 3391var _1f=rc.width+_1a; 3392var _20=rc.height+_1b; 3393_1f=Math.max(this.MinWidth,_1f); 3394_1f=Math.min(this.MaxWidth,_1f); 3395_20=Math.max(this.MinHeight,_20); 3396_20=Math.min(this.MaxHeight,_20); 3397var _21=(this.DragHelper?this.DragHelper:this); 3398if(rc.width!=_1f&&_1f>5){ 3399_21.MoveBy(_18,0); 3400_21.SetSize(_1f,null); 3401} 3402if(rc.height!=_20&&_20>5){ 3403_21.MoveBy(0,_19); 3404_21.SetSize(null,_20); 3405} 3406},SetResizeDirs:function(_22){ 3407this.AllowNorth=(-1!=_22.indexOf("n")); 3408this.AllowSouth=(-1!=_22.indexOf("s")); 3409this.AllowEast=(-1!=_22.indexOf("e")); 3410this.AllowWest=(-1!=_22.indexOf("w")); 3411},InitResize:function(){ 3412var _23=this.getAttribute("resize"); 3413if("string"==typeof (_23)){ 3414_23=_23.toLowerCase(); 3415}else{ 3416_23="nsew"; 3417} 3418this.SetResizeDirs(_23); 3419this.MinWidth=RadWindowNamespace.RadUtil_GetIntValue(this.getAttribute("minWidth")); 3420this.MaxWidth=RadWindowNamespace.RadUtil_GetIntValue(this.getAttribute("maxWidth"),
3420100000); 3421this.MinHeight=RadWindowNamespace.RadUtil_GetIntValue(this.getAttribute("minHeight")); 3422this.MaxHeight=RadWindowNamespace.RadUtil_GetIntValue(this.getAttribute("maxHeight"),100000); 3423}};;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.