PageSourceSearch

https://www.madopskrifter.nu/WebResource.axd?d=ZOSqw4T9BSxxBk46K1-…7RbigH7Dl1IH7nfRVy9jQ1&t=636814601860000000

js madopskrifter.nu collected 2026-10-02 06:39:46 UTC 16,376 bytes, 670 lines download raw bytes

1RadAjaxManager=function(_1){
2for(var _2 in _1){
3if(_2=="ClientEvents"){
4var _3=_1[_2];
5for(var _4 in _3){
6if(typeof (_3[_4])!="string"){
7continue;
8}
9if(_3[_4]!=""){
10var _5=_3[_4];
11if(_5.indexOf("(")!=-1){
12this[_4]=_5;
13}else{
14this[_4]=eval(_5);
15}
16}else{
17this[_4]=null;
18}
19}
20continue;
21}
22this[_2]=_1[_2];
23}
24this.Form=document.getElementById(this.FormID);
25};
26RadAjaxManager.prototype=new RadAjaxNamespace.RadAjaxControl();
27RadAjaxManager.prototype.Dispose=function(){
28if(this.disposed==true){
29return;
30}
31this.disposed=true;
32try{
33for(var _6 in this){
34this[_6]=null;
35delete this[_6];
36}
37}
38catch(e){
39}
40};
41RadAjaxManager.prototype.AjaxRequest=function(_7){
42RadAjaxNamespace.AsyncRequest(this.UniqueID,_7,this.ClientID);
43};
44RadAjaxManager.prototype.AsyncRequest=function(_8,_9,e){
45RadAjaxNamespace.AsyncRequest(_8,_9,this.ClientID,e);
46};
47RadAjaxManager.prototype.AjaxRequestWithTarget=function(_b,_c){
48RadAjaxNamespace.AsyncRequest(_b,_c,this.ClientID);
49};
50RadAjaxManager.prototype.AsyncRequestWithOptions=function(_d,e){
51RadAjaxNamespace.AsyncRequestWithOptions(_d,this.ClientID,e);
52};
53if(!window.RadAjaxManagerNamespace){
54window.RadAjaxManagerNamespace={};
55}
56RadAjaxManagerNamespace.AsyncRequest=function(_f,_10,_11,e){
57var _13=window[_11];
58if(_13!=null&&typeof (_13.AsyncRequest)=="function"){
59_13.AsyncRequest(_f,_10,e);
60}
61};
62RadAjaxManagerNamespace.AsyncRequestWithOptions=function(_14,_15,e){
63var _17=window[_15];
64if(_17!=null&&typeof (_17.AsyncRequestWithOptions)=="function"){
65_17.AsyncRequestWithOptions(_14,e);
66}
67};
68if(!window.RadAjaxPanelNamespace){
69window.RadAjaxPanelNamespace={};
70}
71RadAjaxPanelNamespace.RadAjaxPanel=function(_18){
72var _19=window[_18.ClientID];
73if(_19!=null&&typeof (_19.Dispose)=="function"){
74window.setTimeout(function(){
75_19.Dispose();
76},100);
77}
78try{
79if(typeof (document.readyState)=="undefined"||document.readyState=="complete"||document.readyState=="interactive"||window.opera){
80this._constructor(_18);
81}else{
82if(window.addEventListener&&navigator.userAgent.indexOf("Safari")!=-1){
83var _1a=this;
84var _1b=function(){
85_1a._constructor(_18);
86};
87window.addEventListener("load",_1b,true);
88}else{
89var _1a=this;
90RadAjaxNamespace.EventManager.Add(window,"load",function(){
91_1a._constructor(_18);
92_1a=null;
93},_18.ClientID);
94}
95}
96}
97catch(e){
98RadAjaxNamespace.OnError(e,_18.ClientID);
99}
100};
101RadAjaxPanelNamespace.RadAjaxPanel.prototype=new RadAjaxNamespace.RadAjaxControl();
102RadAjaxPanelNamespace.RadAjaxPanel.prototype.IsAjaxPanel=true;
103RadAjaxPanelNamespace.RadAjaxPanel.prototype._constructor=function(_1c){
104try{
105for(var _1d in _1c){
106if(_1d=="ClientEvents"){
107var _1e=_1c[_1d];
108for(var _1f in _1e){
109if(typeof (_1e[_1f])!="string"){
110continue;
111}
112if(_1e[_1f]!=""){
113var _20=_1e[_1f];
114if(_20.indexOf("(")!=-1){
115this[_1f]=_20;
116}else{
117this[_1f]=eval(_20);
118}
119}else{
120this[_1f]=null;
121}
122}
123continue;
124}
125this[_1d]=_1c[_1d];
126}
127var _21=document.getElementById(this.ClientID);
128if(_21==null){
129return;
130}
131var _22=document.getElementById(this.ClientID+"PostDataValue");
132if(_22==null){
133_21=null;
134return;
135}
136_22.value="";
137var _23=document.getElementById(_1c.ActiveElementID);
138if(_23!=null&&_23.focus!=null){
139var _24=this;
140window.setTimeout(function(){
141try{
142document.getElementById(_24).focus();
143}
144catch(e){
145}
146},200);
147}
148_23=null;
149_21=null;
150this.ConfigureLoadingPanelSettings();
151}
152catch(e){
153RadAjaxNamespace.OnError(e,_1c.ClientID);
154}
155};
156RadAjaxPanelNamespace.RadAjaxPanel.prototype.ConfigureLoadingPanelSettings=function(){
157this.AjaxSettings=[{InitControlID:this.ClientID,UpdatedControls:[{ControlID:this.ClientID,PanelID:this.LoadingPanelID}]}];
158this.PostbackControlIDServer=this.ClientID;
159};
160RadAjaxPanelNamespace.RadAjaxPanel.prototype.GetAjaxSetting=function(_25){
161return this.AjaxSettings[0];
162};
163RadAjaxPanelNamespace.RadAjaxPanel.prototype.AjaxRequestWithTarget=function(_26,_27){
164this.AsyncRequest(_26,_27);
165};
166RadAjaxPanelNamespace.RadAjaxPanel.prototype.AjaxRequest=function(_28){
167this.AjaxRequestWithTarget(this.UniqueID,_28);
168};
169RadAjaxPanelNamespace.RadAjaxPanel.prototype.AsyncRequest=function(_29,_2a,e){
170this.PrepareForAsyncRequest(_29);
171RadAjaxNamespace.AsyncRequest(_29,_2a,this.ClientID,e);
172};
173RadAjaxPanelNamespace.RadAjaxPanel.prototype.Dispose=function(){
174if(this.disposed==true){
175return;
176}
177this.disposed=true;
178try{
179RadAjaxNamespace.EventManager.CleanUpByClientID(this.ClientID);
180for(var _2c in this){
181this[_2c]=null;
182delete this[_2c];
183}
184}
185catch(e){
186}
187};
188RadAjaxPanelNamespace.AsyncRequest=function(_2d,_2e,_2f,e){
189var _31=window[_2f];
190if(_31!=null&&typeof (_31.AsyncRequest)=="function"){
191_31.AsyncRequest(_2d,_2e,e);
192}
193};
194RadAjaxPanelNamespace.AsyncRequestWithOptions=function(_32,_33,e){
195var _35=window[_33];
196if(_35!=null&&typeof (_35.AsyncRequestWithOptions)=="function"){
197_35.AsyncRequestWithOptions(_32,e);
198}
199};
200RadAjaxPanelNamespace.RadAjaxPanel.prototype.AsyncRequestWithOptions=function(_36,e){
201this.PrepareForAsyncRequest(_36.eventTarget);
202RadAjaxNamespace.AsyncRequestWithOptions(_36,this.ClientID,e);
203};
204RadAjaxPanelNamespace.RadAjaxPanel.prototype.PrepareActiveElement=function(_38){
205var _39=document.activeElement;
206if(!_39){
207var _3a=_38.split("$").join(":");
208_39=document.getElementById(_3a);
209}
210if(_39&&_39.id){
211var _3b=document.getElementById(this.ClientID+"PostDataValue");
212if(_3b){
213_3b.value=this.ClientID+",ActiveElement,"+_39.id+";";
214}
215}
216};
217RadAjaxPanelNamespace.RadAjaxPanel.prototype.PrepareForAsyncRequest=function(_3c){
218this.PrepareActiveElement(_3c);
219};
220RadAjaxTimer=function(_3d){
221this.Initialized=true;
222if(typeof (RadAjaxNamespace.IsAsyncResponse)!="undefined"&&RadAjaxNamespace.IsAsyncResponse&&(typeof (document.readyState)=="undefined"||document.readyState=="complete"||window.opera)){
223this.Initialize(_3d,false);
224}else{
225if(window.addEventListener&&navigator.userAgent.indexOf("Safari")!=-1){
226var _3e=this;
227var _3f=function(){
228_3e.Initialize(_3d,true);
229};
230window.addEventListener("load",_3f,true);
231}else{
232var _3e=this;
233RadAjaxNamespace.EventManager.Add(window,"load",function(){
234_3e.Initialize(_3d,true);
235},_3d.ClientID);
236}
237}
238};
239RadAjaxTimer.SetUp=function(_40,_41){
240var _42=window[_40];
241if(typeof (_42)=="undefined"||typeof (_42.Initialized)=="undefined"){
242window[_40]=new RadAjaxTimer(_41);
243}else{
244var _43=false;
245if(_41.Interval!=_42.Interval){
246_43=true;
247}
248for(var _44 in _41){
249_42[_44]=_41[_44];
250}
251if(_42.IsStarted&&!_42.AutoStart){
252_42.Stop();
253}
254if(!_42.IsStarted&&_42.AutoStart){
255_42.Start();
256}
257if(_42.IsStarted&&_43){
258_42.Stop();
259_42.Start();
260}
261_42.SetUpClientEvents();
262}
263};
264RadAjaxTimer.prototype.Dispose=function(){
265try{
266if(this.disposed==true){
267return;
268}
269this.disposed=true;
270delete this.Initialized;
271RadAjaxNamespace.EventManager.CleanUpByClientID(this.ClientID);
272}
273catch(e){
274}
275this.ClearTimeout();
276};
277RadAjaxTimer.prototype.Initialize=function(_45,_46){
278this.IsStarted=false;
279if(typeof (this.TimerTimeouts)=="undefined"){
280this.TimerTimeouts=[];
281}
282for(var _47 in _45){
283this[_47]=_45[_47];
284}
285var _48=this;
286RadAjaxNamespace.EventManager.Add(window,"unload",function(){
287_48.Dispose();
288},this.ClientID);
289this.SetUpClientEvents();
290if(this.AutoStart){
291if(_46&&this.InitialDelayTime>0){
292window.setTimeout(function(){
293_48.Start();
294_48.Tick();
295},this.InitialDelayTime);
296}else{
297this.Start();
298}
299}
300};
301RadAjaxTimer.prototype.SetUpClientEvents=function(){
302var _49=this["OnClientTickHandler"];
303if(_49!=""){
304if(_49.indexOf("(")!=-1){
305this["OnClientTickHandler"]=_49;
306}else{
307this["OnClientTickHandler"]=eval(_49);
308}
309}
310};
311RadAjaxTimer.prototype.SetTimeoutHandler=function(){
312if(this.IsStarted){
313this.Tick();
314}
315};
316RadAjaxTimer.prototype.Start=function(){
317this.IsStarted=true;
318var _4a=this;
319this.TimerTimeouts[this.ClientID]=window.setInterval(function(){
320_4a.SetTimeoutHandler();
321},this.Interval);
322};
323RadAjaxTimer.prototype.Stop=function(){
324this.IsStarted=false;
325this.ClearTimeout();
326};
327RadAjaxTimer.prototype.ClearTimeout=function(){
328if(typeof (this.TimerTimeouts)!="undefined"){
329window.clearTimeout(this.TimerTimeouts[this.ClientID]);
330}
331};
332RadAjaxTimer.prototype.Tick=function(){
333var _4b=document.getElementById(this.ClientID)==null;
334if(_4b==true){
335this.Dispose();
336return;
337}
338var _4c={CancelServerTick:false};
339var _4d=[_4c];
340var _4e=RadAjaxNamespace.FireEvent(this,"OnClientTickHandler",_4d);
341if(_4c.CancelServerTick==false&&_4e){
342if(this.PostBackString){
343var _4f=this.PostBackString.replace(/@@argument@@/g,this.IsStarted);
344eval(_4f);
345}
346}
347};
348if(!window.RadAjaxServiceNamespace){
349window.RadAjaxServiceNamespace={};
350}
351RadAjaxServiceNamespace.CreateProxyMethod=function(_50,_51){
352var _52=arguments.length-2;
353var _53=arguments;
354_50[_51]=function(){
355var _54="";
356for(var i=0;i<_52;i++){
357if(typeof (arguments[i])=="function"){
358}
359if(i>0){
360_54+="&";
361}
362var _56=[];
363_56[_56.length]=_53[i+2];
364_56[_56.length]=encodeURIComponent(arguments[i]);
365_54+=_56.join("=");
366}
367var _57=_50.ServicePath+"/"+_51;
368var _58=arguments[arguments.length-2];
369var _59=arguments[arguments.length-1];
370var _5a=[];
371_5a[_5a.length]=_57;
372_5a[_5a.length]=_54;
373_5a[_5a.length]=RadAjaxServiceNamespace.ServiceRequestCompleteHandler;
374_5a[_5a.length]=RadAjaxServiceNamespace.ServiceRequestErrorHandler;
375_5a[_5a.length]=_58;
376_5a[_5a.length]=_59;
377return RadAjaxNamespace.ServiceRequest.apply(null,_5a);
378};
379};
380RadAjaxServiceNamespace.CreateSyncProxyMethod=function(_5b,_5c){
381var _5d=arguments.length-2;
382var _5e=arguments;
383_5b[_5c]=function(){
384var _5f="";
385for(var i=0;i<_5d;i++){
386if(typeof (arguments[i])=="function"){
387}
388if(i>0){
389_5f+="&";
390}
391var _61=[];
392_61[_61.length]=_5e[i+2];
393_61[_61.length]=encodeURIComponent(arguments[i]);
394_5f+=_61.join("=");
395}
396var _62=_5b.ServicePath+"/"+_5c;
397var _63=[];
398_63[_63.length]=_62;
399_63[_63.length]=_5f;
400_63[_63.length]=RadAjaxServiceNamespace.ServiceRequestCompleteHandler;
401_63[_63.length]=RadAjaxServiceNamespace.ServiceRequestErrorHandler;
402return RadAjaxNamespace.SyncServiceRequest.apply(null,_63);
403};
404};
405RadAjaxServiceNamespace.ServiceRequestCompleteHandler=function(_64,_65){
406var _66=_64.Xml.lastChild;
407if(!_66){
408_65({},"","");
409return;
410}
411var _67=_66.tagName;
412var _68=new RadAjaxServiceNamespace.ServiceResponseParser();
413var _69=_68.ParseNode(_66);
414if(typeof (_65)=="function"){
415_65(_69,_64.Xml,_64.Text);
416}else{
417return _69;
418}
419};
420RadAjaxServiceNamespace.ServiceRequestErrorHandler=function(_6a,_6b){
421if(typeof (_6b)=="function"){
422_6b(_6a);
423}else{
424var _6c=new Error(_6a.ErrorText);
425throw (_6c);
426}
427};
428if(!window.RadAjaxServiceNamespace){
429window.RadAjaxServiceNamespace={};
430}
431RadAjaxServiceNamespace.ServiceResponseParser=function(){
432};
433RadAjaxServiceNamespace.ServiceResponseParser.prototype.ParseNode=function(_6d){
434if(this.IsSimpleNode(_6d)){
435return this.ParseNodeValue(_6d,"",_6d.tagName);
436}else{
437if(this.IsCollectionNode(_6d)){
438var _6e=[];
439for(var i=0;i<_6d.childNodes.length;i++){
440if(this.IsEmptyNode(_6d.childNodes[i])){
441continue;
442}
443var _70=this.ParseCollectionNode(_6d.childNodes[i]);
444_6e[_6e.length]=_70;
445}
446return _6e;
447}else{
448if(this.IsDataSetNode(_6d)){
449var _71=this.GetElementsWithPrefix(_6d,"xs","schema")[0];
450var _72=this.GetElementsWithPrefix(_6d,"diffgr","diffgram")[0];
451var _73=this.ParseDataSetXsdSchema(_71);
452return this.ParseDataSetData(_72,_73);
453}else{
454var _74={};
455var _75=null;
456var _76=null;
457for(var i=0;i<_6d.childNodes.length;i++){
458if(this.IsEmptyNode(_6d.childNodes[i])){
459continue;
460}
461_75=_6d.childNodes[i].tagName;
462_76=this.ParseNode(_6d.childNodes[i]);
463_74[_75]=_76;
464}
465return _74;
466}
467}
468}
469};
470RadAjaxServiceNamespace.ServiceResponseParser.prototype.ParseDataSetData=function(_77,_78){
471var _79={};
472var _7a=null;
473var _7b=null;
474for(var _7c in _78){
475if(typeof (_7c)!="string"){
476continue;
477}
478_7b=[];
479_7a=_77.getElementsByTagName(_7c);
480for(var i=0;i<_7a.length;i++){
481var _7e=_7a[i].parentNode.tagName;
482if(_7e!="diffgr:before"&&_7e!="diffgr:error"){
483_7b[_7b.length]=this.ParseTableRowNode(_7a[i],_78[_7c]);
484}
485}
486_79[_7c]=_7b;
487}
488return _79;
489};
490RadAjaxServiceNamespace.ServiceResponseParser.prototype.ParseDataSetXsdSchema=function(_7f){
491var _80=this.GetElementsWithPrefix(_7f,"xs","choice")[0];
492var _81={};
493var _82=null;
494var _83=null;
495var _84=null;
496for(var i=0;i<_80.childNodes.length;i++){
497if(this.IsSimpleNode(_80.childNodes[i])){
498continue;
499}
500_82=_80.childNodes[i];
501_83=this.ParseDataTableXsdSchema(_82);
502_84=_82.getAttribute("name");
503_81[_84]=_83;
504}
505return _81;
506};
507RadAjaxServiceNamespace.ServiceResponseParser.prototype.ParseDataTableXsdSchema=function(_86){
508var _87=this.GetElementsWithPrefix(_86,"xs","element");
509var _88={};
510var _89=null;
511var _8a=null;
512for(var i=0;i<_87.length;i++){
513_89=_87[i].getAttribute("name");
514_8a=_87[i].getAttribute("type");
515_88[_89]=_8a;
516}
517return _88;
518};
519RadAjaxServiceNamespace.ServiceResponseParser.prototype.ParseTableRowNode=function(_8c,_8d){
520var _8e={};
521var _8f=null;
522var _90=null;
523for(var i=0;i<_8c.childNodes.length;i++){
524if(this.IsEmptyNode(_8c.childNodes[i])){
525continue;
526}
527_8f=_8c.childNodes[i].tagName;
528_90=_8d[_8f];
529_8e[_8f]=this.ParseNodeValue(_8c.childNodes[i],_90);
530}
531return _8e;
532};
533RadAjaxServiceNamespace.ServiceResponseParser.prototype.ParseNodeValue=function(_92,_93,_94){
534if((_93.indexOf(":int")!=-1)||_94=="int"){
535return parseInt(this.GetSimpleNodeValue(_92));
536}else{
537if((_93.indexOf(":float")!=-1)||_94=="float"||(_93.indexOf(":double")!=-1)||_94=="double"){
538return parseFloat(this.GetSimpleNodeValue(_92));
539}else{
540if((_93.indexOf(":boolean")!=-1)||_94=="boolean"){
541return (this.GetSimpleNodeValue(_92)=="true");
542}else{
543if((_93.indexOf(":dateTime")!=-1)||_94=="dateTime"){
544return this.ParseDateTimeISO8601(this.GetSimpleNodeValue(_92));
545}else{
546if(!this.IsSimpleNode(_92)){
547return this.ParseNode(_92);
548}else{
549return this.GetSimpleNodeValue(_92);
550}
551}
552}
553}
554}
555};
556RadAjaxServiceNamespace.ServiceResponseParser.prototype.GetSimpleNodeValue=function(_95){
557if(_95.firstChild!=null){
558var _96="";
559for(var i=0;i<_95.childNodes.length;i++){
560_96+=_95.childNodes[i].nodeValue;
561}
562return _96;
563}else{
564return _95.nodeValue;
565}
566};
567RadAjaxServiceNamespace.ServiceResponseParser.prototype.ParseDateTimeISO8601=function(_98){
568var _99=/([0-9]{4})(-([0-9]{2})(-([0-9]{2})(T([0-9]{2}):([0-9]{2})(:([0-9]{2})(\.([0-9]+))?)?(Z|(([-+])([0-9]{2}):([0-9]{2})))?)?)?)?/i;
569var d=_98.match(_99);
570var _9b=0;
571var _9c=new Date(d[1],0,1);
572if(d[3]){
573_9c.setMonth(d[3]-1);
574}
575if(d[5]){
576_9c.setDate(d[5]);
577}
578if(d[7]){
579_9c.setHours(d[7]);
580}
581if(d[8]){
582_9c.setMinutes(d[8]);
583}
584if(d[10]){
585_9c.setSeconds(d[10]);
586}
587if(d[12]){
588_9c.setMilliseconds(Number("0."+d[12])*1000);
589}
590if(d[14]){
591_9b=(Number(d[16])*60)+Number(d[17]);
592_9b*=((d[15]=="-")?1:-1);
593}
594_9b-=_9c.getTimezoneOffset();
595time=(Number(_9c)+(_9b*60*1000));
596var _9d=new Date();
597_9d.setTime(Number(time));
598return _9d;
599};
600RadAjaxServiceNamespace.ServiceResponseParser.prototype.ParseCollectionNode=function(_9e){
601var _9f=""+_9e.getAttribute("xsi:type");
602var _a0=_9e.tagName;
603return this.ParseNodeValue(_9e,_9f,_a0);
604};
605RadAjaxServiceNamespace.ServiceResponseParser.prototype.IsSimpleNode=function(_a1){
606if(_a1.childNodes.length==0){
607return true;
608}
609for(var i=0;i<_a1.childNodes.length;i++){
610if(_a1.childNodes[i].nodeType!=3){
611return false;
612}
613}
614return true;
615};
616RadAjaxServiceNamespace.ServiceResponseParser.prototype.IsEmptyNode=function(_a3){
617if(this.IsSimpleNode(_a3)&&typeof (_a3.tagName)=="undefined"){
618return true;
619}else{
620return false;
621}
622};
623RadAjaxServiceNamespace.ServiceResponseParser.prototype.IsCollectionNode=function(_a4){
624var _a5=_a4.firstChild;
625var _a6=this.GetFirstNonSimpleNode(_a5);
626var _a7=_a6.tagName;
627var _a8=_a4.tagName.toLowerCase();
628_a7=_a7.toLowerCase();
629if(_a8.indexOf("arrayof")==0&&_a8!="arrayof"+_a7){
630return false;
631}
632for(var i=0,len=_a4.childNodes.length;i<len;i++){
633if(this.IsEmptyNode(_a4.childNodes[i])){
634continue;
635}
636if(typeof (_a4.childNodes[i].tagName)=="undefined"||_a4.childNodes[i].tagName.toLowerCase()!=_a7){
637return false;
638}
639}
640return true;
641};
642RadAjaxServiceNamespace.ServiceResponseParser.prototype.GetElementsWithPrefix=function(_ab,_ac,_ad){
643if(document.all&&!window.opera){
644var _ae=_ac+":"+_ad;
645var _af=_ab.getElementsByTagName(_ae);
646}else{
647var _af=_ab.getElementsByTagName(_ad);
648}
649return _af;
650};
651RadAjaxServiceNamespace.ServiceResponseParser.prototype.GetFirstNonSimpleNode=function(_b0){
652if(_b0==null){
653return null;
654}
655if(this.IsEmptyNode(_b0)){
656return this.GetFirstNonSimpleNode(_b0.nextSibling);
657}else{
658return _b0;
659}
660};
661RadAjaxServiceNamespace.ServiceResponseParser.prototype.IsDataSetNode=function(_b1){
662var _b2=this.GetElementsWithPrefix(_b1,"xs","schema");
663var _b3=this.GetElementsWithPrefix(_b1,"diffgr","diffgram");
664if(_b2.length==1&&_b3.length==1&&_b2[0].parentNode==_b1&&_b3[0].parentNode==_b1){
665return true;
666}else{
667return false;
668}
669};
670

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.