473,703 Members | 2,421 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to debug microsoft errors coming from javascript?

Hi, I made a change this morning

and now im getting an error that says either "a is undefined or null"
or "e is undefined or null"

the microsoft ajax line is below, I have no idea how to figure this
problem out. Any suggestions?

thanks
Joel

// MicrosoftAjax.j s
5Function.__typ eName="Function ";Function.__cl ass=true;Functi on.createCallba ck=function(b,a )
{return function(){var e=arguments.len gth;if(e>0){var d=[];for(var
c=0;c<e;c++)d[c]=arguments[c];d[e]=a;return b.apply(this,d) }return
b.call(this,a)} };Function.crea teDelegate=func tion(a,b){retur n
function(){retu rn
b.apply(a,argum ents)}};Functio n.emptyFunction =Function.empty Method=function ()
{};Function._va lidateParams=fu nction(e,c){var
a;a=Function._v alidateParamete rCount(e,c);if( a)
{a.popStackFram e();return a}for(var b=0;b<e.length; b++){var
d=c[Math.min(b,c.le ngth-1)],f=d.name;if(d. parameterArray) f+="["+(b-
c.length+1)+"]";a=Function._v alidateParamete r(e[b],d,f);if(a)
{a.popStackFram e();return a}}return
null};Function. _validateParame terCount=functi on(e,a){var
c=a.length,d=0; for(var b=0;b<a.length; b+
+)if(a[b].parameterArray )c=Number.MAX_V ALUE;else if(!a[b].optional)d+
+;if(e.length<d ||e.length>c){v ar
f=Error.paramet erCount();f.pop StackFrame();re turn f}return
null};Function. _validateParame ter=function(c, a,h){var b,g=a.type,l=!!
a.integer,k=!!a .domElement,m=! !
a.mayBeNull;b=F unction._valida teParameterType (c,g,l,k,m,h);i f(b)
{b.popStackFram e();return b}var e=a.elementType ,f=!!
a.elementMayBeN ull;if(g===Arra y&&typeof c!=="undefined" &&c!
==null&&(e||!f) ){var j=!!a.elementIn teger,i=!!
a.elementDomEle ment;for(var d=0;d<c.length; d++){var
n=c[d];b=Function._va lidateParameter Type(n,e,j,i,f, h+"["+d+"]");if(b)
{b.popStackFram e();return b}}}return
null};Function. _validateParame terType=functio n(a,c,n,m,k,d){ var
b;if(typeof a==="undefined" )if(k)return
null;else{b=Err or.argumentUnde fined(d);b.popS tackFrame();ret urn
b}if(a===null)i f(k)return
null;else{b=Err or.argumentNull (d);b.popStackF rame();return
b}if(c&&c.__enu m){if(typeof a!=="number")
{b=Error.argume ntType(d,Object .getType(a),c); b.popStackFrame ();return
b}if(a%1===0){v ar e=c.prototype;i f(!c.__flags||a ===0){for(var i in
e)if(e[i]===a)return null}else{var l=a;for(var i in e){var
f=e[i];if(f===0)conti nue;if((f&a)=== f)l-=f;if(l===0)ret urn
null}}}b=Error. argumentOutOfRa nge(d,a,String. format(Sys.Res. enumInvalidValu e,a,c.getName() ));b.popStackFr ame();return
b}if(m){var h;if(typeof a.nodeType!=="n umber"){var g=a.ownerDocume nt||
a.document||a;i f(g!=a){var j=g.defaultView ||g.parentWindo w;h=j!=a&&!
(j.document&&a. document&&j.doc ument===a.docum ent)}else h=typeof
g.body==="undef ined"}else h=a.nodeType=== 3;if(h)
{b=Error.argume nt(d,Sys.Res.ar gumentDomElemen t);b.popStackFr ame();return
b}}if(c&&!c.isI nstanceOfType(a ))
{b=Error.argume ntType(d,Object .getType(a),c); b.popStackFrame ();return
b}if(c===Number &&n)if(a%1!= =0)
{b=Error.argume ntOutOfRange(d, a,Sys.Res.argum entInteger);b.p opStackFrame(); return
b}return
null};Error.__t ypeName="Error" ;Error.__class= true;Error.crea te=function(d,b )
{var a=new Error(d);a.mess age=d;if(b)for( var c in
b)a[c]=b[c];a.popStackFram e();return a};Error.argume nt=function(a,c )
{var b="Sys.Argument Exception: "+(c?c:Sys.Res. argument);if(a) b
+="\n"+String.f ormat(Sys.Res.p aramName,a);var d=Error.create( b,
{name:"Sys.Argu mentException", paramName:a});d .popStackFrame( );return
d};Error.argume ntNull=function (a,c){var b="Sys.Argument NullException:
"+(c?c:Sys.Res. argumentNull);i f(a)b
+="\n"+String.f ormat(Sys.Res.p aramName,a);var d=Error.create( b,
{name:"Sys.Argu mentNullExcepti on",paramName:a });d.popStackFr ame();return
d};Error.argume ntOutOfRange=fu nction(c,a,d){v ar
b="Sys.Argument OutOfRangeExcep tion: "+(d?
d:Sys.Res.argum entOutOfRange); if(c)b
+="\n"+String.f ormat(Sys.Res.p aramName,c);if( typeof a!=="undefined" &&a!
==null)b+="\n"+ String.format(S ys.Res.actualVa lue,a);var
e=Error.create( b,
{name:"Sys.Argu mentOutOfRangeE xception",param Name:c,actualVa lue:a});e.popSt ackFrame();retu rn
e};Error.argume ntType=function (d,c,b,e){var
a="Sys.Argument TypeException: ";if(e)a+=e;els e if(c&&b)a
+=String.format (Sys.Res.argume ntTypeWithTypes ,c.getName(),b. getName());else
a+=Sys.Res.argu mentType;if(d)a
+="\n"+String.f ormat(Sys.Res.p aramName,d);var f=Error.create( a,
{name:"Sys.Argu mentTypeExcepti on",paramName:d ,actualType:c,e xpectedType:b}) ;f.popStackFram e();return
f};Error.argume ntUndefined=fun ction(a,c){var
b="Sys.Argument UndefinedExcept ion: "+(c?
c:Sys.Res.argum entUndefined);i f(a)b
+="\n"+String.f ormat(Sys.Res.p aramName,a);var d=Error.create( b,
{name:"Sys.Argu mentUndefinedEx ception",paramN ame:a});d.popSt ackFrame();retu rn
d};Error.format =function(a){va r c="Sys.FormatEx ception: "+(a?
a:Sys.Res.forma t),b=Error.crea te(c,
{name:"Sys.Form atException"}); b.popStackFrame ();return
b};Error.invali dOperation=func tion(a){var
c="Sys.InvalidO perationExcepti on: "+(a?
a:Sys.Res.inval idOperation),b= Error.create(c,
{name:"Sys.Inva lidOperationExc eption"});b.pop StackFrame();re turn
b};Error.notImp lemented=functi on(a){var
c="Sys.NotImple mentedException : "+(a?
a:Sys.Res.notIm plemented),b=Er ror.create(c,
{name:"Sys.NotI mplementedExcep tion"});b.popSt ackFrame();retu rn
b};Error.parame terCount=functi on(a){var
c="Sys.Paramete rCountException : "+(a?
a:Sys.Res.param eterCount),b=Er ror.create(c,
{name:"Sys.Para meterCountExcep tion"});b.popSt ackFrame();retu rn
b};Error.protot ype.popStackFra me=function(){i f(typeof
this.stack==="u ndefined"||this .stack===null|| typeof
this.fileName== ="undefined"||t his.fileName=== null||typeof
this.lineNumber ==="undefined"| |this.lineNumbe r===null)return ;var
a=this.stack.sp lit("\n"),c=a[0],e=this.fileNam e
+":"+this.lineN umber;while(typ eof c!=="undefined" &&c!
==null&&c.index Of(e)===-1){a.shift();c= a[0]}var d=a[1];if(typeof
d==="undefined" ||d===null)retu rn;var b=d.match(/@(.*):(\d+)
$/);if(typeof b==="undefined" ||
b===null)return ;this.fileName= b[1];this.lineNumbe r=parseInt(b[2]);a.shift();thi s.stack=a.join( "\n")};Object._ _typeName="Obje ct";Object.__cl ass=true;Object .getType=functi on(b)
{var a=b.constructor ;if(!a||typeof a!=="function"| |!a.__typeName| |
a.__typeName=== "Object")re turn Object;return
a};Object.getTy peName=function (a){return
Object.getType( a).getName()};S tring.__typeNam e="String";Stri ng.__class=true ;String.prototy pe.endsWith=fun ction(a)
{return this.substr(thi s.length-
a.length)===a}; String.prototyp e.startsWith=fu nction(a){retur n
this.substr(0,a .length)===a};S tring.prototype .trim=function( ){return
this.replace(/^\s+|\s+$/g,"")};String.p rototype.trimEn d=function()
{return this.replace(/\s+$/,"")};String.pr ototype.trimSta rt=function()
{return this.replace(/^\s+/,"")};String.fo rmat=function() {return
String._toForma ttedString(fals e,arguments)};S tring.localeFor mat=function()
{return
String._toForma ttedString(true ,arguments)};St ring._toFormatt edString=functi on(l,j)
{var c="",e=j[0];for(var a=0;true;){var
f=e.indexOf("{" ,a),d=e.indexOf ("}",a);if(f<0& &d<0){c
+=e.slice(a);br eak}if(d>0&&(d< f||f<0)){c+=e.s lice(a,d+1);a=d
+2;continue}c+= e.slice(a,f);a= f+1;if(e.charAt (a)==="{"){c+=" {";a+
+;continue}if(d <0)break;var
h=e.substring(a ,d),g=h.indexOf (":"),k=parseIn t(g<0?h:h.subst ring(0,g),
10)+1,i=g<0?"": h.substring(g+1 ),b=j[k];if(typeof b==="undefined" ||
b===null)b="";i f(b.toFormatted String)c+=b.toF ormattedString( i);else
if(l&&b.localeF ormat)c+=b.loca leFormat(i);els e if(b.format)c
+=b.format(i);e lse c+=b.toString() ;a=d+1}return
c};Boolean.__ty peName="Boolean ";Boolean.__cla ss=true;Boolean .parse=function (b)
{var a=b.trim().toLo werCase();if(a= =="false")retur n
false;if(a==="t rue")return
true};Date.__ty peName="Date";D ate.__class=tru e;Date._appendP reOrPostMatch=f unction(e,b)
{var d=0,a=false;for (var c=0,g=e.length; c<g;c++){var
f=e.charAt(c);s witch(f){case "'":if(a)b.appe nd("'");else d+
+;a=false;break ;case "\\":if(a)b.app end("\\");a=!
a;break;default :b.append(f);a= false}}return
d};Date._expand Format=function (a,b){if(!
b)b="F";if(b.le ngth===1)switch (b){case "d":return
a.ShortDatePatt ern;case "D":return a.LongDatePatte rn;case "t":return
a.ShortTimePatt ern;case "T":return a.LongTimePatte rn;case "F":return
a.FullDateTimeP attern;case "M":case "m":return a.MonthDayPatte rn;case
"s":return a.SortableDateT imePattern;case "Y":case "y":return
a.YearMonthPatt ern;default:thr ow
Error.format(Sy s.Res.formatInv alidString)}ret urn
b};Date._expand Year=function(c ,a){if(a<100){v ar b=(new
Date).getFullYe ar();a+=b-b%100;if(a>c.Ca lendar.TwoDigit YearMax)return
a-100}return a};Date._getPar seRegExp=functi on(b,e){if(!
b._parseRegExp) b._parseRegExp= {};else if(b._parseRegE xp[e])return
b._parseRegExp[e];var c=Date._expandF ormat(b,e);c=c. replace(/([\^\$\.\*
\+\?\|\[\]\(\)\{\}])/g,"\\\\$1");v ar a=new
Sys.StringBuild er("^"),j=[],f=0,i=0,h=Date ._getTokenRegEx p(),d;while((d= h.exec(c))!
==null){var l=c.slice(f,d.i ndex);f=h.lastI ndex;i
+=Date._appendP reOrPostMatch(l ,a);if(i%2===1)
{a.append(d[0]);continue}swit ch(d[0]){case "dddd":case "ddd":case
"MMMM":case "MMM":a.append( "(\\D+)");break ;case "tt":case
"t":a.append("( \\D*)");break;c ase "yyyy":a.append ("(\
\d{4})");break; case "fff":a.append( "(\\d{3})");bre ak;case
"ff":a.append(" (\\d{2})");brea k;case "f":a.append("( \\d)");break;ca se
"dd":case "d":case "MM":case "M":case "yy":case "y":case "HH":case
"H":case "hh":case "h":case "mm":case "m":case "ss":case
"s":a.append("( \\d\\d?)");brea k;case "zzz":a.append( "([+-]?\\d\\d?:\
\d{2})");break; case "zz":case "z":a.appen d("([+-]?\\d\
\d?)")}Array.ad d(j,d[0])}Date._appendP reOrPostMatch(c .slice(f),a);a. append("$");var
k=a.toString(). replace(/\s+/g,"\\s
+"),g={"regExp" :k,"groups":j}; b._parseRegExp[e]=g;return
g};Date._getTok enRegExp=functi on(){return /dddd|ddd|dd|d|M MMM|MMM|MM|M|
yyyy|yy|y|hh|h| HH|H|mm|m|ss|s| tt|t|fff|ff|f|z zz|zz|z/
g};Date.parseLo cale=function(a ){return
Date._parse(a,S ys.CultureInfo. CurrentCulture, arguments)};Dat e.parseInvarian t=function(a)
{return
Date._parse(a,S ys.CultureInfo. InvariantCultur e,arguments)};D ate._parse=func tion(g,c,h)
{var e=false;for(var a=1,i=h.length; a<i;a++){var f=h[a];if(f)
{e=true;var b=Date._parseEx act(g,f,c);if(b )return b}}if(!e){var
d=c._getDateTim eFormats();for( var a=0,i=d.length; a<i;a++){var
b=Date._parseEx act(g,d[a],c);if(b)return b}}return
null};Date._par seExact=functio n(s,y,j){s=s.tr im();var
m=j.dateTimeFor mat,v=Date._get ParseRegExp(m,y ),x=(new
RegExp(v.regExp )).exec(s);if(x ===null)return null;var
w=v.groups,f=nu ll,c=null,h=nul l,g=null,d=0,n= 0,o=0,e=0,k=nul l,r=false;for(v ar
p=0,z=w.length; p<z;p++){var a=x[p+1];if(a)switch(w[p]){case "dd":case
"d":h=parseInt( a,10);if(h<1||h >31)return null;break;case
"MMMM":c=j._get MonthIndex(a);i f(c<0||c>11)ret urn null;break;case
"MMM":c=j._getA bbrMonthIndex(a );if(c<0||c>11) return null;break;case
"M":case "MM":var c=parseInt(a,10 )-1;if(c<0||c>11) return
null;break;case "y":case "yy":f=Date._ex pandYear(m,pars eInt(a,
10));if(f<0||f> 9999)return null;break;case "yyyy":f=parseI nt(a,
10);if(f<0||f>9 999)return null;break;case "h":case "hh":d=parseInt (a,
10);if(d===12)d =0;if(d<0||d>11 )return null;break;case "H":case
"HH":d=parseInt (a,10);if(d<0|| d>23)return null;break;case "m":case
"mm":n=parseInt (a,10);if(n<0|| n>59)return null;break;case "s":case
"ss":o=parseInt (a,10);if(o<0|| o>59)return null;break;case "tt":case
"t":var u=a.toUpperCase ();r=u===m.PMDe signator.toUppe rCase();if(!r&& u!
==m.AMDesignato r.toUpperCase() )return null;break;case "f":e=parseInt( a,
10)*100;if(e<0| |e>999)return null;break;case "ff":e=parseInt (a,
10)*10;if(e<0|| e>999)return null;break;case "fff":e=parseIn t(a,
10);if(e<0||e>9 99)return null;break;case
"dddd":g=j._get DayIndex(a);if( g<0||g>6)retur n null;break;case
"ddd":g=j._getA bbrDayIndex(a); if(g<0||g>6)ret urn null;break;case
"zzz":var q=a.split(/:/);if(q.length!= =2)return null;var
i=parseInt(q[0],10);if(i<-12||i>13)return null;var l=parseInt(q[1],
10);if(l<0||l>5 9)return null;k=i*60+(a. startsWith("-")?-
l:l);break;case "z":case "zz":var i=parseInt(a,10 );if(i<-12||
i>13)return null;k=i*60}}va r b=new
Date;if(f===nul l)f=b.getFullYe ar();if(c===nul l)c=b.getMonth( );if(h===null)h =b.getDate();b. setFullYear(f,c ,h);if(b.getDat e()!
==h)return null;if(g!==nul l&&b.getDay()!= =g)return null;if(r&&d<12 )d
+=12;b.setHours (d,n,o,e);if(k! ==null){var t=b.getMinutes( )-(k
+b.getTimezoneO ffset());b.setH ours(b.getHours ()+parseInt(t/60,10),t
%60)}return b};Date.prototy pe.format=funct ion(a){return
this._toFormatt edString(a,Sys. CultureInfo.Inv ariantCulture)} ;Date.prototype .localeFormat=f unction(a)
{return
this._toFormatt edString(a,Sys. CultureInfo.Cur rentCulture)};D ate.prototype._ toFormattedStri ng=function(e,h )
{if(!e||e.lengt h===0||e==="i") if(h&&h.name.le ngth>0)return
this.toLocaleSt ring();else return this.toString() ;var
d=h.dateTimeFor mat;e=Date._exp andFormat(d,e); var a=new
Sys.StringBuild er,b;function c(a){if(a<10)re turn "0"+a;retur n
a.toString()}fu nction g(a){if(a<10)re turn "00"+a;if(a<100 )return
"0"+a;retur n a.toString()}va r j=0,i=Date._get TokenRegExp();f or(;true;)
{var l=i.lastIndex,f =i.exec(e),k=e. slice(l,f?f.ind ex:e.length);j
+=Date._appendP reOrPostMatch(k ,a);if(!f)break ;if(j%2===1)
{a.append(f[0]);continue}swit ch(f[0]){case
"dddd":a.append (d.DayNames[this.getDay()]);break;case
"ddd":a.append( d.AbbreviatedDa yNames[this.getDay()]);break;case
"dd":a.append(c (this.getDate() ));break;case
"d":a.append(th is.getDate());b reak;case
"MMMM":a.append (d.MonthNames[this.getMonth()]);break;case
"MMM":a.append( d.AbbreviatedMo nthNames[this.getMonth()]);break;case
"MM":a.append(c (this.getMonth( )+1));break;cas e
"M":a.append(th is.getMonth()+1 );break;case
"yyyy":a.append (this.getFullYe ar());break;cas e
"yy":a.append(c (this.getFullYe ar()%100));brea k;case
"y":a.append(th is.getFullYear( )%100);break;ca se "hh":b=this.get Hours()
%12;if(b===0)b= 12;a.append(c(b ));break;case "h":b=this.getH ours()
%12;if(b===0)b= 12;a.append(b); break;case
"HH":a.append(c (this.getHours( )));break;case
"H":a.append(th is.getHours()); break;case
"mm":a.append(c (this.getMinute s()));break;cas e
"m":a.append(th is.getMinutes() );break;case
"ss":a.append(c (this.getSecond s()));break;cas e
"s":a.append(th is.getSeconds() );break;case
"tt":a.append(t his.getHours()< 12?
d.AMDesignator: d.PMDesignator) ;break;case
"t":a.append((t his.getHours()< 12?
d.AMDesignator: d.PMDesignator) .charAt(0));bre ak;case
"f":a.append(g( this.getMillise conds()).charAt (0));break;case
"ff":a.append(g (this.getMillis econds()).subst r(0,2));break;c ase
"fff":a.append( g(this.getMilli seconds()));bre ak;case
"z":b=this.getT imezoneOffset()/60;a.append((b< =0?"+":"-")
+Math.floor(Mat h.abs(b)));brea k;case "zz":b=this.get TimezoneOffset( )/
60;a.append((b< =0?"+":"-")+c(Math.floor (Math.abs(b)))) ;break;case
"zzz":b=this.ge tTimezoneOffset ()/60;a.append((b< =0?"+":"-")
+c(Math.floor(M ath.abs(b)))+d. TimeSeparator
+c(Math.abs(thi s.getTimezoneOf fset()%60)))}}r eturn
a.toString()};N umber.__typeNam e="Number";Numb er.__class=true ;Number.parseLo cale=function(a )
{return
Number._parse(a ,Sys.CultureInf o.CurrentCultur e)};Number.pars eInvariant=func tion(a)
{return
Number._parse(a ,Sys.CultureInf o.InvariantCult ure)};Number._p arse=function(b ,n)
{b=b.trim();if( b.match(/^[+-]?infinity$/i))return
parseFloat(b);i f(b.match(/^0x[a-f0-9]+$/i))return parseInt(b);var
a=n.numberForma t,f=Number._par seNumberNegativ ePattern(b,a,a. NumberNegativeP attern),h=f[0],d=f[1];if(h===""&&a.N umberNegativePa ttern!
==1){f=Number._ parseNumberNega tivePattern(b,a ,
1);h=f[0];d=f[1]}if(h==="")h="+ ";var
j,c,e=d.indexOf ("e");if(e<0)e= d.indexOf("E"); if(e<0)
{c=d;j=null}els e{c=d.substr(0, e);j=d.substr(e +1)}var
g,k,m=c.indexOf (a.NumberDecima lSeparator);if( m<0)
{g=c;k=null}els e{g=c.substr(0, m);k=c.substr(m
+a.NumberDecima lSeparator.leng th)}g=g.split(a .NumberGroupSep arator).join("" );var
l=h+g;if(k!==nu ll)l+="."+k;if( j!==null){var
i=Number._parse NumberNegativeP attern(j,a,1);i f(i[0]==="")i[0]="+";l
+="e"+i[0]+i[1]}if(l.match(/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/))return
parseFloat(l);r eturn
Number.NaN};Num ber._parseNumbe rNegativePatter n=function(a,d, e){var
b=d.NegativeSig n,c=d.PositiveS ign;switch(e){c ase 4:b=" "+b;c="
"+c;case 3:if(a.endsWith (b))return ["-",a.substr(0,a. length-
b.length)];else if(a.endsWith(c ))return ["+",a.substr(0, a.length-
c.length)];break;case 2:b+=" ";c+=" ";case 1:if(a.startsWi th(b))return
["-",a.substr(b.le ngth)];else if(a.startsWith (c))return
["+",a.substr(c. length)];break;case
0:if(a.startsWi th("(")&&a.ends With(")"))retur n
["-",a.substr(1,a. length-2)]}return
["",a]};Number.protot ype.format=func tion(a){return
this._toFormatt edString(a,Sys. CultureInfo.Inv ariantCulture)} ;Number.prototy pe.localeFormat =function(a)
{return
this._toFormatt edString(a,Sys. CultureInfo.Cur rentCulture)};N umber.prototype ._toFormattedSt ring=function(d ,j)
{if(!d||d.lengt h===0||d==="i") if(j&&j.name.le ngth>0)return
this.toLocaleSt ring();else return this.toString() ;var q=["n %","n
%","%n"],p=["-n %","-n%","-%n"],r=["(n)","-n","- n","n-","n
-"],o=["$n","n$"," $ n","n $"],n=["($n)","-$n","$-n","$n-","(n$)","-n
$","n-$","n$-","-n $","-$ n","n $-","$ n-","$ -n","n- $","($ n)","(n
$)"];function i(p,k,j,l,o){va r
e=j[0],g=1,c=p.toStri ng(),a="",m="", i=c.split("."); if(i.length>1)
{c=i[0];a=i[1];var h=a.split(/e/i);if(h.length> 1)
{a=h[0];m="e"+h[1]}}if(k>0){var f=a.length-
k;if(f>0)a=a.sl ice(0,k);else if(f<0)for(var n=0;n<Math.abs( f);n++)a
+="0";a=o+a}els e a="";a+=m;var b=c.length-1,d="";while(b> =0){if(e===0||
e>b)if(d.length >0)return c.slice(0,b+1)+ l+d+a;else return c.slice(0,b
+1)+a;if(d.leng th>0)d=c.slice( b-e+1,b+1)+l+d;el se d=c.slice(b-e+1,b
+1);b-=e;if(g<j.lengt h){e=j[g];g++}}return c.slice(0,b+1)+ l+d+a}var
a=j.numberForma t,e=Math.abs(th is);if(!d)d="D" ;var
b=-1;if(d.length>1 )b=parseInt(d.s lice(1),10);var c;switch(d.char At(0))
{case "d":case "D":c="n";if(b! ==-1){var g=""+e,k=b-
g.length;if(k>0 )for(var m=0;m<k;m++)g=" 0"+g;e=g}if(thi s<0)e=-
e;break;case "c":case
"C":if(this<0)c =n[a.CurrencyNegat ivePattern];else
c=o[a.CurrencyPosit ivePattern];if(b===-1)b=a.CurrencyD ecimalDigits;e= i(Math.abs(this ),b,a.CurrencyG roupSizes,a.Cur rencyGroupSepar ator,a.Currency DecimalSeparato r);break;case
"n":case "N":if(this<0)c =r[a.NumberNegativ ePattern];else
c="n";if(b===-1)b=a.NumberDec imalDigits;e=i( Math.abs(this), b,a.NumberGroup Sizes,a.NumberG roupSeparator,a .NumberDecimalS eparator);break ;case
"p":case "P":if(this<0)c =p[a.PercentNegati vePattern];else
c=q[a.PercentPositi vePattern];if(b===-1)b=a.PercentDe cimalDigits;e=i (Math.abs(this) ,b,a.PercentGro upSizes,a.Perce ntGroupSeparato r,a.PercentDeci malSeparator);b reak;default:th row
Error.format(Sy s.Res.formatBad FormatSpecifier )}var l=/n|\$|-|%/
g,f="";for(;tru e;){var s=l.lastIndex,h =l.exec(c);f+=c .slice(s,h?
h.index:c.lengt h);if(!h)break; switch(h[0]){case "n":f+=e;break; case
"$":f+=a.Curren cySymbol;break; case "-":f+=a.Negative Sign;break;case
"%":f+=a.Percen tSymbol}}return
f};RegExp.__typ eName="RegExp"; RegExp.__class= true;Array.__ty peName="Array"; Array.__class=t rue;Array.add=A rray.enqueue=fu nction(a,b)
{a[a.length]=b};Array.addRa nge=function(a, b)
{a.push.apply(a ,b)};Array.clea r=function(a)
{a.length=0};Ar ray.clone=funct ion(a){if(a.len gth===1)return
[a[0]];else return Array.apply(nul l,a)};Array.con tains=function( a,b)
{return Array.indexOf(a ,b)>=0};Array.d equeue=function (a){return
a.shift()};Arra y.forEach=funct ion(b,e,d){for( var a=0,f=b.length; a<f;a+
+){var c=b[a];if(typeof c!
=="undefined")e .call(d,c,a,b)} };Array.indexOf =function(d,e,a )
{if(typeof e==="undefined" )return -1;var c=d.length;if(c !==0)
{a=a-0;if(isNaN(a))a =0;else{if(isFi nite(a))a=a-a
%1;if(a<0)a=Mat h.max(0,c+a)}fo r(var b=a;b<c;b++)if( typeof d[b]!
=="undefined"&& d[b]===e)return b}return
-1};Array.insert =function(a,b,c ){a.splice(b,
0,c)};Array.par se=function(val ue){if(!value)r eturn [];return
eval(value)};Ar ray.remove=func tion(b,c){var
a=Array.indexOf (b,c);if(a>=0)b .splice(a,1);re turn
a>=0};Array.rem oveAt=function( a,b){a.splice(b ,1)};if(!
window)this.win dow=this;window .Type=Function; Type.prototype. callBaseMethod= function(a,d,b)
{var c=this.getBaseM ethod(a,d);if(! b)return c.apply(a);else return
c.apply(a,b)};T ype.prototype.g etBaseMethod=fu nction(d,c){var
b=this.getBaseT ype();if(b){var a=b.prototype[c];return a instanceof
Function?a:null }return null};Type.prot otype.getBaseTy pe=function()
{return typeof this.__baseType ==="undefined" ?
null:this.__bas eType};Type.pro totype.getInter faces=function( ){var
a=[],b=this;while(b ){var c=b.__interface s;if(c)for(var
d=0,f=c.length; d<f;d++){var e=c[d];if(!
Array.contains( a,e))a[a.length]=e}b=b.__baseTy pe}return
a};Type.prototy pe.getName=func tion(){return typeof
this.__typeName ==="undefined"? "":this.__typeN ame};Type.proto type.implements Interface=funct ion(d)
{this.resolveIn heritance();var
c=d.getName(),a =this.__interfa ceCache;if(a){v ar e=a[c];if(typeof e!
=="undefined")r eturn e}else a=this.__interf aceCache={};var
b=this;while(b) {var f=b.__interface s;if(f)if(Array .indexOf(f,d)!
==-1)return a[c]=true;b=b.__bas eType}return
a[c]=false};Type.pr ototype.inherit sFrom=function( b)
{this.resolveIn heritance();var a=this.__baseTy pe;while(a)
{if(a===b)retur n true;a=a.__base Type}return
false};Type.pro totype.initiali zeBase=function (a,b)
{this.resolveIn heritance();if( this.__baseType )if(!
b)this.__baseTy pe.apply(a);els e this.__baseType .apply(a,b);ret urn
a};Type.prototy pe.isImplemente dBy=function(a) {if(typeof
a==="undefined" ||a===null)retu rn false;var
b=Object.getTyp e(a);return !!
(b.implementsIn terface&&b.impl ementsInterface (this))};Type.p rototype.isInst anceOfType=func tion(b)
{if(typeof b==="undefined" ||b===null)retu rn false;if(b instanceof
this)return true;var a=Object.getTyp e(b);return !!(a===this)||
a.inheritsFrom& &a.inheritsFrom (this)||
a.implementsInt erface&&a.imple mentsInterface( this)};Type.pro totype.register Class=function( c,b,d)
{this.prototype .constructor=th is;this.__typeN ame=c;this.__cl ass=true;if(b)
{this.__baseTyp e=b;this.__base PrototypePendin g=true}Sys.__up perCaseTypes[c.toUpperCase()]=this;if(d)
{this.__interfa ces=[];for(var a=2,f=arguments .length;a<f;a++ ){var
e=arguments[a];this.__interfa ces.push(e)}}re turn
this};Type.prot otype.registerI nterface=functi on(a)
{Sys.__upperCas eTypes[a.toUpperCase()]=this;this.prot otype.construct or=this;this.__ typeName=a;this .__interface=tr ue;return
this};Type.prot otype.resolveIn heritance=funct ion()
{if(this.__base PrototypePendin g){var
b=this.__baseTy pe;b.resolveInh eritance();for( var a in b.prototype){va r
c=b.prototype[a];if(!this.proto type[a])this.prototype[a]=c}delete
this.__baseProt otypePending}}; Type.getRootNam espaces=functio n(){return
Array.clone(Sys .__rootNamespac es)};Type.isCla ss=function(a){ if(typeof
a==="undefined" ||a===null)retu rn false;return !!
a.__class};Type .isInterface=fu nction(a){if(ty peof a==="undefined" ||
a===null)return false;return !!
a.__interface}; Type.isNamespac e=function(a){i f(typeof a==="undefined" ||
a===null)return false;return !!
a.__namespace}; Type.parse=func tion(typeName,n s){var fn;if(ns)
{fn=Sys.__upper CaseTypes[ns.getName().to UpperCase()
+"."+typeName.t oUpperCase()];return fn||null}if(!ty peName)return
null;if(!
Type.__htClasse s)Type.__htClas ses={};fn=Type. __htClasses[typeName];if(!
fn){fn=eval(typ eName);Type.__h tClasses[typeName]=fn}return
fn};Type.regist erNamespace=fun ction(f){var
d=window,c=f.sp lit(".");for(va r b=0;b<c.length; b++){var
e=c[b],a=d[e];if(!a){a=d[e]={__namespace:t rue,__typeName: c.slice(0,b
+1).join(".")}; if(b===0)Sys.__ rootNamespaces[Sys.__rootNames paces.length]=a;a.getName=fu nction()
{return
this.__typeName }}d=a}};window. Sys={__namespac e:true,__typeNa me:"Sys",getNam e:function()
{return "Sys"},__upperC aseTypes:
{}};Sys.__rootN amespaces=[Sys];Sys.IDisposabl e=function()
{};Sys.IDisposa ble.prototype={ };Sys.IDisposab le.registerInte rface("Sys.IDis posable");Sys.S tringBuilder=fu nction(a)
{this._parts=ty peof a!=="undefined" &&a!==null&&a!= =""?[a.toString()]:
[];this._value={} ;this._len=0};S ys.StringBuilde r.prototype={ap pend:function(a )
{this._parts[this._parts.len gth]=a},appendLine: function(a)
{this._parts[this._parts.len gth]=typeof a==="undefined" ||a===null||
a===""?"\r\n":a +"\r\n"},clear: function()
{this._parts=[];this._value={} ;this._len=0},i sEmpty:function ()
{if(this._parts .length===0)ret urn true;return
this.toString() ===""},toString :function(a){a= a||"";var
b=this._parts;i f(this._len!==b .length)
{this._value={} ;this._len=b.le ngth}var d=this._value;i f(typeof
d[a]==="undefined") {if(a!=="")for( var c=0;c<b.length; )if(typeof
b[c]==="undefined"| |b[c]===""||b[c]===null)b.splic e(c,1);else c+
+;d[a]=this._parts.jo in(a)}return
d[a]}};Sys.StringBu ilder.registerC lass("Sys.Strin gBuilder");if(!
window.XMLHttpR equest)window.X MLHttpRequest=f unction(){var
b=["Mxsml2.XMLHTTP .3.0","Msxml2.X MLHTTP"];for(var a=0,c=b.length; a<c;a+
+)try{return new ActiveXObject(b[a])}catch(d){}ret urn
null};Sys.Brows er={};Sys.Brows er.InternetExpl orer={};Sys.Bro wser.Firefox={} ;Sys.Browser.Sa fari={};Sys.Bro wser.Opera={};S ys.Browser.agen t=null;Sys.Brow ser.hasDebugger Statement=false ;Sys.Browser.na me=navigator.ap pName;Sys.Brows er.version=pars eFloat(navigato r.appVersion);i f(navigator.use rAgent.indexOf( "
MSIE ")>-1)
{Sys.Browser.ag ent=Sys.Browser .InternetExplor er;Sys.Browser. version=parseFl oat(navigator.u serAgent.match(/
MSIE (\d+\.\d+)/)[1]);Sys.Browser.h asDebuggerState ment=true}else
if(navigator.us erAgent.indexOf (" Firefox/")>-1)
{Sys.Browser.ag ent=Sys.Browser .Firefox;Sys.Br owser.version=p arseFloat(navig ator.userAgent. match(/
Firefox\/(\d+\.\d+)/)
[1]);Sys.Browser.n ame="Firefox";S ys.Browser.hasD ebuggerStatemen t=true}else
if(navigator.us erAgent.indexOf (" Safari/")>-1)
{Sys.Browser.ag ent=Sys.Browser .Safari;Sys.Bro wser.version=pa rseFloat(naviga tor.userAgent.m atch(/
Safari\/(\d+(\.\d+)?)/)[1]);Sys.Browser.n ame="Safari"}el se
if(navigator.us erAgent.indexOf ("Opera/")>-1)Sys.Browser.a gent=Sys.Browse r.Opera;Type.re gisterNamespace ("Sys.UI");Sys. _Debug=function ()
{};Sys._Debug.p rototype={_appe ndConsole:funct ion(a){if(typeo f Debug!
=="undefined"&& Debug.writeln)D ebug.writeln(a) ;if(window.cons ole&&window.con sole.log)window .console.log(a) ;if(window.oper a)window.opera. postError(a);if (window.debugSe rvice)window.de bugService.trac e(a)},_appendTr ace:function(b)
{var
a=document.getE lementById("Tra ceConsole");if( a&&a.tagName.to UpperCase()===" TEXTAREA")a.val ue
+=b+"\n"},asser t:function(c,a, b){if(!c){a=b&& this.assert.cal ler?
String.format(S ys.Res.assertFa iledCaller,a,th is.assert.calle r):String.forma t(Sys.Res.asser tFailed,a);if(c onfirm(String.f ormat(Sys.Res.b reakIntoDebugge r,a)))this.fail (a)}},clearTrac e:function()
{var
a=document.getE lementById("Tra ceConsole");if( a&&a.tagName.to UpperCase()===" TEXTAREA")a.val ue=""},fail:fun ction(message)
{this._appendCo nsole(message); if(Sys.Browser. hasDebuggerStat ement)eval("deb ugger")},trace: function(a)
{this._appendCo nsole(a);this._ appendTrace(a)} ,traceDump:func tion(a,b)
{var c=this._traceDu mp(a,b,true)},_ traceDump:funct ion(a,c,f,b,d){ c=c?
c:"traceDump";b =b?b:"";if(a=== null){this.trac e(b+c+":
null");return}s witch(typeof a){case "undefined":thi s.trace(b+c+":
Undefined");bre ak;case "number":ca se "string":ca se
"boolean":this. trace(b+c+":
"+a);break;defa ult:if(Date.isI nstanceOfType(a )||
RegExp.isInstan ceOfType(a)){th is.trace(b+c+":
"+a.toString()) ;break}if(!d)d=[];else if(Array.contai ns(d,a))
{this.trace(b+c +": ...");return}Ar ray.add(d,a);if (a==window||
a===document||w indow.HTMLEleme nt&&a instanceof HTMLElement||ty peof
a.nodeName==="s tring"){var k=a.tagName?a.t agName:"DomElem ent";if(a.id)k
+=" - "+a.id;this.tra ce(b+c+" {"+k+"}")}else{ var
i=Object.getTyp eName(a);this.t race(b+c+(typeo f i==="string"?" {"+i
+"}":""));if(b= ==""||f){b+=" ";var
e,j,l,g,h;if(Ar ray.isInstanceO fType(a)){j=a.l ength;for(e=0;e <j;e+
+)this._traceDu mp(a[e],"["+e+"]",f,b,d)}el se for(g in a){h=a[g];if(!
Function.isInst anceOfType(h))t his._traceDump( h,g,f,b,d)}}}Ar ray.remove(d,a) }}};Sys._Debug. registerClass(" Sys._Debug");Sy s.Debug=new
Sys._Debug;Sys. Debug.isDebug=f alse;function Sys$Enum$parse( c,e){var
a,b,i;if(e){a=t his.__lowerCase Values;if(!a)
{this.__lowerCa seValues=a={};v ar g=this.prototyp e;for(var f in
g)a[f.toLowerCase()]=g[f]}}else a=this.prototyp e;if(!this.__fl ags){i=e?
c.toLowerCase() :c;b=a[i.trim()];if(typeof b!=="number")th row
Error.argument( "value",String. format(Sys.Res. enumInvalidValu e,c,this.__type Name));return
b}else{var h=(e?c.toLowerC ase():c).split( ","),j=0;for(va r
d=h.length-1;d>=0;d--){var k=h[d].trim();b=a[k];if(typeof b!
=="number")thro w
Error.argument( "value",String. format(Sys.Res. enumInvalidValu e,c.split(",")
[d].trim(),this.__ typeName));j|=b }return j}}function Sys$Enum
$toString(c){if (typeof c==="undefined" ||c===null)retu rn
this.__string;v ar d=this.prototyp e,a;if(!this.__ flags||c===0){f or(a in
d)if(d[a]===c)return a}else{var b=this.__sorted Values;if(!b)
{b=[];for(a in d)b[b.length]={key:a,value:d[a]};b.sort(functi on(a,b)
{return a.value-b.value});this. __sortedValues= b}var
e=[],g=c;for(a=b.le ngth-1;a>=0;a--){var
h=b[a],f=h.value;if(f ===0)continue;i f((f&c)===f){e[e.length]=h.key;g-
=f;if(g===0)bre ak}}if(e.length &&g===0)retu rn e.reverse().joi n(",
")}return ""}Type.prototy pe.registerEnum =function(b,c)
{Sys.__upperCas eTypes[b.toUpperCase()]=this;for(var a in
this.prototype) this[a]=this.prototype[a];this.__typeNam e=b;this.parse= Sys
$Enum$parse;thi s.__string=this .toString();thi s.toString=Sys$ Enum
$toString;this. __flags=c;this. __enum=true};Ty pe.isEnum=funct ion(a)
{if(typeof a==="undefined" ||a===null)retu rn false;return !!
a.__enum};Type. isFlags=functio n(a){if(typeof a==="undefined" ||
a===null)return false;return !!
a.__flags};Sys. EventHandlerLis t=function()
{this._list={}} ;Sys.EventHandl erList.prototyp e={addHandler:f unction(b,a)
{Array.add(this ._getEvent(b,tr ue),a)},removeH andler:function (c,b){var
a=this._getEven t(c);if(!
a)return;Array. remove(a,b)},ge tHandler:functi on(b){var
a=this._getEven t(b);if(!a||a.l ength===0)retur n
null;a=Array.cl one(a);return function(c,d){f or(var b=0,e=a.length; b<e;b
++)a[b](c,d)}},_getEve nt:function(a,b ){if(!this._lis t[a]){if(!b)return
null;this._list[a]=[]}return
this._list[a]}};Sys.EventHan dlerList.regist erClass("Sys.Ev entHandlerList" );Sys.EventArgs =function()
{};Sys.EventArg s.registerClass ("Sys.EventArgs ");Sys.EventArg s.Empty=new
Sys.EventArgs;S ys.CancelEventA rgs=function()
{Sys.CancelEven tArgs.initializ eBase(this);thi s._cancel=false };Sys.CancelEve ntArgs.prototyp e={get_cancel:f unction()
{return this._cancel},s et_cancel:funct ion(a)
{this._cancel=a }};Sys.CancelEv entArgs.registe rClass("Sys.Can celEventArgs",S ys.EventArgs);S ys.INotifyPrope rtyChange=funct ion()
{};Sys.INotifyP ropertyChange.p rototype={};Sys .INotifyPropert yChange.registe rInterface("Sys .INotifyPropert yChange");Sys.P ropertyChangedE ventArgs=functi on(a)
{Sys.PropertyCh angedEventArgs. initializeBase( this);this._pro pertyName=a};Sy s.PropertyChang edEventArgs.pro totype={get_pro pertyName:funct ion()
{return
this._propertyN ame}};Sys.Prope rtyChangedEvent Args.registerCl ass("Sys.Proper tyChangedEventA rgs",Sys.EventA rgs);Sys.INotif yDisposing=func tion()
{};Sys.INotifyD isposing.protot ype={};Sys.INot ifyDisposing.re gisterInterface ("Sys.INotifyDi sposing");Sys.C omponent=functi on()
{if(Sys.Applica tion)Sys.Applic ation.registerD isposableObject (this)};Sys.Com ponent.prototyp e={_id:null,_in itialized:false ,_updating:fals e,get_events:fu nction()
{if(!this._even ts)this._events =new Sys.EventHandle rList;return
this._events},g et_id:function( ){return this._id},set_i d:function(a)
{this._id=a},ge t_isInitialized :function(){ret urn
this._initializ ed},get_isUpdat ing:function(){ return
this._updating} ,add_disposing: function(a)
{this.get_event s().addHandler( "disposing",a)} ,remove_disposi ng:function(a)
{this.get_event s().removeHandl er("disposing", a)},add_propert yChanged:functi on(a)
{this.get_event s().addHandler( "propertyChange d",a)},remove_p ropertyChanged: function(a)
{this.get_event s().removeHandl er("propertyCha nged",a)},begin Update:function ()
{this._updating =true},dispose: function(){if(t his._events){va r
a=this._events. getHandler("dis posing");if(a)a (this,Sys.Event Args.Empty)}del ete
this._events;Sy s.Application.u nregisterDispos ableObject(this );Sys.Applicati on.removeCompon ent(this)},endU pdate:function( )
{this._updating =false;if(!
this._initializ ed)this.initial ize();this.upda ted()},initiali ze:function()
{this._initiali zed=true},raise PropertyChanged :function(b){if (!
this._events)re turn;var
a=this._events. getHandler("pro pertyChanged"); if(a)a(this,new
Sys.PropertyCha ngedEventArgs(b ))},updated:fun ction()
{}};Sys.Compone nt.registerClas s("Sys.Componen t",null,Sys.IDi sposable,Sys.IN otifyPropertyCh ange,Sys.INotif yDisposing);fun ction
Sys$Component$_ setProperties(a ,i){var
d,j=Object.getT ype(a),e=j===Ob ject||
j===Sys.UI.DomE lement,h=Sys.Co mponent.isInsta nceOfType(a)&&!
a.get_isUpdatin g();if(h)a.begi nUpdate();for(v ar c in i){var b=i[c],f=e?
null:a["get_"+c];if(e||typeof f!=="function") {var k=a[c];if(!b||typeof
b!=="object"||e &&!k)a[c]=b;else Sys$Component
$_setProperties (k,b)}else{var l=a["set_"+c];if(typeof
l==="function") l.apply(a,[b]);else if(b instanceof Array)
{d=f.apply(a);f or(var g=0,m=d.length, n=b.length;g<n; g++,m+
+)d[m]=b[g]}else if(typeof b==="object"&&O bject.getType(b )===Object)
{d=f.apply(a);S ys$Component
$_setProperties (d,b)}}}if(h)a. endUpdate()}fun ction Sys$Component
$_setReferences (c,b){for(var a in b){var e=c["set_"+a],d=
$find(b[a]);e.apply(c,[d])}}var
$create=Sys.Com ponent.create=f unction(h,f,d,c ,g){var a=g?new h(g):new
h,b=Sys.Applica tion,i=b.get_is CreatingCompone nts();a.beginUp date();if(f)Sys
$Component$_set Properties(a,f) ;if(d)for(var e in d)a["add_"+e]
(d[e]);if(a.get_id() )b.addComponent (a);if(i)
{b._createdComp onents[b._createdCompo nents.length]=a;if(c)b._addC omponentToSecon dPass(a,c);else
a.endUpdate()}e lse{if(c)Sys$Co mponent
$_setReferences (a,c);a.endUpda te()}return
a};Sys.UI.Mouse Button=function (){throw
Error.notImplem ented()};Sys.UI .MouseButton.pr ototype={leftBu tton:
0,middleButton: 1,rightButton:
2};Sys.UI.Mouse Button.register Enum("Sys.UI.Mo useButton");Sys .UI.Key=functio n()
{throw Error.notImplem ented()};Sys.UI .Key.prototype= {backspace:8,ta b:
9,enter:13,esc: 27,space:32,pag eUp:33,pageDown :34,end:35,home :36,left:
37,up:38,right: 39,down:40,del:
127};Sys.UI.Key .registerEnum(" Sys.UI.Key");Sy s.UI.Point=func tion(a,b)
{this.x=a;this. y=b};Sys.UI.Poi nt.registerClas s("Sys.UI.Point ");Sys.UI.Bound s=function(c,d, b,a)
{this.x=c;this. y=d;this.height =a;this.width=b };Sys.UI.Bounds .registerClass( "Sys.UI.Bounds" );Sys.UI.DomEve nt=function(d)
{var a=d;this.rawEve nt=a;this.altKe y=a.altKey;if(t ypeof a.button!
=="undefined")t his.button=type of a.which!=="unde fined"?
a.button:a.butt on===4?Sys.UI.M ouseButton.midd leButton:a.butt on===2?
Sys.UI.MouseBut ton.rightButton :Sys.UI.MouseBu tton.leftButton ;if(a.type==="k eypress")this.c harCode=a.charC ode||
a.keyCode;else if(a.keyCode&&a .keyCode===46)t his.keyCode=127 ;else
this.keyCode=a. keyCode;this.cl ientX=a.clientX ;this.clientY=a .clientY;this.c trlKey=a.ctrlKe y;this.target=a .target?
a.target:a.srcE lement;if(typeo f a.offsetX!=="un defined"&&typeo f
a.offsetY!=="un defined")
{this.offsetX=a .offsetX;this.o ffsetY=a.offset Y}else
if(this.target& &this.target.no deType!==3&&typ eof a.clientX==="nu mber")
{var
b=Sys.UI.DomEle ment.getLocatio n(this.target), c=Sys.UI.DomEle ment._getWindow (this.target);t his.offsetX=(c. pageXOffset||
0)+a.clientX-b.x;this.offset Y=(c.pageYOffse t||0)+a.clientY-
b.y}this.screen X=a.screenX;thi s.screenY=a.scr eenY;this.shift Key=a.shiftKey; this.type=a.typ e};Sys.UI.DomEv ent.prototype={ preventDefault: function()
{if(this.rawEve nt.preventDefau lt)this.rawEven t.preventDefaul t();else
if(window.event )this.rawEvent. returnValue=fal se},stopPropaga tion:function()
{if(this.rawEve nt.stopPropagat ion)this.rawEve nt.stopPropagat ion();else
if(window.event )this.rawEvent. cancelBubble=tr ue}};Sys.UI.Dom Event.registerC lass("Sys.UI.Do mEvent");var
$addHandler=Sys .UI.DomEvent.ad dHandler=functi on(a,d,e){if(!
a._events)a._ev ents={};var c=a._events[d];if(!c)a._event s[d]=c=[];var
b;if(a.addEvent Listener){b=fun ction(b){return e.call(a,new
Sys.UI.DomEvent (b))};a.addEven tListener(d,b,f alse)}else
if(a.attachEven t){b=function() {var
b={};try{b=Sys. UI.DomElement._ getWindow(a).ev ent}catch(c){}r eturn
e.call(a,new
Sys.UI.DomEvent (b))};a.attachE vent("on"+d,b)} c[c.length]={handler:e,bro wserHandler:b}} ,
$addHandlers=Sy s.UI.DomEvent.a ddHandlers=func tion(e,d,c){for (var b in
d){var a=d[b];if(c)a=Functio n.createDelegat e(c,a);$addHand ler(e,b,a)}},
$clearHandlers= Sys.UI.DomEvent .clearHandlers= function(a){if( a._events)
{var e=a._events;for (var b in e){var d=e[b];for(var
c=d.length-1;c>=0;c--)
$removeHandler( a,b,d[c].handler)}a._ev ents=null}},
$removeHandler= Sys.UI.DomEvent .removeHandler= function(a,e,f) {var
d=null,c=a._eve nts[e];for(var b=0,g=c.length; b<g;b+
+)if(c[b].handler===f)
{d=c[b].browserHandler ;break}if(a.rem oveEventListene r)a.removeEvent Listener(e,d,fa lse);else
if(a.detachEven t)a.detachEvent ("on"+e,d);c.sp lice(b,
1)};Sys.UI.DomE lement=function ()
{};Sys.UI.DomEl ement.registerC lass("Sys.UI.Do mElement");Sys. UI.DomElement.a ddCssClass=func tion(a,b)
{if(!
Sys.UI.DomEleme nt.containsCssC lass(a,b))if(a. className==="") a.className=b;e lse
a.className+=" "+b};Sys.UI.Dom Element.contain sCssClass=funct ion(b,a)
{return Array.contains( b.className.spl it("
"),a)};Sys.UI.D omElement.getBo unds=function(a ){var
b=Sys.UI.DomEle ment.getLocatio n(a);return new
Sys.UI.Bounds(b .x,b.y,a.offset Width||0,a.offs etHeight||0)};v ar
$get=Sys.UI.Dom Element.getElem entById=functio n(f,e){if(!e)re turn
document.getEle mentById(f);if( e.getElementByI d)return
e.getElementByI d(f);var c=[],d=e.childNodes ;for(var b=0;b<d.length; b++)
{var a=d[b];if(a.nodeType= =1)c[c.length]=a}while(c.leng th)
{a=c.shift();if (a.id==f)return a;d=a.childNode s;for(b=0;b<d.l ength;b++)
{a=d[b];if(a.nodeType= =1)c[c.length]=a}}return
null};switch(Sy s.Browser.agent ){case
Sys.Browser.Int ernetExplorer:S ys.UI.DomElemen t.getLocation=f unction(a)
{if(a.self||a.n odeType===9)ret urn new Sys.UI.Point(0, 0);var
b=a.getBounding ClientRect();if (!b)return new Sys.UI.Point(0, 0);var
d=a.ownerDocume nt.documentElem ent,e=b.left-2+d.scrollLeft, f=b.top-2+d.scrollTop;t ry{var
c=a.ownerDocume nt.parentWindow .frameElement|| null;if(c){var
g=c.frameBorder ==="0"||c.frame Border==="no"?2 :0;e+=g;f+=g}}c atch(h)
{}return new Sys.UI.Point(e, f)};break;case
Sys.Browser.Saf ari:Sys.UI.DomE lement.getLocat ion=function(c)
{if(c.window&&c .window===c||c. nodeType===9)re turn new
Sys.UI.Point(0, 0);var f=0,g=0,j=null, e=null,b;for(va r a=c;a;j=a,
(e=b,a=a.offset Parent)){b=Sys. UI.DomElement._ getCurrentStyle (a);var
d=a.tagName;if( (a.offsetLeft|| a.offsetTop)&&( d!=="BODY"||(!e ||
e.position!=="a bsolute"))){f+= a.offsetLeft;g
+=a.offsetTop}} b=Sys.UI.DomEle ment._getCurren tStyle(c);var h=b?
b.position:null ;if(!h||h!=="ab solute")for(var
a=c.parentNode; a;a=a.parentNod e){d=a.tagName; if(d!=="BODY"&& d!
=="HTML"&&(a.sc rollLeft||a.scr ollTop)){f-=a.scrollLeft|| 0;g-
=a.scrollTop||0 }b=Sys.UI.DomEl ement._getCurre ntStyle(a);var i=b?
b.position:null ;if(i&&i==="abs olute")break}re turn new
Sys.UI.Point(f, g)};break;case
Sys.Browser.Ope ra:Sys.UI.DomEl ement.getLocati on=function(b)
{if(b.window&&b .window===b||b. nodeType===9)re turn new
Sys.UI.Point(0, 0);var d=0,e=0,i=null; for(var
a=b;a;i=a,a=a.o ffsetParent){va r f=a.tagName;d+= a.offsetLeft||0 ;e
+=a.offsetTop|| 0}var g=b.style.posit ion,c=g&&g!=="s tatic";for(var
a=b.parentNode; a;a=a.parentNod e){f=a.tagName; if(f!=="BODY"&& f!
=="HTML"&&(a.sc rollLeft||
a.scrollTop)&&( c&&(a.style.ove rflow==="scroll "||
a.style.overflo w==="auto"))){d-=a.scrollLeft|| 0;e-=a.scrollTop||0 }var
h=a&&a.style?a. style.position: null;c=c||h&&h! =="static"}retu rn new
Sys.UI.Point(d, e)};break;defau lt:Sys.UI.DomEl ement.getLocati on=function(d)
{if(d.window&&d .window===d||d. nodeType===9)re turn new
Sys.UI.Point(0, 0);var e=0,f=0,i=null, g=null,b=null;f or(var a=d;a;i=a,
(g=b,a=a.offset Parent)){var
c=a.tagName;b=S ys.UI.DomElemen t._getCurrentSt yle(a);if((a.of fsetLeft||
a.offsetTop)&&! (c==="BODY"&&(! g||g.position!= ="absolute"))){ e
+=a.offsetLeft; f+=a.offsetTop} if(i!==null&&b) {if(c!=="TABLE" &&c!
=="TD"&&c!=="HT ML"){e+=parseIn t(b.borderLeftW idth)||0;f
+=parseInt(b.bo rderTopWidth)||
0}if(c==="TABLE "&&(b.position= =="relative"||b .position==="ab solute")){e
+=parseInt(b.ma rginLeft)||0;f+ =parseInt(b.mar ginTop)||
0}}}b=Sys.UI.Do mElement._getCu rrentStyle(d);v ar h=b?
b.position:null ;if(!h||h!=="ab solute")for(var
a=d.parentNode; a;a=a.parentNod e){c=a.tagName; if(c!=="BODY"&& c!
=="HTML"&&(a.sc rollLeft||a.scr ollTop)){e-=a.scrollLeft|| 0;f-
=a.scrollTop||0 ;b=Sys.UI.DomEl ement._getCurre ntStyle(a);if(b ){e
+=parseInt(b.bo rderLeftWidth)| |0;f+=parseInt( b.borderTopWidt h)||
0}}}return new
Sys.UI.Point(e, f)}}Sys.UI.DomE lement.removeCs sClass=function (d,c){var
a=" "+d.classNa me+" ",b=a.index Of(" "+c+"
");if(b>=0)d.cl assName=(a.subs tr(0,b)+" "+a.substring(b +c.length
+1,a.length)).t rim()};Sys.UI.D omElement.setLo cation=function (b,c,d)
{var a=b.style;a.pos ition="absolute ";a.left=c+"px" ;a.top=d
+"px"};Sys.UI.D omElement.toggl eCssClass=funct ion(b,a)
{if(Sys.UI.DomE lement.contains CssClass(b,a))S ys.UI.DomElemen t.removeCssClas s(b,a);else
Sys.UI.DomEleme nt.addCssClass( b,a)};Sys.UI.Do mElement.getVis ibilityMode=fun ction(a)
{return a._visibilityMo de===Sys.UI.Vis ibilityMode.hid e?
Sys.UI.Visibili tyMode.hide:Sys .UI.VisibilityM ode.collapse};S ys.UI.DomElemen t.setVisibility Mode=function(a ,b)
{Sys.UI.DomElem ent._ensureOldD isplayMode(a);i f(a._visibility Mode!==b)
{a._visibilityM ode=b;if(Sys.UI .DomElement.get Visible(a)===fa lse)if(a._visib ilityMode===Sys .UI.VisibilityM ode.hide)a.styl e.display=a._ol dDisplayMode;el se
a.style.display ="none";a._visi bilityMode=b}}; Sys.UI.DomEleme nt.getVisible=f unction(b)
{var a=b.currentStyl e||Sys.UI.DomEl ement._getCurre ntStyle(b);if(!
a)return true;return a.visibility!== "hidden"&&a.dis play!
=="none"};Sys.U I.DomElement.se tVisible=functi on(a,b){if(b!
==Sys.UI.DomEle ment.getVisible (a))
{Sys.UI.DomElem ent._ensureOldD isplayMode(a);a .style.visibili ty=b?"visible": "hidden";if (b||
a._visibilityMo de===Sys.UI.Vis ibilityMode.hid e)a.style.displ ay=a._oldDispla yMode;else
a.style.display ="none"}};Sys.U I.DomElement._e nsureOldDisplay Mode=function(a )
{if(!a._oldDisp layMode){var b=a.currentStyl e||
Sys.UI.DomEleme nt._getCurrentS tyle(a);a._oldD isplayMode=b?
b.display:null; if(!a._oldDispl ayMode||
a._oldDisplayMo de==="none")swi tch(a.tagName.t oUpperCase()){c ase
"DIV":case "P":case "ADDRESS":c ase "BLOCKQUOTE":ca se "BODY":case
"COL":case "COLGROUP": case "DD":case "DL":case "DT":case
"FIELDSET": case "FORM":case "H1":case "H2":case "H3":case "H4":case
"H5":case "H6":case "HR":case "IFRAME":ca se "LEGEND":ca se "OL":case
"PRE":case "TABLE":cas e "TD":case "TH":case "TR":case
"UL":a._oldDisp layMode="block" ;break;case "LI":a._oldDisp layMode="list-
item";break;def ault:a._oldDisp layMode="inline "}}};Sys.UI.Dom Element._getWin dow=function(a)
{var b=a.ownerDocume nt||a.document| |a;return b.defaultView||
b.parentWindow} ;Sys.UI.DomElem ent._getCurrent Style=function( a)
{if(a.nodeType= ==3)return null;var
c=Sys.UI.DomEle ment._getWindow (a);if(a.docume ntElement)a=a.d ocumentElement; var
b=c&&a!==c&&c.g etComputedStyle ?
c.getComputedSt yle(a,null):a.c urrentStyle||a. style;if(!
b&&Sys.Browser. agent===Sys.Bro wser.Safari&&a. style){var
g=a.style.displ ay,f=a.style.po sition;a.style. position="absol ute";a.style.di splay="block";v ar
e=c.getComputed Style(a,null);a .style.display= g;a.style.posit ion=f;b={};for( var
d in e)b[d]=e[d];b.display="non e"}return b};Sys.IContain er=function()
{};Sys.IContain er.prototype={} ;Sys.IContainer .registerInterf ace("Sys.IConta iner");Sys._Scr iptLoader=funct ion()
{this._scriptsT oLoad=null;this ._scriptLoadedD elegate=Functio n.createDelegat e(this,this._sc riptLoadedHandl er)};Sys._Scrip tLoader.prototy pe={dispose:fun ction()
{this._stopLoad ing();if(this._ events)delete
this._events;th is._scriptLoade dDelegate=null} ,loadScripts:fu nction(a,c,d,b)
{this._loading= true;this._allS criptsLoadedCal lback=c;this._s criptLoadFailed Callback=d;this ._scriptLoadTim eoutCallback=b; if(a>0)this._ti meoutCookie=win dow.setTimeout( Function.create Delegate(this,t his._scriptLoad TimeoutHandler) ,a*1000);this._ loadScriptsInte rnal()},notifyS criptLoaded:fun ction()
{if(!this._load ing)return;this ._currentTask._ notified+
+;if(Sys.Browse r.agent===Sys.B rowser.Safari)i f(this._current Task._notified= ==1)window.setT imeout(Function .createDelegate (this,function( )
{this._scriptLo adedHandler(thi s._currentTask. get_scriptEleme nt(),true)}),
0)},queueCustom ScriptTag:funct ion(a){if(!
this._scriptsTo Load)this._scri ptsToLoad=[];Array.add(this ._scriptsToLoad ,a)},queueScrip tBlock:function (a)
{if(!
this._scriptsTo Load)this._scri ptsToLoad=[];Array.add(this ._scriptsToLoad ,
{text:a})},queu eScriptReferenc e:function(a){i f(!
this._scriptsTo Load)this._scri ptsToLoad=[];Array.add(this ._scriptsToLoad ,
{src:a})},_crea teScriptElement :function(c){va r
a=document.crea teElement("SCRI PT");a.type="te xt/javascript";for (var b
in c)a[b]=c[b];return a},_loadScripts Internal:functi on()
{if(this._scrip tsToLoad&&this. _scriptsToLoad. length>0){var
b=Array.dequeue (this._scriptsT oLoad),a=this._ createScriptEle ment(b);if(a.te xt&&Sys.Browser .agent===Sys.Br owser.Safari)
{a.innerHTML=a. text;delete a.text}if(typeo f b.src==="string ")
{this._currentT ask=new
Sys._ScriptLoad erTask(a,this._ scriptLoadedDel egate);this._cu rrentTask.execu te()}else{docum ent.getElements ByTagName("HEAD ")
[0].appendChild(a) ;var d=this;window.s etTimeout(funct ion()
{Sys._ScriptLoa der._clearScrip t(a);d._loadScr iptsInternal()} ,
0)}}else{var
c=this._allScri ptsLoadedCallba ck;this._stopLo ading();if(c)c( this)}},_raiseE rror:function(a )
{var
c=this._scriptL oadFailedCallba ck,b=this._curr entTask.get_scr iptElement();th is._stopLoading ();if(c)c(this, b,a);else
throw
Sys._ScriptLoad er._errorScript LoadFailed(b.sr c,a)},_scriptLo adedHandler:fun ction(a,b)
{if(b&&this._cu rrentTask._noti fied)if(this._c urrentTask._not ified>1)this._r aiseError(true) ;else{Array.add (Sys._ScriptLoa der._getLoadedS cripts(),a.src) ;this._currentT ask.dispose();t his._currentTas k=null;this._lo adScriptsIntern al()}else
this._raiseErro r(false)},_scri ptLoadTimeoutHa ndler:function( ){var
a=this._scriptL oadTimeoutCallb ack;this._stopL oading();if(a)a (this)},_stopLo ading:function( )
{if(this._timeo utCookie)
{window.clearTi meout(this._tim eoutCookie);thi s._timeoutCooki e=null}if(this. _currentTask)
{this._currentT ask.dispose();t his._currentTas k=null}this._sc riptsToLoad=nul l;this._loading =null;this._all ScriptsLoadedCa llback=null;thi s._scriptLoadFa iledCallback=nu ll;this._script LoadTimeoutCall back=null}};Sys ._ScriptLoader. registerClass(" Sys._ScriptLoad er",null,Sys.ID isposable);Sys. _ScriptLoader.g etInstance=func tion()
{var a=Sys._ScriptLo ader._activeIns tance;if(!
a)a=Sys._Script Loader._activeI nstance=new Sys._ScriptLoad er;return
a};Sys._ScriptL oader.isScriptL oaded=function( b){var
a=document.crea teElement("scri pt");a.src=b;re turn
Array.contains( Sys._ScriptLoad er._getLoadedSc ripts(),a.src)} ;Sys._ScriptLoa der.readLoadedS cripts=function ()
{if(!Sys._Scrip tLoader._refere ncedScripts){va r
b=Sys._ScriptLo ader._reference dScripts=[],c=document.get ElementsByTagNa me("SCRIPT");fo r(i=c.length-1;i>=0;i--)
{var d=c[i],a=d.src;if(a.l ength)if(!
Array.contains( b,a))Array.add( b,a)}}};Sys._Sc riptLoader._cle arScript=functi on(a)
{if(!
Sys.Debug.isDeb ug)a.parentNode .removeChild(a) };Sys._ScriptLo ader._errorScri ptLoadFailed=fu nction(b,d)
{var a;if(d)a=Sys.Re s.scriptLoadMul tipleCallbacks; else
a=Sys.Res.scrip tLoadFailed;var e="Sys.ScriptLo adFailedExcepti on:
"+String.format (a,b),c=Error.c reate(e,
{name:"Sys.Scri ptLoadFailedExc eption","script Url":b});c.popS tackFrame();ret urn
c};Sys._ScriptL oader._getLoade dScripts=functi on(){if(!
Sys._ScriptLoad er._referencedS cripts)
{Sys._ScriptLoa der._referenced Scripts=[];Sys._ScriptLoa der.readLoadedS cripts()}return
Sys._ScriptLoad er._referencedS cripts};Sys._Sc riptLoaderTask= function(b,a)
{this._scriptEl ement=b;this._c ompletedCallbac k=a;this._notif ied=0};Sys._Scr iptLoaderTask.p rototype={get_s criptElement:fu nction()
{return this._scriptEle ment},dispose:f unction()
{if(this._dispo sed)return;this ._disposed=true ;this._removeSc riptElementHand lers();Sys._Scr iptLoader._clea rScript(this._s criptElement);t his._scriptElem ent=null},execu te:function()
{this._addScrip tElementHandler s();document.ge tElementsByTagN ame("HEAD")
[0].appendChild(th is._scriptEleme nt)},_addScript ElementHandlers :function()
{this._scriptLo adDelegate=Func tion.createDele gate(this,this. _scriptLoadHand ler);if(Sys.Bro wser.agent!
==Sys.Browser.I nternetExplorer )
{this._scriptEl ement.readyStat e="loaded";
$addHandler(thi s._scriptElemen t,"load",this._ scriptLoadDeleg ate)}else
$addHandler(thi s._scriptElemen t,"readystatech ange",this._scr iptLoadDelegate );if(this._scri ptElement.addEv entListener)
{this._scriptEr rorDelegate=Fun ction.createDel egate(this,this ._scriptErrorHa ndler);this._sc riptElement.add EventListener(" error",this._sc riptErrorDelega te,false)}},_re moveScriptEleme ntHandlers:func tion()
{if(this._scrip tLoadDelegate){ var
a=this.get_scri ptElement();if( Sys.Browser.age nt!
==Sys.Browser.I nternetExplorer )
$removeHandler( a,"load",this._ scriptLoadDeleg ate);else
$removeHandler( a,"readystatech ange",this._scr iptLoadDelegate );if(this._scri ptErrorDelegate )
{this._scriptEl ement.removeEve ntListener("err or",this._scrip tErrorDelegate, false);this._sc riptErrorDelega te=null}this._s criptLoadDelega te=null}},_scri ptErrorHandler: function()
{if(this._dispo sed)return;this ._completedCall back(this.get_s criptElement(), false)},_script LoadHandler:fun ction()
{if(this._dispo sed)return;var
a=this.get_scri ptElement();if( a.readyState!== "loaded"&&a.rea dyState!
=="complete")re turn;var b=this;window.s etTimeout(funct ion()
{b._completedCa llback(a,true)} ,
0)}};Sys._Scrip tLoaderTask.reg isterClass("Sys ._ScriptLoaderT ask",null,Sys.I Disposable);Sys .ApplicationLoa dEventArgs=func tion(b,a)
{Sys.Applicatio nLoadEventArgs. initializeBase( this);this._com ponents=b;this. _isPartialLoad= a};Sys.Applicat ionLoadEventArg s.prototype={ge t_components:fu nction()
{return this._component s},get_isPartia lLoad:function( ){return
this._isPartial Load}};Sys.Appl icationLoadEven tArgs.registerC lass("Sys.Appli cationLoadEvent Args",Sys.Event Args);Sys._Appl ication=functio n()
{Sys._Applicati on.initializeBa se(this);this._ disposableObjec ts=[];this._componen ts={};this._cre atedComponents=[];this._secondPa ssComponents=[];this._unloadHa ndlerDelegate=F unction.createD elegate(this,th is._unloadHandl er);this._loadH andlerDelegate= Function.create Delegate(this,t his._loadHandle r);Sys.UI.DomEv ent.addHandler( window,"unload" ,this._unloadHa ndlerDelegate); Sys.UI.DomEvent .addHandler(win dow,"load",this ._loadHandlerDe legate)};Sys._A pplication.prot otype={_creatin gComponents:fal se,_disposing:f alse,get_isCrea tingComponents: function()
{return this._creatingC omponents},add_ load:function(a )
{this.get_event s().addHandler( "load",a)},remo ve_load:functio n(a)
{this.get_event s().removeHandl er("load",a)},a dd_init:functio n(a)
{if(this._initi alized)a(this,S ys.EventArgs.Em pty);else
this.get_events ().addHandler(" init",a)},remov e_init:function (a)
{this.get_event s().removeHandl er("init",a)},a dd_unload:funct ion(a)
{this.get_event s().addHandler( "unload",a)},re move_unload:fun ction(a)
{this.get_event s().removeHandl er("unload",a)} ,addComponent:f unction(a)
{this._componen ts[a.get_id()]=a},beginCreate Components:func tion()
{this._creating Components=true },dispose:funct ion(){if(!this. _disposing)
{this._disposin g=true;if(windo w.pageUnload)wi ndow.pageUnload (this,Sys.Event Args.Empty);var
c=this.get_even ts().getHandler ("unload");if(c )c(this,Sys.Eve ntArgs.Empty);v ar
b=Array.clone(t his._disposable Objects);for(va r a=0,e=b.length; a<e;a+
+)b[a].dispose();Arra y.clear(this._d isposableObject s);Sys.UI.DomEv ent.removeHandl er(window,"unlo ad",this._unloa dHandlerDelegat e);if(this._loa dHandlerDelegat e)
{Sys.UI.DomEven t.removeHandler (window,"load", this._loadHandl erDelegate);thi s._loadHandlerD elegate=null}va r
d=Sys._ScriptLo ader.getInstanc e();if(d)d.disp ose();Sys._Appl ication.callBas eMethod(this,"d ispose")}},endC reateComponents :function()
{var b=this._secondP assComponents;f or(var a=0,d=b.length; a<d;a++){var
c=b[a].component;Sys$ Component
$_setReferences (c,b[a].references);c. endUpdate()}thi s._secondPassCo mponents=[];this._creating Components=fals e},findComponen t:function(b,a)
{return a?Sys.IContaine r.isInstanceOfT ype(a)?a.findCo mponent(b):a[b]||
null:Sys.Applic ation._componen ts[b]||null},getComp onents:function ()
{var a=[],b=this._compon ents;for(var c in b)a[a.length]=b[c];return
a},initialize:f unction(){if(!t his._initialize d&&!this._initi alizing)
{this._initiali zing=true;windo w.setTimeout(Fu nction.createDe legate(this,thi s._doInitialize ),
0)}},notifyScri ptLoaded:functi on(){var
a=Sys._ScriptLo ader.getInstanc e();if(a)a.noti fyScriptLoaded( )},registerDisp osableObject:fu nction(a)
{if(!
this._disposing )this._disposab leObjects[this._disposabl eObjects.length]=a},raiseLoad:f unction()
{var b=this.get_even ts().getHandler ("load"),a=n ew
Sys.Application LoadEventArgs(A rray.clone(this ._createdCompon ents),!
this._initializ ing);if(b)b(thi s,a);if(window. pageLoad)window .pageLoad(this, a);this._create dComponents=[]},removeCompone nt:function(b)
{var a=b.get_id();if (a)delete
this._component s[a]},unregisterDis posableObject:f unction(a){if(!
this._disposing )Array.remove(t his._disposable Objects,a)},_ad dComponentToSec ondPass:functio n(b,a)
{this._secondPa ssComponents[this._secondPas sComponents.len gth]={component:b,r eferences:a}},_ doInitialize:fu nction()
{Sys._Applicati on.callBaseMeth od(this,"initia lize");var
a=this.get_even ts().getHandler ("init");if( a)
{this.beginCrea teComponents(); a(this,Sys.Even tArgs.Empty);th is.endCreateCom ponents()}this. raiseLoad();thi s._initializing =false},_loadHa ndler:function( )
{if(this._loadH andlerDelegate)
{Sys.UI.DomEven t.removeHandler (window,"load", this._loadHandl erDelegate);thi s._loadHandlerD elegate=null}th is.initialize() },_unloadHandle r:function()
{this.dispose() }};Sys._Applica tion.registerCl ass("Sys._Appli cation",Sys.Com ponent,Sys.ICon tainer);Sys.App lication=new
Sys._Applicatio n;var
$find=Sys.Appli cation.findComp onent;Type.regi sterNamespace(" Sys.Net");Sys.N et.WebRequestEx ecutor=function ()
{this._webReque st=null;this._r esultObject=nul l};Sys.Net.WebR equestExecutor. prototype={get_ webRequest:func tion()
{return this._webReques t},_set_webRequ est:function(a)
{this._webReque st=a},get_start ed:function(){t hrow
Error.notImplem ented()},get_re sponseAvailable :function(){thr ow
Error.notImplem ented()},get_ti medOut:function (){throw
Error.notImplem ented()},get_ab orted:function( ){throw
Error.notImplem ented()},get_re sponseData:func tion(){throw
Error.notImplem ented()},get_st atusCode:functi on(){throw
Error.notImplem ented()},get_st atusText:functi on(){throw
Error.notImplem ented()},get_xm l:function(){th row
Error.notImplem ented()},get_ob ject:function() {if(!
this._resultObj ect)this._resul tObject=Sys.Ser ialization.Java ScriptSerialize r.deserialize(t his.get_respons eData());return
this._resultObj ect},executeReq uest:function() {throw
Error.notImplem ented()},abort: function(){thro w
Error.notImplem ented()},getRes ponseHeader:fun ction(){throw
Error.notImplem ented()},getAll ResponseHeaders :function(){thr ow
Error.notImplem ented()}};Sys.N et.WebRequestEx ecutor.register Class("Sys.Net. WebRequestExecu tor");Sys.Net.X MLDOM=function( d)
{if(!window.DOM Parser){var c=["Msxml2.DOMDocu ment.
3.0","Msxml2.DO MDocument"];for(var b=0,f=c.length; b<f;b++)try{va r
a=new
ActiveXObject(c[b]);a.async=false ;a.loadXML(d);a .setProperty("S electionLanguag e","XPath");ret urn
a}catch(g){}}el se try{var e=new window.DOMParse r;return
e.parseFromStri ng(d,"text/xml")}catch(g){ }return
null};Sys.Net.X MLHttpExecutor= function()
{Sys.Net.XMLHtt pExecutor.initi alizeBase(this) ;var
a=this;this._xm lHttpRequest=nu ll;this._webReq uest=null;this. _responseAvaila ble=false;this. _timedOut=false ;this._timer=nu ll;this._aborte d=false;this._s tarted=false;th is._onReadyStat eChange=functio n()
{if(a._xmlHttpR equest.readySta te===4){try{if( typeof
a._xmlHttpReque st.status==="un defined")return }catch(b)
{return}a._clea rTimer();a._res ponseAvailable= true;a._webRequ est.completed(S ys.EventArgs.Em pty);if(a._xmlH ttpRequest!
=null)
{a._xmlHttpRequ est.onreadystat echange=Functio n.emptyMethod;a ._xmlHttpReques t=null}}};this. _clearTimer=fun ction()
{if(a._timer!=n ull)
{window.clearTi meout(a._timer) ;a._timer=null} };this._onTimeo ut=function()
{if(!a._respons eAvailable)
{a._clearTimer( );a._timedOut=t rue;a._xmlHttpR equest.onreadys tatechange=Func tion.emptyMetho d;a._xmlHttpReq uest.abort();a. _webRequest.com pleted(Sys.Even tArgs.Empty);a. _xmlHttpRequest =null}}};Sys.Ne t.XMLHttpExecut or.prototype={g et_timedOut:fun ction()
{return this._timedOut} ,get_started:fu nction(){return
this._started}, get_responseAva ilable:function (){return
this._responseA vailable},get_a borted:function (){return
this._aborted}, executeRequest: function()
{this._webReque st=this.get_web Request();var
c=this._webRequ est.get_body(), a=this._webRequ est.get_headers ();this._xmlHtt pRequest=new
XMLHttpRequest; this._xmlHttpRe quest.onreadyst atechange=this. _onReadyStateCh ange;var
e=this._webRequ est.get_httpVer b();this._xmlHt tpRequest.open( e,this._webRequ est.getResolved Url(),true);if( a)for(var
b in a){var f=a[b];if(typeof f!
=="function")th is._xmlHttpRequ est.setRequestH eader(b,f)}if(e .toLowerCase()= =="post")
{if(a===null||! a["Content-
Type"])this._xmlHttpR equest.setReque stHeader("Conte nt-
Type","applicat ion/x-www-form-urlencoded; charset=utf-8");if(!
c)c=""}var
d=this._webRequ est.get_timeout ();if(d>0)this. _timer=window.s etTimeout(Funct ion.createDeleg ate(this,this._ onTimeout),d);t his._xmlHttpReq uest.send(c);th is._started=tru e},getResponseH eader:function( b)
{var a;try{a=this._x mlHttpRequest.g etResponseHeade r(b)}catch(c){} if(!
a)a="";return a},getAllRespon seHeaders:funct ion(){return
this._xmlHttpRe quest.getAllRes ponseHeaders()} ,get_responseDa ta:function()
{return this._xmlHttpRe quest.responseT ext},get_status Code:function()
{var a=0;try{a=this. _xmlHttpRequest .status}catch(b ){}return
a},get_statusTe xt:function(){r eturn
this._xmlHttpRe quest.statusTex t},get_xml:func tion(){var
a=this._xmlHttp Request.respons eXML;if(!a||!a. documentElement )
{a=Sys.Net.XMLD OM(this._xmlHtt pRequest.respon seText);if(!a|| !
a.documentEleme nt)return null}else
if(navigator.us erAgent.indexOf ("MSIE")!
==-1)a.setProperty ("SelectionLang uage","XPath"); if(a.documentEl ement.namespace URI==="http://
www.mozilla.org/newlayout/xml/parsererror.xml "&&a.documentEl ement.tagName== ="parsererror") return
null;if(a.docum entElement.firs tChild&&a.docum entElement.firs tChild.tagName= =="parsererror" )return
null;return a},abort:functi on(){if(this._a borted||
this._responseA vailable||
this._timedOut) return;this._ab orted=true;this ._clearTimer(); if(this._xmlHtt pRequest&&!
this._responseA vailable)
{this._xmlHttpR equest.onreadys tatechange=Func tion.emptyMetho d;this._xmlHttp Request.abort() ;this._xmlHttpR equest=null;thi s._webRequest.c ompleted(Sys.Ev entArgs.Empty)} }};Sys.Net.XMLH ttpExecutor.reg isterClass("Sys .Net.XMLHttpExe cutor",Sys.Net. WebRequestExecu tor);Sys.Net._W ebRequestManage r=function()
{this._this=thi s;this._default Timeout=0;this. _defaultExecuto rType="Sys.Net. XMLHttpExecutor "};Sys.Net._Web RequestManager. prototype={add_ invokingRequest :function(a)
{this._get_even tHandlerList(). addHandler("inv okingRequest",a )},remove_invok ingRequest:func tion(a)
{this._get_even tHandlerList(). removeHandler(" invokingRequest ",a)},add_compl etedRequest:fun ction(a)
{this._get_even tHandlerList(). addHandler("com pletedRequest", a)},remove_comp letedRequest:fu nction(a)
{this._get_even tHandlerList(). removeHandler(" completedReques t",a)},_get_eve ntHandlerList:f unction()
{if(!this._even ts)this._events =new Sys.EventHandle rList;return
this._events},g et_defaultTimeo ut:function(){r eturn
this._defaultTi meout},set_defa ultTimeout:func tion(a)
{this._defaultT imeout=a},get_d efaultExecutorT ype:function(){ return
this._defaultEx ecutorType},set _defaultExecuto rType:function( a)
{this._defaultE xecutorType=a}, executeRequest: function(webReq uest){var
executor=webReq uest.get_execut or();if(!execut or){var
failed=false;tr y{var
executorType=ev al(this._defaul tExecutorType); executor=new
executorType}ca tch(a)
{failed=true}we bRequest.set_ex ecutor(executor )}if(executor.g et_aborted())re turn;var
evArgs=new
Sys.Net.Network RequestEventArg s(webRequest),h andler=this._ge t_eventHandlerL ist().getHandle r("invokingRequ est");if(handle r)handler(this, evArgs);if(!
evArgs.get_canc el())executor.e xecuteRequest() }};Sys.Net._Web RequestManager. registerClass(" Sys.Net._WebReq uestManager");S ys.Net.WebReque stManager=new
Sys.Net._WebReq uestManager;Sys .Net.NetworkReq uestEventArgs=f unction(a)
{Sys.Net.Networ kRequestEventAr gs.initializeBa se(this);this._ webRequest=a};S ys.Net.NetworkR equestEventArgs .prototype={get _webRequest:fun ction()
{return
this._webReques t}};Sys.Net.Net workRequestEven tArgs.registerC lass("Sys.Net.N etworkRequestEv entArgs",Sys.Ca ncelEventArgs); Sys.Net.WebRequ est=function()
{this._url="";t his._headers={} ;this._body=nul l;this._userCon text=null;this. _httpVerb=null; this._executor= null;this._invo keCalled=false; this._timeout=0 };Sys.Net.WebRe quest.prototype ={add_completed :function(a)
{this._get_even tHandlerList(). addHandler("com pleted",a)},rem ove_completed:f unction(a)
{this._get_even tHandlerList(). removeHandler(" completed",a)}, completed:funct ion(b)
{var
a=Sys.Net.WebRe questManager._g et_eventHandler List().getHandl er("completedRe quest");if(a)a( this._executor, b);a=this._get_ eventHandlerLis t().getHandler( "completed");if (a)a(this._exec utor,b)},_get_e ventHandlerList :function()
{if(!this._even ts)this._events =new Sys.EventHandle rList;return
this._events},g et_url:function (){return this._url},set_ url:function(a)
{this._url=a},g et_headers:func tion(){return
this._headers}, get_httpVerb:fu nction(){if(thi s._httpVerb===n ull)
{if(this._body= ==null)return "GET";retur n "POST"}retu rn
this._httpVerb} ,set_httpVerb:f unction(a)
{this._httpVerb =a},get_body:fu nction(){return
this._body},set _body:function( a)
{this._body=a}, get_userContext :function(){ret urn
this._userConte xt},set_userCon text:function(a )
{this._userCont ext=a},get_exec utor:function() {return
this._executor} ,set_executor:f unction(a)
{this._executor =a;this._execut or._set_webRequ est(this)},get_ timeout:functio n()
{if(this._timeo ut===0)return
Sys.Net.WebRequ estManager.get_ defaultTimeout( );return
this._timeout}, set_timeout:fun ction(a)
{this._timeout= a},getResolvedU rl:function(){r eturn
Sys.Net.WebRequ est._resolveUrl (this._url)},in voke:function()
{Sys.Net.WebReq uestManager.exe cuteRequest(thi s);this._invoke Called=true}};S ys.Net.WebReque st._resolveUrl= function(b,a)
{if(b&&b.indexO f("://")!==-1)return b;if(!a||a.leng th===0){var
c=document.getE lementsByTagNam e("base")
[0];if(c&&c.href&& c.href.length>0 )a=c.href;else a=document.URL} var
d=a.indexOf("?" );if(d!
==-1)a=a.substr(0, d);a=a.substr(0 ,a.lastIndexOf( "/")+1);if(!b ||
b.length===0)re turn a;if(b.charAt(0 )==="/"){var
e=a.indexOf("://"),g=a.indexOf( "/",e+3);retu rn a.substr(0,g)
+b}else{var f=a.lastIndexOf ("/");return a.substr(0,f
+1)+b}};Sys.Net .WebRequest._cr eateQueryString =function(d,b){ if(!
b)b=encodeURICo mponent;var a=new Sys.StringBuild er,f=0;for(var c in d)
{var e=d[c];if(typeof e==="function") continue;var
g=Sys.Serializa tion.JavaScript Serializer.seri alize(e);if(f!
==0)a.append("& ");a.append(c); a.append("=");a .append(b(g));f ++}return
a.toString()};S ys.Net.WebReque st._createUrl=f unction(a,b){if (!b)return
a;var d=Sys.Net.WebRe quest._createQu eryString(b);if (d.length>0){va r
c="?";if(a&&a.i ndexOf("?")!==-1)c="&";return a+c+d}else return
a};Sys.Net.WebR equest.register Class("Sys.Net. WebRequest");Sy s.Net.WebServic eProxy=function ()
{};Sys.Net.WebS erviceProxy.pro totype={get_tim eout:function() {return
this._timeout}, set_timeout:fun ction(a){if(a<0 )throw
Error.argumentO utOfRange("valu e",a,Sys.Res.in validTimeout);t his._timeout=a} ,get_defaultUse rContext:functi on()
{return this._userConte xt},set_default UserContext:fun ction(a)
{this._userCont ext=a},get_defa ultSucceededCal lback:function( ){return
this._succeeded },set_defaultSu cceededCallback :function(a)
{this._succeede d=a},get_defaul tFailedCallback :function(){ret urn
this._failed},s et_defaultFaile dCallback:funct ion(a)
{this._failed=a },get_path:func tion(){return
this._path},set _path:function( a)
{this._path=a}, _invoke:functio n(d,e,g,f,c,b,a ){if(c===null|| typeof
c==="undefined" )c=this.get_def aultSucceededCa llback();if(b== =null||
typeof b==="undefined" )b=this.get_def aultFailedCallb ack();if(a===nu ll||
typeof a==="undefined" )a=this.get_def aultUserContext ();return
Sys.Net.WebServ iceProxy.invoke (d,e,g,f,c,b,a, this.get_timeou t())}};Sys.Net. WebServiceProxy .registerClass( "Sys.Net.WebSer viceProxy");Sys .Net.WebService Proxy.invoke=fu nction(k,a,j,d, i,c,f,h)
{var b=new Sys.Net.WebRequ est;b.get_heade rs()["Content-
Type"]="applicatio n/json; charset=utf-8";if(!d)d={};v ar g=d;if(!j||!
g)g={};b.set_ur l(Sys.Net.WebRe quest._createUr l(k
+"/"+encodeURIComp onent(a),g));va r e=null;if(!j)
{e=Sys.Serializ ation.JavaScrip tSerializer.ser ialize(d);if(e= =="{}")e=""}b.s et_body(e);b.ad d_completed(l); if(h&&h>0)b.set _timeout(h);b.i nvoke();functio n
l(d){if(d.get_r esponseAvailabl e()){var
g=d.get_statusC ode(),b=null;tr y{var e=d.getResponse Header("Content-
Type");if(e.sta rtsWith("applic ation/json"))b=d.get_ object();else
if(e.startsWith ("text/xml"))b=d.get_x ml();else
b=d.get_respons eData()}catch(m ){}var
k=d.getResponse Header("jsonerr or"),h=k==="tru e";if(h){if(b)b =new
Sys.Net.WebServ iceError(false, b.Message,b.Sta ckTrace,b.Excep tionType)}else
if(e.startsWith ("applicatio n/json"))b=b.d;if (g<200||g>=300| |h){if(c)
{if(!b||!h)b=ne w
Sys.Net.WebServ iceError(false, String.format(S ys.Res.webServi ceFailedNoMsg,a ),"","");b._sta tusCode=g;c(b,f ,a)}}else
if(i)i(b,f,a)}e lse{var
j;if(d.get_time dOut())j=String .format(Sys.Res .webServiceTime dOut,a);else
j=String.format (Sys.Res.webSer viceFailedNoMsg ,a);if(c)c(new
Sys.Net.WebServ iceError(d.get_ timedOut(),j,"" ,""),f,a)}}retu rn
b};Sys.Net.WebS erviceProxy._ge nerateTypedCons tructor=functio n(a)
{return function(b){if( b)for(var c in
b)this[c]=b[c];this.__type=a} };Sys.Net.WebSe rviceError=func tion(c,d,b,a)
{this._timedOut =c;this._messag e=d;this._stack Trace=b;this._e xceptionType=a; this._statusCod e=-1};Sys.Net.WebS erviceError.pro totype={get_tim edOut:function( )
{return this._timedOut} ,get_statusCode :function(){ret urn
this._statusCod e},get_message: function(){retu rn
this._message}, get_stackTrace: function(){retu rn
this._stackTrac e},get_exceptio nType:function( ){return
this._exception Type}};Sys.Net. WebServiceError .registerClass( "Sys.Net.WebSer viceError");Typ e.registerNames pace("Sys.Servi ces");Sys.Servi ces._ProfileSer vice=function()
{Sys.Services._ ProfileService. initializeBase( this);this.prop erties={}};Sys. Services._Profi leService.Defau ltWebServicePat h="";Sys.Servic es._ProfileServ ice.prototype={ _defaultLoadCom pletedCallback: null,_defaultSa veCompletedCall back:null,_path :"",_timeout :
0,get_defaultLo adCompletedCall back:function() {return
this._defaultLo adCompletedCall back},set_defau ltLoadCompleted Callback:functi on(a)
{this._defaultL oadCompletedCal lback=a},get_de faultSaveComple tedCallback:fun ction()
{return
this._defaultSa veCompletedCall back},set_defau ltSaveCompleted Callback:functi on(a)
{this._defaultS aveCompletedCal lback=a},get_pa th:function(){r eturn
this._path||""} ,load:function( c,d,e,f){var b,a;if(!c)
{a="GetAllPrope rtiesForCurrent User";b={authen ticatedUserOnly :false}}else{a= "GetPropertiesF orCurrentUser"; b={properties:t his._clonePrope rtyNames(c),aut henticatedUserO nly:false}}this ._invoke(this._ get_path(),a,
Oct 17 '08 #1
2 9033
first enable debug in web config, so the debug version (non-compressed
and readable) of ajax.js is used.

second enable javascript debugging in IE, use firefox, firebug and the
javascript console to see the stack trace.
-- bruce (sqlwork.com)

joelkeepup wrote:
Hi, I made a change this morning

and now im getting an error that says either "a is undefined or null"
or "e is undefined or null"

the microsoft ajax line is below, I have no idea how to figure this
problem out. Any suggestions?

thanks
Joel

// MicrosoftAjax.j s
5Function.__typ eName="Function ";Function.__cl ass=true;Functi on.createCallba ck=function(b,a )
{return function(){var e=arguments.len gth;if(e>0){var d=[];for(var
c=0;c<e;c++)d[c]=arguments[c];d[e]=a;return b.apply(this,d) }return
b.call(this,a)} };Function.crea teDelegate=func tion(a,b){retur n
function(){retu rn
b.apply(a,argum ents)}};Functio n.emptyFunction =Function.empty Method=function ()
{};Function._va lidateParams=fu nction(e,c){var
a;a=Function._v alidateParamete rCount(e,c);if( a)
{a.popStackFram e();return a}for(var b=0;b<e.length; b++){var
d=c[Math.min(b,c.le ngth-1)],f=d.name;if(d. parameterArray) f+="["+(b-
c.length+1)+"]";a=Function._v alidateParamete r(e[b],d,f);if(a)
{a.popStackFram e();return a}}return
null};Function. _validateParame terCount=functi on(e,a){var
c=a.length,d=0; for(var b=0;b<a.length; b+
+)if(a[b].parameterArray )c=Number.MAX_V ALUE;else if(!a[b].optional)d+
+;if(e.length<d ||e.length>c){v ar
f=Error.paramet erCount();f.pop StackFrame();re turn f}return
null};Function. _validateParame ter=function(c, a,h){var b,g=a.type,l=!!
a.integer,k=!!a .domElement,m=! !
a.mayBeNull;b=F unction._valida teParameterType (c,g,l,k,m,h);i f(b)
{b.popStackFram e();return b}var e=a.elementType ,f=!!
a.elementMayBeN ull;if(g===Arra y&&typeof c!=="undefined" &&c!
==null&&(e||!f) ){var j=!!a.elementIn teger,i=!!
a.elementDomEle ment;for(var d=0;d<c.length; d++){var
n=c[d];b=Function._va lidateParameter Type(n,e,j,i,f, h+"["+d+"]");if(b)
{b.popStackFram e();return b}}}return
null};Function. _validateParame terType=functio n(a,c,n,m,k,d){ var
b;if(typeof a==="undefined" )if(k)return
null;else{b=Err or.argumentUnde fined(d);b.popS tackFrame();ret urn
b}if(a===null)i f(k)return
null;else{b=Err or.argumentNull (d);b.popStackF rame();return
b}if(c&&c.__enu m){if(typeof a!=="number")
{b=Error.argume ntType(d,Object .getType(a),c); b.popStackFrame ();return
b}if(a%1===0){v ar e=c.prototype;i f(!c.__flags||a ===0){for(var i in
e)if(e[i]===a)return null}else{var l=a;for(var i in e){var
f=e[i];if(f===0)conti nue;if((f&a)=== f)l-=f;if(l===0)ret urn
null}}}b=Error. argumentOutOfRa nge(d,a,String. format(Sys.Res. enumInvalidValu e,a,c.getName() ));b.popStackFr ame();return
b}if(m){var h;if(typeof a.nodeType!=="n umber"){var g=a.ownerDocume nt||
a.document||a;i f(g!=a){var j=g.defaultView ||g.parentWindo w;h=j!=a&&!
(j.document&&a. document&&j.doc ument===a.docum ent)}else h=typeof
g.body==="undef ined"}else h=a.nodeType=== 3;if(h)
{b=Error.argume nt(d,Sys.Res.ar gumentDomElemen t);b.popStackFr ame();return
b}}if(c&&!c.isI nstanceOfType(a ))
{b=Error.argume ntType(d,Object .getType(a),c); b.popStackFrame ();return
b}if(c===Number &&n)if(a%1!= =0)
{b=Error.argume ntOutOfRange(d, a,Sys.Res.argum entInteger);b.p opStackFrame(); return
b}return
null};Error.__t ypeName="Error" ;Error.__class= true;Error.crea te=function(d,b )
{var a=new Error(d);a.mess age=d;if(b)for( var c in
b)a[c]=b[c];a.popStackFram e();return a};Error.argume nt=function(a,c )
{var b="Sys.Argument Exception: "+(c?c:Sys.Res. argument);if(a) b
+="\n"+String.f ormat(Sys.Res.p aramName,a);var d=Error.create( b,
{name:"Sys.Argu mentException", paramName:a});d .popStackFrame( );return
d};Error.argume ntNull=function (a,c){var b="Sys.Argument NullException:
"+(c?c:Sys.Res. argumentNull);i f(a)b
+="\n"+String.f ormat(Sys.Res.p aramName,a);var d=Error.create( b,
{name:"Sys.Argu mentNullExcepti on",paramName:a });d.popStackFr ame();return
d};Error.argume ntOutOfRange=fu nction(c,a,d){v ar
b="Sys.Argument OutOfRangeExcep tion: "+(d?
d:Sys.Res.argum entOutOfRange); if(c)b
+="\n"+String.f ormat(Sys.Res.p aramName,c);if( typeof a!=="undefined" &&a!
==null)b+="\n"+ String.format(S ys.Res.actualVa lue,a);var
e=Error.create( b,
{name:"Sys.Argu mentOutOfRangeE xception",param Name:c,actualVa lue:a});e.popSt ackFrame();retu rn
e};Error.argume ntType=function (d,c,b,e){var
a="Sys.Argument TypeException: ";if(e)a+=e;els e if(c&&b)a
+=String.format (Sys.Res.argume ntTypeWithTypes ,c.getName(),b. getName());else
a+=Sys.Res.argu mentType;if(d)a
+="\n"+String.f ormat(Sys.Res.p aramName,d);var f=Error.create( a,
{name:"Sys.Argu mentTypeExcepti on",paramName:d ,actualType:c,e xpectedType:b}) ;f.popStackFram e();return
f};Error.argume ntUndefined=fun ction(a,c){var
b="Sys.Argument UndefinedExcept ion: "+(c?
c:Sys.Res.argum entUndefined);i f(a)b
+="\n"+String.f ormat(Sys.Res.p aramName,a);var d=Error.create( b,
{name:"Sys.Argu mentUndefinedEx ception",paramN ame:a});d.popSt ackFrame();retu rn
d};Error.format =function(a){va r c="Sys.FormatEx ception: "+(a?
a:Sys.Res.forma t),b=Error.crea te(c,
{name:"Sys.Form atException"}); b.popStackFrame ();return
b};Error.invali dOperation=func tion(a){var
c="Sys.InvalidO perationExcepti on: "+(a?
a:Sys.Res.inval idOperation),b= Error.create(c,
{name:"Sys.Inva lidOperationExc eption"});b.pop StackFrame();re turn
b};Error.notImp lemented=functi on(a){var
c="Sys.NotImple mentedException : "+(a?
a:Sys.Res.notIm plemented),b=Er ror.create(c,
{name:"Sys.NotI mplementedExcep tion"});b.popSt ackFrame();retu rn
b};Error.parame terCount=functi on(a){var
c="Sys.Paramete rCountException : "+(a?
a:Sys.Res.param eterCount),b=Er ror.create(c,
{name:"Sys.Para meterCountExcep tion"});b.popSt ackFrame();retu rn
b};Error.protot ype.popStackFra me=function(){i f(typeof
this.stack==="u ndefined"||this .stack===null|| typeof
this.fileName== ="undefined"||t his.fileName=== null||typeof
this.lineNumber ==="undefined"| |this.lineNumbe r===null)return ;var
a=this.stack.sp lit("\n"),c=a[0],e=this.fileNam e
+":"+this.lineN umber;while(typ eof c!=="undefined" &&c!
==null&&c.index Of(e)===-1){a.shift();c= a[0]}var d=a[1];if(typeof
d==="undefined" ||d===null)retu rn;var b=d.match(/@(.*):(\d+)
$/);if(typeof b==="undefined" ||
b===null)return ;this.fileName= b[1];this.lineNumbe r=parseInt(b[2]);a.shift();thi s.stack=a.join( "\n")};Object._ _typeName="Obje ct";Object.__cl ass=true;Object .getType=functi on(b)
{var a=b.constructor ;if(!a||typeof a!=="function"| |!a.__typeName| |
a.__typeName=== "Object")re turn Object;return
a};Object.getTy peName=function (a){return
Object.getType( a).getName()};S tring.__typeNam e="String";Stri ng.__class=true ;String.prototy pe.endsWith=fun ction(a)
{return this.substr(thi s.length-
a.length)===a}; String.prototyp e.startsWith=fu nction(a){retur n
this.substr(0,a .length)===a};S tring.prototype .trim=function( ){return
this.replace(/^\s+|\s+$/g,"")};String.p rototype.trimEn d=function()
{return this.replace(/\s+$/,"")};String.pr ototype.trimSta rt=function()
{return this.replace(/^\s+/,"")};String.fo rmat=function() {return
String._toForma ttedString(fals e,arguments)};S tring.localeFor mat=function()
{return
String._toForma ttedString(true ,arguments)};St ring._toFormatt edString=functi on(l,j)
{var c="",e=j[0];for(var a=0;true;){var
f=e.indexOf("{" ,a),d=e.indexOf ("}",a);if(f<0& &d<0){c
+=e.slice(a);br eak}if(d>0&&(d< f||f<0)){c+=e.s lice(a,d+1);a=d
+2;continue}c+= e.slice(a,f);a= f+1;if(e.charAt (a)==="{"){c+=" {";a+
+;continue}if(d <0)break;var
h=e.substring(a ,d),g=h.indexOf (":"),k=parseIn t(g<0?h:h.subst ring(0,g),
10)+1,i=g<0?"": h.substring(g+1 ),b=j[k];if(typeof b==="undefined" ||
b===null)b="";i f(b.toFormatted String)c+=b.toF ormattedString( i);else
if(l&&b.localeF ormat)c+=b.loca leFormat(i);els e if(b.format)c
+=b.format(i);e lse c+=b.toString() ;a=d+1}return
c};Boolean.__ty peName="Boolean ";Boolean.__cla ss=true;Boolean .parse=function (b)
{var a=b.trim().toLo werCase();if(a= =="false")retur n
false;if(a==="t rue")return
true};Date.__ty peName="Date";D ate.__class=tru e;Date._appendP reOrPostMatch=f unction(e,b)
{var d=0,a=false;for (var c=0,g=e.length; c<g;c++){var
f=e.charAt(c);s witch(f){case "'":if(a)b.appe nd("'");else d+
+;a=false;break ;case "\\":if(a)b.app end("\\");a=!
a;break;default :b.append(f);a= false}}return
d};Date._expand Format=function (a,b){if(!
b)b="F";if(b.le ngth===1)switch (b){case "d":return
a.ShortDatePatt ern;case "D":return a.LongDatePatte rn;case "t":return
a.ShortTimePatt ern;case "T":return a.LongTimePatte rn;case "F":return
a.FullDateTimeP attern;case "M":case "m":return a.MonthDayPatte rn;case
"s":return a.SortableDateT imePattern;case "Y":case "y":return
a.YearMonthPatt ern;default:thr ow
Error.format(Sy s.Res.formatInv alidString)}ret urn
b};Date._expand Year=function(c ,a){if(a<100){v ar b=(new
Date).getFullYe ar();a+=b-b%100;if(a>c.Ca lendar.TwoDigit YearMax)return
a-100}return a};Date._getPar seRegExp=functi on(b,e){if(!
b._parseRegExp) b._parseRegExp= {};else if(b._parseRegE xp[e])return
b._parseRegExp[e];var c=Date._expandF ormat(b,e);c=c. replace(/([\^\$\.\*
\+\?\|\[\]\(\)\{\}])/g,"\\\\$1");v ar a=new
Sys.StringBuild er("^"),j=[],f=0,i=0,h=Date ._getTokenRegEx p(),d;while((d= h.exec(c))!
==null){var l=c.slice(f,d.i ndex);f=h.lastI ndex;i
+=Date._appendP reOrPostMatch(l ,a);if(i%2===1)
{a.append(d[0]);continue}swit ch(d[0]){case "dddd":case "ddd":case
"MMMM":case "MMM":a.append( "(\\D+)");break ;case "tt":case
"t":a.append("( \\D*)");break;c ase "yyyy":a.append ("(\
\d{4})");break; case "fff":a.append( "(\\d{3})");bre ak;case
"ff":a.append(" (\\d{2})");brea k;case "f":a.append("( \\d)");break;ca se
"dd":case "d":case "MM":case "M":case "yy":case "y":case "HH":case
"H":case "hh":case "h":case "mm":case "m":case "ss":case
"s":a.append("( \\d\\d?)");brea k;case "zzz":a.append( "([+-]?\\d\\d?:\
\d{2})");break; case "zz":case "z":a.appen d("([+-]?\\d\
\d?)")}Array.ad d(j,d[0])}Date._appendP reOrPostMatch(c .slice(f),a);a. append("$");var
k=a.toString(). replace(/\s+/g,"\\s
+"),g={"regExp" :k,"groups":j}; b._parseRegExp[e]=g;return
g};Date._getTok enRegExp=functi on(){return /dddd|ddd|dd|d|M MMM|MMM|MM|M|
yyyy|yy|y|hh|h| HH|H|mm|m|ss|s| tt|t|fff|ff|f|z zz|zz|z/
g};Date.parseLo cale=function(a ){return
Date._parse(a,S ys.CultureInfo. CurrentCulture, arguments)};Dat e.parseInvarian t=function(a)
{return
Date._parse(a,S ys.CultureInfo. InvariantCultur e,arguments)};D ate._parse=func tion(g,c,h)
{var e=false;for(var a=1,i=h.length; a<i;a++){var f=h[a];if(f)
{e=true;var b=Date._parseEx act(g,f,c);if(b )return b}}if(!e){var
d=c._getDateTim eFormats();for( var a=0,i=d.length; a<i;a++){var
b=Date._parseEx act(g,d[a],c);if(b)return b}}return
null};Date._par seExact=functio n(s,y,j){s=s.tr im();var
m=j.dateTimeFor mat,v=Date._get ParseRegExp(m,y ),x=(new
RegExp(v.regExp )).exec(s);if(x ===null)return null;var
w=v.groups,f=nu ll,c=null,h=nul l,g=null,d=0,n= 0,o=0,e=0,k=nul l,r=false;for(v ar
p=0,z=w.length; p<z;p++){var a=x[p+1];if(a)switch(w[p]){case "dd":case
"d":h=parseInt( a,10);if(h<1||h >31)return null;break;case
"MMMM":c=j._get MonthIndex(a);i f(c<0||c>11)ret urn null;break;case
"MMM":c=j._getA bbrMonthIndex(a );if(c<0||c>11) return null;break;case
"M":case "MM":var c=parseInt(a,10 )-1;if(c<0||c>11) return
null;break;case "y":case "yy":f=Date._ex pandYear(m,pars eInt(a,
10));if(f<0||f> 9999)return null;break;case "yyyy":f=parseI nt(a,
10);if(f<0||f>9 999)return null;break;case "h":case "hh":d=parseInt (a,
10);if(d===12)d =0;if(d<0||d>11 )return null;break;case "H":case
"HH":d=parseInt (a,10);if(d<0|| d>23)return null;break;case "m":case
"mm":n=parseInt (a,10);if(n<0|| n>59)return null;break;case "s":case
"ss":o=parseInt (a,10);if(o<0|| o>59)return null;break;case "tt":case
"t":var u=a.toUpperCase ();r=u===m.PMDe signator.toUppe rCase();if(!r&& u!
==m.AMDesignato r.toUpperCase() )return null;break;case "f":e=parseInt( a,
10)*100;if(e<0| |e>999)return null;break;case "ff":e=parseInt (a,
10)*10;if(e<0|| e>999)return null;break;case "fff":e=parseIn t(a,
10);if(e<0||e>9 99)return null;break;case
"dddd":g=j._get DayIndex(a);if( g<0||g>6)retur n null;break;case
"ddd":g=j._getA bbrDayIndex(a); if(g<0||g>6)ret urn null;break;case
"zzz":var q=a.split(/:/);if(q.length!= =2)return null;var
i=parseInt(q[0],10);if(i<-12||i>13)return null;var l=parseInt(q[1],
10);if(l<0||l>5 9)return null;k=i*60+(a. startsWith("-")?-
l:l);break;case "z":case "zz":var i=parseInt(a,10 );if(i<-12||
i>13)return null;k=i*60}}va r b=new
Date;if(f===nul l)f=b.getFullYe ar();if(c===nul l)c=b.getMonth( );if(h===null)h =b.getDate();b. setFullYear(f,c ,h);if(b.getDat e()!
==h)return null;if(g!==nul l&&b.getDay()!= =g)return null;if(r&&d<12 )d
+=12;b.setHours (d,n,o,e);if(k! ==null){var t=b.getMinutes( )-(k
+b.getTimezoneO ffset());b.setH ours(b.getHours ()+parseInt(t/60,10),t
%60)}return b};Date.prototy pe.format=funct ion(a){return
this._toFormatt edString(a,Sys. CultureInfo.Inv ariantCulture)} ;Date.prototype .localeFormat=f unction(a)
{return
this._toFormatt edString(a,Sys. CultureInfo.Cur rentCulture)};D ate.prototype._ toFormattedStri ng=function(e,h )
{if(!e||e.lengt h===0||e==="i") if(h&&h.name.le ngth>0)return
this.toLocaleSt ring();else return this.toString() ;var
d=h.dateTimeFor mat;e=Date._exp andFormat(d,e); var a=new
Sys.StringBuild er,b;function c(a){if(a<10)re turn "0"+a;retur n
a.toString()}fu nction g(a){if(a<10)re turn "00"+a;if(a<100 )return
"0"+a;retur n a.toString()}va r j=0,i=Date._get TokenRegExp();f or(;true;)
{var l=i.lastIndex,f =i.exec(e),k=e. slice(l,f?f.ind ex:e.length);j
+=Date._appendP reOrPostMatch(k ,a);if(!f)break ;if(j%2===1)
{a.append(f[0]);continue}swit ch(f[0]){case
"dddd":a.append (d.DayNames[this.getDay()]);break;case
"ddd":a.append( d.AbbreviatedDa yNames[this.getDay()]);break;case
"dd":a.append(c (this.getDate() ));break;case
"d":a.append(th is.getDate());b reak;case
"MMMM":a.append (d.MonthNames[this.getMonth()]);break;case
"MMM":a.append( d.AbbreviatedMo nthNames[this.getMonth()]);break;case
"MM":a.append(c (this.getMonth( )+1));break;cas e
"M":a.append(th is.getMonth()+1 );break;case
"yyyy":a.append (this.getFullYe ar());break;cas e
"yy":a.append(c (this.getFullYe ar()%100));brea k;case
"y":a.append(th is.getFullYear( )%100);break;ca se "hh":b=this.get Hours()
%12;if(b===0)b= 12;a.append(c(b ));break;case "h":b=this.getH ours()
%12;if(b===0)b= 12;a.append(b); break;case
"HH":a.append(c (this.getHours( )));break;case
"H":a.append(th is.getHours()); break;case
"mm":a.append(c (this.getMinute s()));break;cas e
"m":a.append(th is.getMinutes() );break;case
"ss":a.append(c (this.getSecond s()));break;cas e
"s":a.append(th is.getSeconds() );break;case
"tt":a.append(t his.getHours()< 12?
d.AMDesignator: d.PMDesignator) ;break;case
"t":a.append((t his.getHours()< 12?
d.AMDesignator: d.PMDesignator) .charAt(0));bre ak;case
"f":a.append(g( this.getMillise conds()).charAt (0));break;case
"ff":a.append(g (this.getMillis econds()).subst r(0,2));break;c ase
"fff":a.append( g(this.getMilli seconds()));bre ak;case
"z":b=this.getT imezoneOffset()/60;a.append((b< =0?"+":"-")
+Math.floor(Mat h.abs(b)));brea k;case "zz":b=this.get TimezoneOffset( )/
60;a.append((b< =0?"+":"-")+c(Math.floor (Math.abs(b)))) ;break;case
"zzz":b=this.ge tTimezoneOffset ()/60;a.append((b< =0?"+":"-")
+c(Math.floor(M ath.abs(b)))+d. TimeSeparator
+c(Math.abs(thi s.getTimezoneOf fset()%60)))}}r eturn
a.toString()};N umber.__typeNam e="Number";Numb er.__class=true ;Number.parseLo cale=function(a )
{return
Number._parse(a ,Sys.CultureInf o.CurrentCultur e)};Number.pars eInvariant=func tion(a)
{return
Number._parse(a ,Sys.CultureInf o.InvariantCult ure)};Number._p arse=function(b ,n)
{b=b.trim();if( b.match(/^[+-]?infinity$/i))return
parseFloat(b);i f(b.match(/^0x[a-f0-9]+$/i))return parseInt(b);var
a=n.numberForma t,f=Number._par seNumberNegativ ePattern(b,a,a. NumberNegativeP attern),h=f[0],d=f[1];if(h===""&&a.N umberNegativePa ttern!
==1){f=Number._ parseNumberNega tivePattern(b,a ,
1);h=f[0];d=f[1]}if(h==="")h="+ ";var
j,c,e=d.indexOf ("e");if(e<0)e= d.indexOf("E"); if(e<0)
{c=d;j=null}els e{c=d.substr(0, e);j=d.substr(e +1)}var
g,k,m=c.indexOf (a.NumberDecima lSeparator);if( m<0)
{g=c;k=null}els e{g=c.substr(0, m);k=c.substr(m
+a.NumberDecima lSeparator.leng th)}g=g.split(a .NumberGroupSep arator).join("" );var
l=h+g;if(k!==nu ll)l+="."+k;if( j!==null){var
i=Number._parse NumberNegativeP attern(j,a,1);i f(i[0]==="")i[0]="+";l
+="e"+i[0]+i[1]}if(l.match(/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/))return
parseFloat(l);r eturn
Number.NaN};Num ber._parseNumbe rNegativePatter n=function(a,d, e){var
b=d.NegativeSig n,c=d.PositiveS ign;switch(e){c ase 4:b=" "+b;c="
"+c;case 3:if(a.endsWith (b))return ["-",a.substr(0,a. length-
b.length)];else if(a.endsWith(c ))return ["+",a.substr(0, a.length-
c.length)];break;case 2:b+=" ";c+=" ";case 1:if(a.startsWi th(b))return
["-",a.substr(b.le ngth)];else if(a.startsWith (c))return
["+",a.substr(c. length)];break;case
0:if(a.startsWi th("(")&&a.ends With(")"))retur n
["-",a.substr(1,a. length-2)]}return
["",a]};Number.protot ype.format=func tion(a){return
this._toFormatt edString(a,Sys. CultureInfo.Inv ariantCulture)} ;Number.prototy pe.localeFormat =function(a)
{return
this._toFormatt edString(a,Sys. CultureInfo.Cur rentCulture)};N umber.prototype ._toFormattedSt ring=function(d ,j)
{if(!d||d.lengt h===0||d==="i") if(j&&j.name.le ngth>0)return
this.toLocaleSt ring();else return this.toString() ;var q=["n %","n
%","%n"],p=["-n %","-n%","-%n"],r=["(n)","-n","- n","n-","n
-"],o=["$n","n$"," $ n","n $"],n=["($n)","-$n","$-n","$n-","(n$)","-n
$","n-$","n$-","-n $","-$ n","n $-","$ n-","$ -n","n- $","($ n)","(n
$)"];function i(p,k,j,l,o){va r
e=j[0],g=1,c=p.toStri ng(),a="",m="", i=c.split("."); if(i.length>1)
{c=i[0];a=i[1];var h=a.split(/e/i);if(h.length> 1)
{a=h[0];m="e"+h[1]}}if(k>0){var f=a.length-
k;if(f>0)a=a.sl ice(0,k);else if(f<0)for(var n=0;n<Math.abs( f);n++)a
+="0";a=o+a}els e a="";a+=m;var b=c.length-1,d="";while(b> =0){if(e===0||
e>b)if(d.length >0)return c.slice(0,b+1)+ l+d+a;else return c.slice(0,b
+1)+a;if(d.leng th>0)d=c.slice( b-e+1,b+1)+l+d;el se d=c.slice(b-e+1,b
+1);b-=e;if(g<j.lengt h){e=j[g];g++}}return c.slice(0,b+1)+ l+d+a}var
a=j.numberForma t,e=Math.abs(th is);if(!d)d="D" ;var
b=-1;if(d.length>1 )b=parseInt(d.s lice(1),10);var c;switch(d.char At(0))
{case "d":case "D":c="n";if(b! ==-1){var g=""+e,k=b-
g.length;if(k>0 )for(var m=0;m<k;m++)g=" 0"+g;e=g}if(thi s<0)e=-
e;break;case "c":case
"C":if(this<0)c =n[a.CurrencyNegat ivePattern];else
c=o[a.CurrencyPosit ivePattern];if(b===-1)b=a.CurrencyD ecimalDigits;e= i(Math.abs(this ),b,a.CurrencyG roupSizes,a.Cur rencyGroupSepar ator,a.Currency DecimalSeparato r);break;case
"n":case "N":if(this<0)c =r[a.NumberNegativ ePattern];else
c="n";if(b===-1)b=a.NumberDec imalDigits;e=i( Math.abs(this), b,a.NumberGroup Sizes,a.NumberG roupSeparator,a .NumberDecimalS eparator);break ;case
"p":case "P":if(this<0)c =p[a.PercentNegati vePattern];else
c=q[a.PercentPositi vePattern];if(b===-1)b=a.PercentDe cimalDigits;e=i (Math.abs(this) ,b,a.PercentGro upSizes,a.Perce ntGroupSeparato r,a.PercentDeci malSeparator);b reak;default:th row
Error.format(Sy s.Res.formatBad FormatSpecifier )}var l=/n|\$|-|%/
g,f="";for(;tru e;){var s=l.lastIndex,h =l.exec(c);f+=c .slice(s,h?
h.index:c.lengt h);if(!h)break; switch(h[0]){case "n":f+=e;break; case
"$":f+=a.Curren cySymbol;break; case "-":f+=a.Negative Sign;break;case
"%":f+=a.Percen tSymbol}}return
f};RegExp.__typ eName="RegExp"; RegExp.__class= true;Array.__ty peName="Array"; Array.__class=t rue;Array.add=A rray.enqueue=fu nction(a,b)
{a[a.length]=b};Array.addRa nge=function(a, b)
{a.push.apply(a ,b)};Array.clea r=function(a)
{a.length=0};Ar ray.clone=funct ion(a){if(a.len gth===1)return
[a[0]];else return Array.apply(nul l,a)};Array.con tains=function( a,b)
{return Array.indexOf(a ,b)>=0};Array.d equeue=function (a){return
a.shift()};Arra y.forEach=funct ion(b,e,d){for( var a=0,f=b.length; a<f;a+
+){var c=b[a];if(typeof c!
=="undefined")e .call(d,c,a,b)} };Array.indexOf =function(d,e,a )
{if(typeof e==="undefined" )return -1;var c=d.length;if(c !==0)
{a=a-0;if(isNaN(a))a =0;else{if(isFi nite(a))a=a-a
%1;if(a<0)a=Mat h.max(0,c+a)}fo r(var b=a;b<c;b++)if( typeof d[b]!
=="undefined"&& d[b]===e)return b}return
-1};Array.insert =function(a,b,c ){a.splice(b,
0,c)};Array.par se=function(val ue){if(!value)r eturn [];return
eval(value)};Ar ray.remove=func tion(b,c){var
a=Array.indexOf (b,c);if(a>=0)b .splice(a,1);re turn
a>=0};Array.rem oveAt=function( a,b){a.splice(b ,1)};if(!
window)this.win dow=this;window .Type=Function; Type.prototype. callBaseMethod= function(a,d,b)
{var c=this.getBaseM ethod(a,d);if(! b)return c.apply(a);else return
c.apply(a,b)};T ype.prototype.g etBaseMethod=fu nction(d,c){var
b=this.getBaseT ype();if(b){var a=b.prototype[c];return a instanceof
Function?a:null }return null};Type.prot otype.getBaseTy pe=function()
{return typeof this.__baseType ==="undefined" ?
null:this.__bas eType};Type.pro totype.getInter faces=function( ){var
a=[],b=this;while(b ){var c=b.__interface s;if(c)for(var
d=0,f=c.length; d<f;d++){var e=c[d];if(!
Array.contains( a,e))a[a.length]=e}b=b.__baseTy pe}return
a};Type.prototy pe.getName=func tion(){return typeof
this.__typeName ==="undefined"? "":this.__typeN ame};Type.proto type.implements Interface=funct ion(d)
{this.resolveIn heritance();var
c=d.getName(),a =this.__interfa ceCache;if(a){v ar e=a[c];if(typeof e!
=="undefined")r eturn e}else a=this.__interf aceCache={};var
b=this;while(b) {var f=b.__interface s;if(f)if(Array .indexOf(f,d)!
==-1)return a[c]=true;b=b.__bas eType}return
a[c]=false};Type.pr ototype.inherit sFrom=function( b)
{this.resolveIn heritance();var a=this.__baseTy pe;while(a)
{if(a===b)retur n true;a=a.__base Type}return
false};Type.pro totype.initiali zeBase=function (a,b)
{this.resolveIn heritance();if( this.__baseType )if(!
b)this.__baseTy pe.apply(a);els e this.__baseType .apply(a,b);ret urn
a};Type.prototy pe.isImplemente dBy=function(a) {if(typeof
a==="undefined" ||a===null)retu rn false;var
b=Object.getTyp e(a);return !!
(b.implementsIn terface&&b.impl ementsInterface (this))};Type.p rototype.isInst anceOfType=func tion(b)
{if(typeof b==="undefined" ||b===null)retu rn false;if(b instanceof
this)return true;var a=Object.getTyp e(b);return !!(a===this)||
a.inheritsFrom& &a.inheritsFrom (this)||
a.implementsInt erface&&a.imple mentsInterface( this)};Type.pro totype.register Class=function( c,b,d)
{this.prototype .constructor=th is;this.__typeN ame=c;this.__cl ass=true;if(b)
{this.__baseTyp e=b;this.__base PrototypePendin g=true}Sys.__up perCaseTypes[c.toUpperCase()]=this;if(d)
{this.__interfa ces=[];for(var a=2,f=arguments .length;a<f;a++ ){var
e=arguments[a];this.__interfa ces.push(e)}}re turn
this};Type.prot otype.registerI nterface=functi on(a)
{Sys.__upperCas eTypes[a.toUpperCase()]=this;this.prot otype.construct or=this;this.__ typeName=a;this .__interface=tr ue;return
this};Type.prot otype.resolveIn heritance=funct ion()
{if(this.__base PrototypePendin g){var
b=this.__baseTy pe;b.resolveInh eritance();for( var a in b.prototype){va r
c=b.prototype[a];if(!this.proto type[a])this.prototype[a]=c}delete
this.__baseProt otypePending}}; Type.getRootNam espaces=functio n(){return
Array.clone(Sys .__rootNamespac es)};Type.isCla ss=function(a){ if(typeof
a==="undefined" ||a===null)retu rn false;return !!
a.__class};Type .isInterface=fu nction(a){if(ty peof a==="undefined" ||
a===null)return false;return !!
a.__interface}; Type.isNamespac e=function(a){i f(typeof a==="undefined" ||
a===null)return false;return !!
a.__namespace}; Type.parse=func tion(typeName,n s){var fn;if(ns)
{fn=Sys.__upper CaseTypes[ns.getName().to UpperCase()
+"."+typeName.t oUpperCase()];return fn||null}if(!ty peName)return
null;if(!
Type.__htClasse s)Type.__htClas ses={};fn=Type. __htClasses[typeName];if(!
fn){fn=eval(typ eName);Type.__h tClasses[typeName]=fn}return
fn};Type.regist erNamespace=fun ction(f){var
d=window,c=f.sp lit(".");for(va r b=0;b<c.length; b++){var
e=c[b],a=d[e];if(!a){a=d[e]={__namespace:t rue,__typeName: c.slice(0,b
+1).join(".")}; if(b===0)Sys.__ rootNamespaces[Sys.__rootNames paces.length]=a;a.getName=fu nction()
{return
this.__typeName }}d=a}};window. Sys={__namespac e:true,__typeNa me:"Sys",getNam e:function()
{return "Sys"},__upperC aseTypes:
{}};Sys.__rootN amespaces=[Sys];Sys.IDisposabl e=function()
{};Sys.IDisposa ble.prototype={ };Sys.IDisposab le.registerInte rface("Sys.IDis posable");Sys.S tringBuilder=fu nction(a)
{this._parts=ty peof a!=="undefined" &&a!==null&&a!= =""?[a.toString()]:
[];this._value={} ;this._len=0};S ys.StringBuilde r.prototype={ap pend:function(a )
{this._parts[this._parts.len gth]=a},appendLine: function(a)
{this._parts[this._parts.len gth]=typeof a==="undefined" ||a===null||
a===""?"\r\n":a +"\r\n"},clear: function()
{this._parts=[];this._value={} ;this._len=0},i sEmpty:function ()
{if(this._parts .length===0)ret urn true;return
this.toString() ===""},toString :function(a){a= a||"";var
b=this._parts;i f(this._len!==b .length)
{this._value={} ;this._len=b.le ngth}var d=this._value;i f(typeof
d[a]==="undefined") {if(a!=="")for( var c=0;c<b.length; )if(typeof
b[c]==="undefined"| |b[c]===""||b[c]===null)b.splic e(c,1);else c+
+;d[a]=this._parts.jo in(a)}return
d[a]}};Sys.StringBu ilder.registerC lass("Sys.Strin gBuilder");if(!
window.XMLHttpR equest)window.X MLHttpRequest=f unction(){var
b=["Mxsml2.XMLHTTP .3.0","Msxml2.X MLHTTP"];for(var a=0,c=b.length; a<c;a+
+)try{return new ActiveXObject(b[a])}catch(d){}ret urn
null};Sys.Brows er={};Sys.Brows er.InternetExpl orer={};Sys.Bro wser.Firefox={} ;Sys.Browser.Sa fari={};Sys.Bro wser.Opera={};S ys.Browser.agen t=null;Sys.Brow ser.hasDebugger Statement=false ;Sys.Browser.na me=navigator.ap pName;Sys.Brows er.version=pars eFloat(navigato r.appVersion);i f(navigator.use rAgent.indexOf( "
MSIE ")>-1)
{Sys.Browser.ag ent=Sys.Browser .InternetExplor er;Sys.Browser. version=parseFl oat(navigator.u serAgent.match(/
MSIE (\d+\.\d+)/)[1]);Sys.Browser.h asDebuggerState ment=true}else
if(navigator.us erAgent.indexOf (" Firefox/")>-1)
{Sys.Browser.ag ent=Sys.Browser .Firefox;Sys.Br owser.version=p arseFloat(navig ator.userAgent. match(/
Firefox\/(\d+\.\d+)/)
[1]);Sys.Browser.n ame="Firefox";S ys.Browser.hasD ebuggerStatemen t=true}else
if(navigator.us erAgent.indexOf (" Safari/")>-1)
{Sys.Browser.ag ent=Sys.Browser .Safari;Sys.Bro wser.version=pa rseFloat(naviga tor.userAgent.m atch(/
Safari\/(\d+(\.\d+)?)/)[1]);Sys.Browser.n ame="Safari"}el se
if(navigator.us erAgent.indexOf ("Opera/")>-1)Sys.Browser.a gent=Sys.Browse r.Opera;Type.re gisterNamespace ("Sys.UI");Sys. _Debug=function ()
{};Sys._Debug.p rototype={_appe ndConsole:funct ion(a){if(typeo f Debug!
=="undefined"&& Debug.writeln)D ebug.writeln(a) ;if(window.cons ole&&window.con sole.log)window .console.log(a) ;if(window.oper a)window.opera. postError(a);if (window.debugSe rvice)window.de bugService.trac e(a)},_appendTr ace:function(b)
{var
a=document.getE lementById("Tra ceConsole");if( a&&a.tagName.to UpperCase()===" TEXTAREA")a.val ue
+=b+"\n"},asser t:function(c,a, b){if(!c){a=b&& this.assert.cal ler?
String.format(S ys.Res.assertFa iledCaller,a,th is.assert.calle r):String.forma t(Sys.Res.asser tFailed,a);if(c onfirm(String.f ormat(Sys.Res.b reakIntoDebugge r,a)))this.fail (a)}},clearTrac e:function()
{var
a=document.getE lementById("Tra ceConsole");if( a&&a.tagName.to UpperCase()===" TEXTAREA")a.val ue=""},fail:fun ction(message)
{this._appendCo nsole(message); if(Sys.Browser. hasDebuggerStat ement)eval("deb ugger")},trace: function(a)
{this._appendCo nsole(a);this._ appendTrace(a)} ,traceDump:func tion(a,b)
{var c=this._traceDu mp(a,b,true)},_ traceDump:funct ion(a,c,f,b,d){ c=c?
c:"traceDump";b =b?b:"";if(a=== null){this.trac e(b+c+":
null");return}s witch(typeof a){case "undefined":thi s.trace(b+c+":
Undefined");bre ak;case "number":ca se "string":ca se
"boolean":this. trace(b+c+":
"+a);break;defa ult:if(Date.isI nstanceOfType(a )||
RegExp.isInstan ceOfType(a)){th is.trace(b+c+":
"+a.toString()) ;break}if(!d)d=[];else if(Array.contai ns(d,a))
{this.trace(b+c +": ...");return}Ar ray.add(d,a);if (a==window||
a===document||w indow.HTMLEleme nt&&a instanceof HTMLElement||ty peof
a.nodeName==="s tring"){var k=a.tagName?a.t agName:"DomElem ent";if(a.id)k
+=" - "+a.id;this.tra ce(b+c+" {"+k+"}")}else{ var
i=Object.getTyp eName(a);this.t race(b+c+(typeo f i==="string"?" {"+i
+"}":""));if(b= ==""||f){b+=" ";var
e,j,l,g,h;if(Ar ray.isInstanceO fType(a)){j=a.l ength;for(e=0;e <j;e+
+)this._traceDu mp(a[e],"["+e+"]",f,b,d)}el se for(g in a){h=a[g];if(!
Function.isInst anceOfType(h))t his._traceDump( h,g,f,b,d)}}}Ar ray.remove(d,a) }}};Sys._Debug. registerClass(" Sys._Debug");Sy s.Debug=new
Sys._Debug;Sys. Debug.isDebug=f alse;function Sys$Enum$parse( c,e){var
a,b,i;if(e){a=t his.__lowerCase Values;if(!a)
{this.__lowerCa seValues=a={};v ar g=this.prototyp e;for(var f in
g)a[f.toLowerCase()]=g[f]}}else a=this.prototyp e;if(!this.__fl ags){i=e?
c.toLowerCase() :c;b=a[i.trim()];if(typeof b!=="number")th row
Error.argument( "value",String. format(Sys.Res. enumInvalidValu e,c,this.__type Name));return
b}else{var h=(e?c.toLowerC ase():c).split( ","),j=0;for(va r
d=h.length-1;d>=0;d--){var k=h[d].trim();b=a[k];if(typeof b!
=="number")thro w
Error.argument( "value",String. format(Sys.Res. enumInvalidValu e,c.split(",")
[d].trim(),this.__ typeName));j|=b }return j}}function Sys$Enum
$toString(c){if (typeof c==="undefined" ||c===null)retu rn
this.__string;v ar d=this.prototyp e,a;if(!this.__ flags||c===0){f or(a in
d)if(d[a]===c)return a}else{var b=this.__sorted Values;if(!b)
{b=[];for(a in d)b[b.length]={key:a,value:d[a]};b.sort(functi on(a,b)
{return a.value-b.value});this. __sortedValues= b}var
e=[],g=c;for(a=b.le ngth-1;a>=0;a--){var
h=b[a],f=h.value;if(f ===0)continue;i f((f&c)===f){e[e.length]=h.key;g-
=f;if(g===0)bre ak}}if(e.length &&g===0)retu rn e.reverse().joi n(",
")}return ""}Type.prototy pe.registerEnum =function(b,c)
{Sys.__upperCas eTypes[b.toUpperCase()]=this;for(var a in
this.prototype) this[a]=this.prototype[a];this.__typeNam e=b;this.parse= Sys
$Enum$parse;thi s.__string=this .toString();thi s.toString=Sys$ Enum
$toString;this. __flags=c;this. __enum=true};Ty pe.isEnum=funct ion(a)
{if(typeof a==="undefined" ||a===null)retu rn false;return !!
a.__enum};Type. isFlags=functio n(a){if(typeof a==="undefined" ||
a===null)return false;return !!
a.__flags};Sys. EventHandlerLis t=function()
{this._list={}} ;Sys.EventHandl erList.prototyp e={addHandler:f unction(b,a)
{Array.add(this ._getEvent(b,tr ue),a)},removeH andler:function (c,b){var
a=this._getEven t(c);if(!
a)return;Array. remove(a,b)},ge tHandler:functi on(b){var
a=this._getEven t(b);if(!a||a.l ength===0)retur n
null;a=Array.cl one(a);return function(c,d){f or(var b=0,e=a.length; b<e;b
++)a[b](c,d)}},_getEve nt:function(a,b ){if(!this._lis t[a]){if(!b)return
null;this._list[a]=[]}return
this._list[a]}};Sys.EventHan dlerList.regist erClass("Sys.Ev entHandlerList" );Sys.EventArgs =function()
{};Sys.EventArg s.registerClass ("Sys.EventArgs ");Sys.EventArg s.Empty=new
Sys.EventArgs;S ys.CancelEventA rgs=function()
{Sys.CancelEven tArgs.initializ eBase(this);thi s._cancel=false };Sys.CancelEve ntArgs.prototyp e={get_cancel:f unction()
{return this._cancel},s et_cancel:funct ion(a)
{this._cancel=a }};Sys.CancelEv entArgs.registe rClass("Sys.Can celEventArgs",S ys.EventArgs);S ys.INotifyPrope rtyChange=funct ion()
{};Sys.INotifyP ropertyChange.p rototype={};Sys .INotifyPropert yChange.registe rInterface("Sys .INotifyPropert yChange");Sys.P ropertyChangedE ventArgs=functi on(a)
{Sys.PropertyCh angedEventArgs. initializeBase( this);this._pro pertyName=a};Sy s.PropertyChang edEventArgs.pro totype={get_pro pertyName:funct ion()
{return
this._propertyN ame}};Sys.Prope rtyChangedEvent Args.registerCl ass("Sys.Proper tyChangedEventA rgs",Sys.EventA rgs);Sys.INotif yDisposing=func tion()
{};Sys.INotifyD isposing.protot ype={};Sys.INot ifyDisposing.re gisterInterface ("Sys.INotifyDi sposing");Sys.C omponent=functi on()
{if(Sys.Applica tion)Sys.Applic ation.registerD isposableObject (this)};Sys.Com ponent.prototyp e={_id:null,_in itialized:false ,_updating:fals e,get_events:fu nction()
{if(!this._even ts)this._events =new Sys.EventHandle rList;return
this._events},g et_id:function( ){return this._id},set_i d:function(a)
{this._id=a},ge t_isInitialized :function(){ret urn
this._initializ ed},get_isUpdat ing:function(){ return
this._updating} ,add_disposing: function(a)
{this.get_event s().addHandler( "disposing",a)} ,remove_disposi ng:function(a)
{this.get_event s().removeHandl er("disposing", a)},add_propert yChanged:functi on(a)
{this.get_event s().addHandler( "propertyChange d",a)},remove_p ropertyChanged: function(a)
{this.get_event s().removeHandl er("propertyCha nged",a)},begin Update:function ()
{this._updating =true},dispose: function(){if(t his._events){va r
a=this._events. getHandler("dis posing");if(a)a (this,Sys.Event Args.Empty)}del ete
this._events;Sy s.Application.u nregisterDispos ableObject(this );Sys.Applicati on.removeCompon ent(this)},endU pdate:function( )
{this._updating =false;if(!
this._initializ ed)this.initial ize();this.upda ted()},initiali ze:function()
{this._initiali zed=true},raise PropertyChanged :function(b){if (!
this._events)re turn;var
a=this._events. getHandler("pro pertyChanged"); if(a)a(this,new
Sys.PropertyCha ngedEventArgs(b ))},updated:fun ction()
{}};Sys.Compone nt.registerClas s("Sys.Componen t",null,Sys.IDi sposable,Sys.IN otifyPropertyCh ange,Sys.INotif yDisposing);fun ction
Sys$Component$_ setProperties(a ,i){var
d,j=Object.getT ype(a),e=j===Ob ject||
j===Sys.UI.DomE lement,h=Sys.Co mponent.isInsta nceOfType(a)&&!
a.get_isUpdatin g();if(h)a.begi nUpdate();for(v ar c in i){var b=i[c],f=e?
null:a["get_"+c];if(e||typeof f!=="function") {var k=a[c];if(!b||typeof
b!=="object"||e &&!k)a[c]=b;else Sys$Component
$_setProperties (k,b)}else{var l=a["set_"+c];if(typeof
l==="function") l.apply(a,[b]);else if(b instanceof Array)
{d=f.apply(a);f or(var g=0,m=d.length, n=b.length;g<n; g++,m+
+)d[m]=b[g]}else if(typeof b==="object"&&O bject.getType(b )===Object)
{d=f.apply(a);S ys$Component
$_setProperties (d,b)}}}if(h)a. endUpdate()}fun ction Sys$Component
$_setReferences (c,b){for(var a in b){var e=c["set_"+a],d=
$find(b[a]);e.apply(c,[d])}}var
$create=Sys.Com ponent.create=f unction(h,f,d,c ,g){var a=g?new h(g):new
h,b=Sys.Applica tion,i=b.get_is CreatingCompone nts();a.beginUp date();if(f)Sys
$Component$_set Properties(a,f) ;if(d)for(var e in d)a["add_"+e]
(d[e]);if(a.get_id() )b.addComponent (a);if(i)
{b._createdComp onents[b._createdCompo nents.length]=a;if(c)b._addC omponentToSecon dPass(a,c);else
a.endUpdate()}e lse{if(c)Sys$Co mponent
$_setReferences (a,c);a.endUpda te()}return
a};Sys.UI.Mouse Button=function (){throw
Error.notImplem ented()};Sys.UI .MouseButton.pr ototype={leftBu tton:
0,middleButton: 1,rightButton:
2};Sys.UI.Mouse Button.register Enum("Sys.UI.Mo useButton");Sys .UI.Key=functio n()
{throw Error.notImplem ented()};Sys.UI .Key.prototype= {backspace:8,ta b:
9,enter:13,esc: 27,space:32,pag eUp:33,pageDown :34,end:35,home :36,left:
37,up:38,right: 39,down:40,del:
127};Sys.UI.Key .registerEnum(" Sys.UI.Key");Sy s.UI.Point=func tion(a,b)
{this.x=a;this. y=b};Sys.UI.Poi nt.registerClas s("Sys.UI.Point ");Sys.UI.Bound s=function(c,d, b,a)
{this.x=c;this. y=d;this.height =a;this.width=b };Sys.UI.Bounds .registerClass( "Sys.UI.Bounds" );Sys.UI.DomEve nt=function(d)
{var a=d;this.rawEve nt=a;this.altKe y=a.altKey;if(t ypeof a.button!
=="undefined")t his.button=type of a.which!=="unde fined"?
a.button:a.butt on===4?Sys.UI.M ouseButton.midd leButton:a.butt on===2?
Sys.UI.MouseBut ton.rightButton :Sys.UI.MouseBu tton.leftButton ;if(a.type==="k eypress")this.c harCode=a.charC ode||
a.keyCode;else if(a.keyCode&&a .keyCode===46)t his.keyCode=127 ;else
this.keyCode=a. keyCode;this.cl ientX=a.clientX ;this.clientY=a .clientY;this.c trlKey=a.ctrlKe y;this.target=a .target?
a.target:a.srcE lement;if(typeo f a.offsetX!=="un defined"&&typeo f
a.offsetY!=="un defined")
{this.offsetX=a .offsetX;this.o ffsetY=a.offset Y}else
if(this.target& &this.target.no deType!==3&&typ eof a.clientX==="nu mber")
{var
b=Sys.UI.DomEle ment.getLocatio n(this.target), c=Sys.UI.DomEle ment._getWindow (this.target);t his.offsetX=(c. pageXOffset||
0)+a.clientX-b.x;this.offset Y=(c.pageYOffse t||0)+a.clientY-
b.y}this.screen X=a.screenX;thi s.screenY=a.scr eenY;this.shift Key=a.shiftKey; this.type=a.typ e};Sys.UI.DomEv ent.prototype={ preventDefault: function()
{if(this.rawEve nt.preventDefau lt)this.rawEven t.preventDefaul t();else
if(window.event )this.rawEvent. returnValue=fal se},stopPropaga tion:function()
{if(this.rawEve nt.stopPropagat ion)this.rawEve nt.stopPropagat ion();else
if(window.event )this.rawEvent. cancelBubble=tr ue}};Sys.UI.Dom Event.registerC lass("Sys.UI.Do mEvent");var
$addHandler=Sys .UI.DomEvent.ad dHandler=functi on(a,d,e){if(!
a._events)a._ev ents={};var c=a._events[d];if(!c)a._event s[d]=c=[];var
b;if(a.addEvent Listener){b=fun ction(b){return e.call(a,new
Sys.UI.DomEvent (b))};a.addEven tListener(d,b,f alse)}else
if(a.attachEven t){b=function() {var
b={};try{b=Sys. UI.DomElement._ getWindow(a).ev ent}catch(c){}r eturn
e.call(a,new
Sys.UI.DomEvent (b))};a.attachE vent("on"+d,b)} c[c.length]={handler:e,bro wserHandler:b}} ,
$addHandlers=Sy s.UI.DomEvent.a ddHandlers=func tion(e,d,c){for (var b in
d){var a=d[b];if(c)a=Functio n.createDelegat e(c,a);$addHand ler(e,b,a)}},
$clearHandlers= Sys.UI.DomEvent .clearHandlers= function(a){if( a._events)
{var e=a._events;for (var b in e){var d=e[b];for(var
c=d.length-1;c>=0;c--)
$removeHandler( a,b,d[c].handler)}a._ev ents=null}},
$removeHandler= Sys.UI.DomEvent .removeHandler= function(a,e,f) {var
d=null,c=a._eve nts[e];for(var b=0,g=c.length; b<g;b+
+)if(c[b].handler===f)
{d=c[b].browserHandler ;break}if(a.rem oveEventListene r)a.removeEvent Listener(e,d,fa lse);else
if(a.detachEven t)a.detachEvent ("on"+e,d);c.sp lice(b,
1)};Sys.UI.DomE lement=function ()
{};Sys.UI.DomEl ement.registerC lass("Sys.UI.Do mElement");Sys. UI.DomElement.a ddCssClass=func tion(a,b)
{if(!
Sys.UI.DomEleme nt.containsCssC lass(a,b))if(a. className==="") a.className=b;e lse
a.className+=" "+b};Sys.UI.Dom Element.contain sCssClass=funct ion(b,a)
{return Array.contains( b.className.spl it("
"),a)};Sys.UI.D omElement.getBo unds=function(a ){var
b=Sys.UI.DomEle ment.getLocatio n(a);return new
Sys.UI.Bounds(b .x,b.y,a.offset Width||0,a.offs etHeight||0)};v ar
$get=Sys.UI.Dom Element.getElem entById=functio n(f,e){if(!e)re turn
document.getEle mentById(f);if( e.getElementByI d)return
e.getElementByI d(f);var c=[],d=e.childNodes ;for(var b=0;b<d.length; b++)
{var a=d[b];if(a.nodeType= =1)c[c.length]=a}while(c.leng th)
{a=c.shift();if (a.id==f)return a;d=a.childNode s;for(b=0;b<d.l ength;b++)
{a=d[b];if(a.nodeType= =1)c[c.length]=a}}return
null};switch(Sy s.Browser.agent ){case
Sys.Browser.Int ernetExplorer:S ys.UI.DomElemen t.getLocation=f unction(a)
{if(a.self||a.n odeType===9)ret urn new Sys.UI.Point(0, 0);var
b=a.getBounding ClientRect();if (!b)return new Sys.UI.Point(0, 0);var
d=a.ownerDocume nt.documentElem ent,e=b.left-2+d.scrollLeft, f=b.top-2+d.scrollTop;t ry{var
c=a.ownerDocume nt.parentWindow .frameElement|| null;if(c){var
g=c.frameBorder ==="0"||c.frame Border==="no"?2 :0;e+=g;f+=g}}c atch(h)
{}return new Sys.UI.Point(e, f)};break;case
Sys.Browser.Saf ari:Sys.UI.DomE lement.getLocat ion=function(c)
{if(c.window&&c .window===c||c. nodeType===9)re turn new
Sys.UI.Point(0, 0);var f=0,g=0,j=null, e=null,b;for(va r a=c;a;j=a,
(e=b,a=a.offset Parent)){b=Sys. UI.DomElement._ getCurrentStyle (a);var
d=a.tagName;if( (a.offsetLeft|| a.offsetTop)&&( d!=="BODY"||(!e ||
e.position!=="a bsolute"))){f+= a.offsetLeft;g
+=a.offsetTop}} b=Sys.UI.DomEle ment._getCurren tStyle(c);var h=b?
b.position:null ;if(!h||h!=="ab solute")for(var
a=c.parentNode; a;a=a.parentNod e){d=a.tagName; if(d!=="BODY"&& d!
=="HTML"&&(a.sc rollLeft||a.scr ollTop)){f-=a.scrollLeft|| 0;g-
=a.scrollTop||0 }b=Sys.UI.DomEl ement._getCurre ntStyle(a);var i=b?
b.position:null ;if(i&&i==="abs olute")break}re turn new
Sys.UI.Point(f, g)};break;case
Sys.Browser.Ope ra:Sys.UI.DomEl ement.getLocati on=function(b)
{if(b.window&&b .window===b||b. nodeType===9)re turn new
Sys.UI.Point(0, 0);var d=0,e=0,i=null; for(var
a=b;a;i=a,a=a.o ffsetParent){va r f=a.tagName;d+= a.offsetLeft||0 ;e
+=a.offsetTop|| 0}var g=b.style.posit ion,c=g&&g!=="s tatic";for(var
a=b.parentNode; a;a=a.parentNod e){f=a.tagName; if(f!=="BODY"&& f!
=="HTML"&&(a.sc rollLeft||
a.scrollTop)&&( c&&(a.style.ove rflow==="scroll "||
a.style.overflo w==="auto"))){d-=a.scrollLeft|| 0;e-=a.scrollTop||0 }var
h=a&&a.style?a. style.position: null;c=c||h&&h! =="static"}retu rn new
Sys.UI.Point(d, e)};break;defau lt:Sys.UI.DomEl ement.getLocati on=function(d)
{if(d.window&&d .window===d||d. nodeType===9)re turn new
Sys.UI.Point(0, 0);var e=0,f=0,i=null, g=null,b=null;f or(var a=d;a;i=a,
(g=b,a=a.offset Parent)){var
c=a.tagName;b=S ys.UI.DomElemen t._getCurrentSt yle(a);if((a.of fsetLeft||
a.offsetTop)&&! (c==="BODY"&&(! g||g.position!= ="absolute"))){ e
+=a.offsetLeft; f+=a.offsetTop} if(i!==null&&b) {if(c!=="TABLE" &&c!
=="TD"&&c!=="HT ML"){e+=parseIn t(b.borderLeftW idth)||0;f
+=parseInt(b.bo rderTopWidth)||
0}if(c==="TABLE "&&(b.position= =="relative"||b .position==="ab solute")){e
+=parseInt(b.ma rginLeft)||0;f+ =parseInt(b.mar ginTop)||
0}}}b=Sys.UI.Do mElement._getCu rrentStyle(d);v ar h=b?
b.position:null ;if(!h||h!=="ab solute")for(var
a=d.parentNode; a;a=a.parentNod e){c=a.tagName; if(c!=="BODY"&& c!
=="HTML"&&(a.sc rollLeft||a.scr ollTop)){e-=a.scrollLeft|| 0;f-
=a.scrollTop||0 ;b=Sys.UI.DomEl ement._getCurre ntStyle(a);if(b ){e
+=parseInt(b.bo rderLeftWidth)| |0;f+=parseInt( b.borderTopWidt h)||
0}}}return new
Sys.UI.Point(e, f)}}Sys.UI.DomE lement.removeCs sClass=function (d,c){var
a=" "+d.classNa me+" ",b=a.index Of(" "+c+"
");if(b>=0)d.cl assName=(a.subs tr(0,b)+" "+a.substring(b +c.length
+1,a.length)).t rim()};Sys.UI.D omElement.setLo cation=function (b,c,d)
{var a=b.style;a.pos ition="absolute ";a.left=c+"px" ;a.top=d
+"px"};Sys.UI.D omElement.toggl eCssClass=funct ion(b,a)
{if(Sys.UI.DomE lement.contains CssClass(b,a))S ys.UI.DomElemen t.removeCssClas s(b,a);else
Sys.UI.DomEleme nt.addCssClass( b,a)};Sys.UI.Do mElement.getVis ibilityMode=fun ction(a)
{return a._visibilityMo de===Sys.UI.Vis ibilityMode.hid e?
Sys.UI.Visibili tyMode.hide:Sys .UI.VisibilityM ode.collapse};S ys.UI.DomElemen t.setVisibility Mode=function(a ,b)
{Sys.UI.DomElem ent._ensureOldD isplayMode(a);i f(a._visibility Mode!==b)
{a._visibilityM ode=b;if(Sys.UI .DomElement.get Visible(a)===fa lse)if(a._visib ilityMode===Sys .UI.VisibilityM ode.hide)a.styl e.display=a._ol dDisplayMode;el se
a.style.display ="none";a._visi bilityMode=b}}; Sys.UI.DomEleme nt.getVisible=f unction(b)
{var a=b.currentStyl e||Sys.UI.DomEl ement._getCurre ntStyle(b);if(!
a)return true;return a.visibility!== "hidden"&&a.dis play!
=="none"};Sys.U I.DomElement.se tVisible=functi on(a,b){if(b!
==Sys.UI.DomEle ment.getVisible (a))
{Sys.UI.DomElem ent._ensureOldD isplayMode(a);a .style.visibili ty=b?"visible": "hidden";if (b||
a._visibilityMo de===Sys.UI.Vis ibilityMode.hid e)a.style.displ ay=a._oldDispla yMode;else
a.style.display ="none"}};Sys.U I.DomElement._e nsureOldDisplay Mode=function(a )
{if(!a._oldDisp layMode){var b=a.currentStyl e||
Sys.UI.DomEleme nt._getCurrentS tyle(a);a._oldD isplayMode=b?
b.display:null; if(!a._oldDispl ayMode||
a._oldDisplayMo de==="none")swi tch(a.tagName.t oUpperCase()){c ase
"DIV":case "P":case "ADDRESS":c ase "BLOCKQUOTE":ca se "BODY":case
"COL":case "COLGROUP": case "DD":case "DL":case "DT":case
"FIELDSET": case "FORM":case "H1":case "H2":case "H3":case "H4":case
"H5":case "H6":case "HR":case "IFRAME":ca se "LEGEND":ca se "OL":case
"PRE":case "TABLE":cas e "TD":case "TH":case "TR":case
"UL":a._oldDisp layMode="block" ;break;case "LI":a._oldDisp layMode="list-
item";break;def ault:a._oldDisp layMode="inline "}}};Sys.UI.Dom Element._getWin dow=function(a)
{var b=a.ownerDocume nt||a.document| |a;return b.defaultView||
b.parentWindow} ;Sys.UI.DomElem ent._getCurrent Style=function( a)
{if(a.nodeType= ==3)return null;var
c=Sys.UI.DomEle ment._getWindow (a);if(a.docume ntElement)a=a.d ocumentElement; var
b=c&&a!==c&&c.g etComputedStyle ?
c.getComputedSt yle(a,null):a.c urrentStyle||a. style;if(!
b&&Sys.Browser. agent===Sys.Bro wser.Safari&&a. style){var
g=a.style.displ ay,f=a.style.po sition;a.style. position="absol ute";a.style.di splay="block";v ar
e=c.getComputed Style(a,null);a .style.display= g;a.style.posit ion=f;b={};for( var
d in e)b[d]=e[d];b.display="non e"}return b};Sys.IContain er=function()
{};Sys.IContain er.prototype={} ;Sys.IContainer .registerInterf ace("Sys.IConta iner");Sys._Scr iptLoader=funct ion()
{this._scriptsT oLoad=null;this ._scriptLoadedD elegate=Functio n.createDelegat e(this,this._sc riptLoadedHandl er)};Sys._Scrip tLoader.prototy pe={dispose:fun ction()
{this._stopLoad ing();if(this._ events)delete
this._events;th is._scriptLoade dDelegate=null} ,loadScripts:fu nction(a,c,d,b)
{this._loading= true;this._allS criptsLoadedCal lback=c;this._s criptLoadFailed Callback=d;this ._scriptLoadTim eoutCallback=b; if(a>0)this._ti meoutCookie=win dow.setTimeout( Function.create Delegate(this,t his._scriptLoad TimeoutHandler) ,a*1000);this._ loadScriptsInte rnal()},notifyS criptLoaded:fun ction()
{if(!this._load ing)return;this ._currentTask._ notified+
+;if(Sys.Browse r.agent===Sys.B rowser.Safari)i f(this._current Task._notified= ==1)window.setT imeout(Function .createDelegate (this,function( )
{this._scriptLo adedHandler(thi s._currentTask. get_scriptEleme nt(),true)}),
0)},queueCustom ScriptTag:funct ion(a){if(!
this._scriptsTo Load)this._scri ptsToLoad=[];Array.add(this ._scriptsToLoad ,a)},queueScrip tBlock:function (a)
{if(!
this._scriptsTo Load)this._scri ptsToLoad=[];Array.add(this ._scriptsToLoad ,
{text:a})},queu eScriptReferenc e:function(a){i f(!
this._scriptsTo Load)this._scri ptsToLoad=[];Array.add(this ._scriptsToLoad ,
{src:a})},_crea teScriptElement :function(c){va r
a=document.crea teElement("SCRI PT");a.type="te xt/javascript";for (var b
in c)a[b]=c[b];return a},_loadScripts Internal:functi on()
{if(this._scrip tsToLoad&&this. _scriptsToLoad. length>0){var
b=Array.dequeue (this._scriptsT oLoad),a=this._ createScriptEle ment(b);if(a.te xt&&Sys.Browser .agent===Sys.Br owser.Safari)
{a.innerHTML=a. text;delete a.text}if(typeo f b.src==="string ")
{this._currentT ask=new
Sys._ScriptLoad erTask(a,this._ scriptLoadedDel egate);this._cu rrentTask.execu te()}else{docum ent.getElements ByTagName("HEAD ")
[0].appendChild(a) ;var d=this;window.s etTimeout(funct ion()
{Sys._ScriptLoa der._clearScrip t(a);d._loadScr iptsInternal()} ,
0)}}else{var
c=this._allScri ptsLoadedCallba ck;this._stopLo ading();if(c)c( this)}},_raiseE rror:function(a )
{var
c=this._scriptL oadFailedCallba ck,b=this._curr entTask.get_scr iptElement();th is._stopLoading ();if(c)c(this, b,a);else
throw
Sys._ScriptLoad er._errorScript LoadFailed(b.sr c,a)},_scriptLo adedHandler:fun ction(a,b)
{if(b&&this._cu rrentTask._noti fied)if(this._c urrentTask._not ified>1)this._r aiseError(true) ;else{Array.add (Sys._ScriptLoa der._getLoadedS cripts(),a.src) ;this._currentT ask.dispose();t his._currentTas k=null;this._lo adScriptsIntern al()}else
this._raiseErro r(false)},_scri ptLoadTimeoutHa ndler:function( ){var
a=this._scriptL oadTimeoutCallb ack;this._stopL oading();if(a)a (this)},_stopLo ading:function( )
{if(this._timeo utCookie)
{window.clearTi meout(this._tim eoutCookie);thi s._timeoutCooki e=null}if(this. _currentTask)
{this._currentT ask.dispose();t his._currentTas k=null}this._sc riptsToLoad=nul l;this._loading =null;this._all ScriptsLoadedCa llback=null;thi s._scriptLoadFa iledCallback=nu ll;this._script LoadTimeoutCall back=null}};Sys ._ScriptLoader. registerClass(" Sys._ScriptLoad er",null,Sys.ID isposable);Sys. _ScriptLoader.g etInstance=func tion()
{var a=Sys._ScriptLo ader._activeIns tance;if(!
a)a=Sys._Script Loader._activeI nstance=new Sys._ScriptLoad er;return
a};Sys._ScriptL oader.isScriptL oaded=function( b){var
a=document.crea teElement("scri pt");a.src=b;re turn
Array.contains( Sys._ScriptLoad er._getLoadedSc ripts(),a.src)} ;Sys._ScriptLoa der.readLoadedS cripts=function ()
{if(!Sys._Scrip tLoader._refere ncedScripts){va r
b=Sys._ScriptLo ader._reference dScripts=[],c=document.get ElementsByTagNa me("SCRIPT");fo r(i=c.length-1;i>=0;i--)
{var d=c[i],a=d.src;if(a.l ength)if(!
Array.contains( b,a))Array.add( b,a)}}};Sys._Sc riptLoader._cle arScript=functi on(a)
{if(!
Sys.Debug.isDeb ug)a.parentNode .removeChild(a) };Sys._ScriptLo ader._errorScri ptLoadFailed=fu nction(b,d)
{var a;if(d)a=Sys.Re s.scriptLoadMul tipleCallbacks; else
a=Sys.Res.scrip tLoadFailed;var e="Sys.ScriptLo adFailedExcepti on:
"+String.format (a,b),c=Error.c reate(e,
{name:"Sys.Scri ptLoadFailedExc eption","script Url":b});c.popS tackFrame();ret urn
c};Sys._ScriptL oader._getLoade dScripts=functi on(){if(!
Sys._ScriptLoad er._referencedS cripts)
{Sys._ScriptLoa der._referenced Scripts=[];Sys._ScriptLoa der.readLoadedS cripts()}return
Sys._ScriptLoad er._referencedS cripts};Sys._Sc riptLoaderTask= function(b,a)
{this._scriptEl ement=b;this._c ompletedCallbac k=a;this._notif ied=0};Sys._Scr iptLoaderTask.p rototype={get_s criptElement:fu nction()
{return this._scriptEle ment},dispose:f unction()
{if(this._dispo sed)return;this ._disposed=true ;this._removeSc riptElementHand lers();Sys._Scr iptLoader._clea rScript(this._s criptElement);t his._scriptElem ent=null},execu te:function()
{this._addScrip tElementHandler s();document.ge tElementsByTagN ame("HEAD")
[0].appendChild(th is._scriptEleme nt)},_addScript ElementHandlers :function()
{this._scriptLo adDelegate=Func tion.createDele gate(this,this. _scriptLoadHand ler);if(Sys.Bro wser.agent!
==Sys.Browser.I nternetExplorer )
{this._scriptEl ement.readyStat e="loaded";
$addHandler(thi s._scriptElemen t,"load",this._ scriptLoadDeleg ate)}else
$addHandler(thi s._scriptElemen t,"readystatech ange",this._scr iptLoadDelegate );if(this._scri ptElement.addEv entListener)
{this._scriptEr rorDelegate=Fun ction.createDel egate(this,this ._scriptErrorHa ndler);this._sc riptElement.add EventListener(" error",this._sc riptErrorDelega te,false)}},_re moveScriptEleme ntHandlers:func tion()
{if(this._scrip tLoadDelegate){ var
a=this.get_scri ptElement();if( Sys.Browser.age nt!
==Sys.Browser.I nternetExplorer )
$removeHandler( a,"load",this._ scriptLoadDeleg ate);else
$removeHandler( a,"readystatech ange",this._scr iptLoadDelegate );if(this._scri ptErrorDelegate )
{this._scriptEl ement.removeEve ntListener("err or",this._scrip tErrorDelegate, false);this._sc riptErrorDelega te=null}this._s criptLoadDelega te=null}},_scri ptErrorHandler: function()
{if(this._dispo sed)return;this ._completedCall back(this.get_s criptElement(), false)},_script LoadHandler:fun ction()
{if(this._dispo sed)return;var
a=this.get_scri ptElement();if( a.readyState!== "loaded"&&a.rea dyState!
=="complete")re turn;var b=this;window.s etTimeout(funct ion()
{b._completedCa llback(a,true)} ,
0)}};Sys._Scrip tLoaderTask.reg isterClass("Sys ._ScriptLoaderT ask",null,Sys.I Disposable);Sys .ApplicationLoa dEventArgs=func tion(b,a)
{Sys.Applicatio nLoadEventArgs. initializeBase( this);this._com ponents=b;this. _isPartialLoad= a};Sys.Applicat ionLoadEventArg s.prototype={ge t_components:fu nction()
{return this._component s},get_isPartia lLoad:function( ){return
this._isPartial Load}};Sys.Appl icationLoadEven tArgs.registerC lass("Sys.Appli cationLoadEvent Args",Sys.Event Args);Sys._Appl ication=functio n()
{Sys._Applicati on.initializeBa se(this);this._ disposableObjec ts=[];this._componen ts={};this._cre atedComponents=[];this._secondPa ssComponents=[];this._unloadHa ndlerDelegate=F unction.createD elegate(this,th is._unloadHandl er);this._loadH andlerDelegate= Function.create Delegate(this,t his._loadHandle r);Sys.UI.DomEv ent.addHandler( window,"unload" ,this._unloadHa ndlerDelegate); Sys.UI.DomEvent .addHandler(win dow,"load",this ._loadHandlerDe legate)};Sys._A pplication.prot otype={_creatin gComponents:fal se,_disposing:f alse,get_isCrea tingComponents: function()
{return this._creatingC omponents},add_ load:function(a )
{this.get_event s().addHandler( "load",a)},remo ve_load:functio n(a)
{this.get_event s().removeHandl er("load",a)},a dd_init:functio n(a)
{if(this._initi alized)a(this,S ys.EventArgs.Em pty);else
this.get_events ().addHandler(" init",a)},remov e_init:function (a)
{this.get_event s().removeHandl er("init",a)},a dd_unload:funct ion(a)
{this.get_event s().addHandler( "unload",a)},re move_unload:fun ction(a)
{this.get_event s().removeHandl er("unload",a)} ,addComponent:f unction(a)
{this._componen ts[a.get_id()]=a},beginCreate Components:func tion()
{this._creating Components=true },dispose:funct ion(){if(!this. _disposing)
{this._disposin g=true;if(windo w.pageUnload)wi ndow.pageUnload (this,Sys.Event Args.Empty);var
c=this.get_even ts().getHandler ("unload");if(c )c(this,Sys.Eve ntArgs.Empty);v ar
b=Array.clone(t his._disposable Objects);for(va r a=0,e=b.length; a<e;a+
+)b[a].dispose();Arra y.clear(this._d isposableObject s);Sys.UI.DomEv ent.removeHandl er(window,"unlo ad",this._unloa dHandlerDelegat e);if(this._loa dHandlerDelegat e)
{Sys.UI.DomEven t.removeHandler (window,"load", this._loadHandl erDelegate);thi s._loadHandlerD elegate=null}va r
d=Sys._ScriptLo ader.getInstanc e();if(d)d.disp ose();Sys._Appl ication.callBas eMethod(this,"d ispose")}},endC reateComponents :function()
{var b=this._secondP assComponents;f or(var a=0,d=b.length; a<d;a++){var
c=b[a].component;Sys$ Component
$_setReferences (c,b[a].references);c. endUpdate()}thi s._secondPassCo mponents=[];this._creating Components=fals e},findComponen t:function(b,a)
{return a?Sys.IContaine r.isInstanceOfT ype(a)?a.findCo mponent(b):a[b]||
null:Sys.Applic ation._componen ts[b]||null},getComp onents:function ()
{var a=[],b=this._compon ents;for(var c in b)a[a.length]=b[c];return
a},initialize:f unction(){if(!t his._initialize d&&!this._initi alizing)
{this._initiali zing=true;windo w.setTimeout(Fu nction.createDe legate(this,thi s._doInitialize ),
0)}},notifyScri ptLoaded:functi on(){var
a=Sys._ScriptLo ader.getInstanc e();if(a)a.noti fyScriptLoaded( )},registerDisp osableObject:fu nction(a)
{if(!
this._disposing )this._disposab leObjects[this._disposabl eObjects.length]=a},raiseLoad:f unction()
{var b=this.get_even ts().getHandler ("load"),a=n ew
Sys.Application LoadEventArgs(A rray.clone(this ._createdCompon ents),!
this._initializ ing);if(b)b(thi s,a);if(window. pageLoad)window .pageLoad(this, a);this._create dComponents=[]},removeCompone nt:function(b)
{var a=b.get_id();if (a)delete
this._component s[a]},unregisterDis posableObject:f unction(a){if(!
this._disposing )Array.remove(t his._disposable Objects,a)},_ad dComponentToSec ondPass:functio n(b,a)
{this._secondPa ssComponents[this._secondPas sComponents.len gth]={component:b,r eferences:a}},_ doInitialize:fu nction()
{Sys._Applicati on.callBaseMeth od(this,"initia lize");var
a=this.get_even ts().getHandler ("init");if( a)
{this.beginCrea teComponents(); a(this,Sys.Even tArgs.Empty);th is.endCreateCom ponents()}this. raiseLoad();thi s._initializing =false},_loadHa ndler:function( )
{if(this._loadH andlerDelegate)
{Sys.UI.DomEven t.removeHandler (window,"load", this._loadHandl erDelegate);thi s._loadHandlerD elegate=null}th is.initialize() },_unloadHandle r:function()
{this.dispose() }};Sys._Applica tion.registerCl ass("Sys._Appli cation",Sys.Com ponent,Sys.ICon tainer);Sys.App lication=new
Sys._Applicatio n;var
$find=Sys.Appli cation.findComp onent;Type.regi sterNamespace(" Sys.Net");Sys.N et.WebRequestEx ecutor=function ()
{this._webReque st=null;this._r esultObject=nul l};Sys.Net.WebR equestExecutor. prototype={get_ webRequest:func tion()
{return this._webReques t},_set_webRequ est:function(a)
{this._webReque st=a},get_start ed:function(){t hrow
Error.notImplem ented()},get_re sponseAvailable :function(){thr ow
Error.notImplem ented()},get_ti medOut:function (){throw
Error.notImplem ented()},get_ab orted:function( ){throw
Error.notImplem ented()},get_re sponseData:func tion(){throw
Error.notImplem ented()},get_st atusCode:functi on(){throw
Error.notImplem ented()},get_st atusText:functi on(){throw
Error.notImplem ented()},get_xm l:function(){th row
Error.notImplem ented()},get_ob ject:function() {if(!
this._resultObj ect)this._resul tObject=Sys.Ser ialization.Java ScriptSerialize r.deserialize(t his.get_respons eData());return
this._resultObj ect},executeReq uest:function() {throw
Error.notImplem ented()},abort: function(){thro w
Error.notImplem ented()},getRes ponseHeader:fun ction(){throw
Error.notImplem ented()},getAll ResponseHeaders :function(){thr ow
Error.notImplem ented()}};Sys.N et.WebRequestEx ecutor.register Class("Sys.Net. WebRequestExecu tor");Sys.Net.X MLDOM=function( d)
{if(!window.DOM Parser){var c=["Msxml2.DOMDocu ment.
3.0","Msxml2.DO MDocument"];for(var b=0,f=c.length; b<f;b++)try{va r
a=new
ActiveXObject(c[b]);a.async=false ;a.loadXML(d);a .setProperty("S electionLanguag e","XPath");ret urn
a}catch(g){}}el se try{var e=new window.DOMParse r;return
e.parseFromStri ng(d,"text/xml")}catch(g){ }return
null};Sys.Net.X MLHttpExecutor= function()
{Sys.Net.XMLHtt pExecutor.initi alizeBase(this) ;var
a=this;this._xm lHttpRequest=nu ll;this._webReq uest=null;this. _responseAvaila ble=false;this. _timedOut=false ;this._timer=nu ll;this._aborte d=false;this._s tarted=false;th is._onReadyStat eChange=functio n()
{if(a._xmlHttpR equest.readySta te===4){try{if( typeof
a._xmlHttpReque st.status==="un defined")return }catch(b)
{return}a._clea rTimer();a._res ponseAvailable= true;a._webRequ est.completed(S ys.EventArgs.Em pty);if(a._xmlH ttpRequest!
=null)
{a._xmlHttpRequ est.onreadystat echange=Functio n.emptyMethod;a ._xmlHttpReques t=null}}};this. _clearTimer=fun ction()
{if(a._timer!=n ull)
{window.clearTi meout(a._timer) ;a._timer=null} };this._onTimeo ut=function()
{if(!a._respons eAvailable)
{a._clearTimer( );a._timedOut=t rue;a._xmlHttpR equest.onreadys tatechange=Func tion.emptyMetho d;a._xmlHttpReq uest.abort();a. _webRequest.com pleted(Sys.Even tArgs.Empty);a. _xmlHttpRequest =null}}};Sys.Ne t.XMLHttpExecut or.prototype={g et_timedOut:fun ction()
{return this._timedOut} ,get_started:fu nction(){return
this._started}, get_responseAva ilable:function (){return
this._responseA vailable},get_a borted:function (){return
this._aborted}, executeRequest: function()
{this._webReque st=this.get_web Request();var
c=this._webRequ est.get_body(), a=this._webRequ est.get_headers ();this._xmlHtt pRequest=new
XMLHttpRequest; this._xmlHttpRe quest.onreadyst atechange=this. _onReadyStateCh ange;var
e=this._webRequ est.get_httpVer b();this._xmlHt tpRequest.open( e,this._webRequ est.getResolved Url(),true);if( a)for(var
b in a){var f=a[b];if(typeof f!
=="function")th is._xmlHttpRequ est.setRequestH eader(b,f)}if(e .toLowerCase()= =="post")
{if(a===null||! a["Content-
Type"])this._xmlHttpR equest.setReque stHeader("Conte nt-
Type","applicat ion/x-www-form-urlencoded; charset=utf-8");if(!
c)c=""}var
d=this._webRequ est.get_timeout ();if(d>0)this. _timer=window.s etTimeout(Funct ion.createDeleg ate(this,this._ onTimeout),d);t his._xmlHttpReq uest.send(c);th is._started=tru e},getResponseH eader:function( b)
{var a;try{a=this._x mlHttpRequest.g etResponseHeade r(b)}catch(c){} if(!
a)a="";return a},getAllRespon seHeaders:funct ion(){return
this._xmlHttpRe quest.getAllRes ponseHeaders()} ,get_responseDa ta:function()
{return this._xmlHttpRe quest.responseT ext},get_status Code:function()
{var a=0;try{a=this. _xmlHttpRequest .status}catch(b ){}return
a},get_statusTe xt:function(){r eturn
this._xmlHttpRe quest.statusTex t},get_xml:func tion(){var
a=this._xmlHttp Request.respons eXML;if(!a||!a. documentElement )
{a=Sys.Net.XMLD OM(this._xmlHtt pRequest.respon seText);if(!a|| !
a.documentEleme nt)return null}else
if(navigator.us erAgent.indexOf ("MSIE")!
==-1)a.setProperty ("SelectionLang uage","XPath"); if(a.documentEl ement.namespace URI==="http://
www.mozilla.org/newlayout/xml/parsererror.xml "&&a.documentEl ement.tagName== ="parsererror") return
null;if(a.docum entElement.firs tChild&&a.docum entElement.firs tChild.tagName= =="parsererror" )return
null;return a},abort:functi on(){if(this._a borted||
this._responseA vailable||
this._timedOut) return;this._ab orted=true;this ._clearTimer(); if(this._xmlHtt pRequest&&!
this._responseA vailable)
{this._xmlHttpR equest.onreadys tatechange=Func tion.emptyMetho d;this._xmlHttp Request.abort() ;this._xmlHttpR equest=null;thi s._webRequest.c ompleted(Sys.Ev entArgs.Empty)} }};Sys.Net.XMLH ttpExecutor.reg isterClass("Sys .Net.XMLHttpExe cutor",Sys.Net. WebRequestExecu tor);Sys.Net._W ebRequestManage r=function()
{this._this=thi s;this._default Timeout=0;this. _defaultExecuto rType="Sys.Net. XMLHttpExecutor "};Sys.Net._Web RequestManager. prototype={add_ invokingRequest :function(a)
{this._get_even tHandlerList(). addHandler("inv okingRequest",a )},remove_invok ingRequest:func tion(a)
{this._get_even tHandlerList(). removeHandler(" invokingRequest ",a)},add_compl etedRequest:fun ction(a)
{this._get_even tHandlerList(). addHandler("com pletedRequest", a)},remove_comp letedRequest:fu nction(a)
{this._get_even tHandlerList(). removeHandler(" completedReques t",a)},_get_eve ntHandlerList:f unction()
{if(!this._even ts)this._events =new Sys.EventHandle rList;return
this._events},g et_defaultTimeo ut:function(){r eturn
this._defaultTi meout},set_defa ultTimeout:func tion(a)
{this._defaultT imeout=a},get_d efaultExecutorT ype:function(){ return
this._defaultEx ecutorType},set _defaultExecuto rType:function( a)
{this._defaultE xecutorType=a}, executeRequest: function(webReq uest){var
executor=webReq uest.get_execut or();if(!execut or){var
failed=false;tr y{var
executorType=ev al(this._defaul tExecutorType); executor=new
executorType}ca tch(a)
{failed=true}we bRequest.set_ex ecutor(executor )}if(executor.g et_aborted())re turn;var
evArgs=new
Sys.Net.Network RequestEventArg s(webRequest),h andler=this._ge t_eventHandlerL ist().getHandle r("invokingRequ est");if(handle r)handler(this, evArgs);if(!
evArgs.get_canc el())executor.e xecuteRequest() }};Sys.Net._Web RequestManager. registerClass(" Sys.Net._WebReq uestManager");S ys.Net.WebReque stManager=new
Sys.Net._WebReq uestManager;Sys .Net.NetworkReq uestEventArgs=f unction(a)
{Sys.Net.Networ kRequestEventAr gs.initializeBa se(this);this._ webRequest=a};S ys.Net.NetworkR equestEventArgs .prototype={get _webRequest:fun ction()
{return
this._webReques t}};Sys.Net.Net workRequestEven tArgs.registerC lass("Sys.Net.N etworkRequestEv entArgs",Sys.Ca ncelEventArgs); Sys.Net.WebRequ est=function()
{this._url="";t his._headers={} ;this._body=nul l;this._userCon text=null;this. _httpVerb=null; this._executor= null;this._invo keCalled=false; this._timeout=0 };Sys.Net.WebRe quest.prototype ={add_completed :function(a)
{this._get_even tHandlerList(). addHandler("com pleted",a)},rem ove_completed:f unction(a)
{this._get_even tHandlerList(). removeHandler(" completed",a)}, completed:funct ion(b)
{var
a=Sys.Net.WebRe questManager._g et_eventHandler List().getHandl er("completedRe quest");if(a)a( this._executor, b);a=this._get_ eventHandlerLis t().getHandler( "completed");if (a)a(this._exec utor,b)},_get_e ventHandlerList :function()
{if(!this._even ts)this._events =new Sys.EventHandle rList;return
this._events},g et_url:function (){return this._url},set_ url:function(a)
{this._url=a},g et_headers:func tion(){return
this._headers}, get_httpVerb:fu nction(){if(thi s._httpVerb===n ull)
{if(this._body= ==null)return "GET";retur n "POST"}retu rn
this._httpVerb} ,set_httpVerb:f unction(a)
{this._httpVerb =a},get_body:fu nction(){return
this._body},set _body:function( a)
{this._body=a}, get_userContext :function(){ret urn
this._userConte xt},set_userCon text:function(a )
{this._userCont ext=a},get_exec utor:function() {return
this._executor} ,set_executor:f unction(a)
{this._executor =a;this._execut or._set_webRequ est(this)},get_ timeout:functio n()
{if(this._timeo ut===0)return
Sys.Net.WebRequ estManager.get_ defaultTimeout( );return
this._timeout}, set_timeout:fun ction(a)
{this._timeout= a},getResolvedU rl:function(){r eturn
Sys.Net.WebRequ est._resolveUrl (this._url)},in voke:function()
{Sys.Net.WebReq uestManager.exe cuteRequest(thi s);this._invoke Called=true}};S ys.Net.WebReque st._resolveUrl= function(b,a)
{if(b&&b.indexO f("://")!==-1)return b;if(!a||a.leng th===0){var
c=document.getE lementsByTagNam e("base")
[0];if(c&&c.href&& c.href.length>0 )a=c.href;else a=document.URL} var
d=a.indexOf("?" );if(d!
==-1)a=a.substr(0, d);a=a.substr(0 ,a.lastIndexOf( "/")+1);if(!b ||
b.length===0)re turn a;if(b.charAt(0 )==="/"){var
e=a.indexOf("://"),g=a.indexOf( "/",e+3);retu rn a.substr(0,g)
+b}else{var f=a.lastIndexOf ("/");return a.substr(0,f
+1)+b}};Sys.Net .WebRequest._cr eateQueryString =function(d,b){ if(!
b)b=encodeURICo mponent;var a=new Sys.StringBuild er,f=0;for(var c in d)
{var e=d[c];if(typeof e==="function") continue;var
g=Sys.Serializa tion.JavaScript Serializer.seri alize(e);if(f!
==0)a.append("& ");a.append(c); a.append("=");a .append(b(g));f ++}return
a.toString()};S ys.Net.WebReque st._createUrl=f unction(a,b){if (!b)return
a;var d=Sys.Net.WebRe quest._createQu eryString(b);if (d.length>0){va r
c="?";if(a&&a.i ndexOf("?")!==-1)c="&";return a+c+d}else return
a};Sys.Net.WebR equest.register Class("Sys.Net. WebRequest");Sy s.Net.WebServic eProxy=function ()
{};Sys.Net.WebS erviceProxy.pro totype={get_tim eout:function() {return
this._timeout}, set_timeout:fun ction(a){if(a<0 )throw
Error.argumentO utOfRange("valu e",a,Sys.Res.in validTimeout);t his._timeout=a} ,get_defaultUse rContext:functi on()
{return this._userConte xt},set_default UserContext:fun ction(a)
{this._userCont ext=a},get_defa ultSucceededCal lback:function( ){return
this._succeeded },set_defaultSu cceededCallback :function(a)
{this._succeede d=a},get_defaul tFailedCallback :function(){ret urn
this._failed},s et_defaultFaile dCallback:funct ion(a)
{this._failed=a },get_path:func tion(){return
this._path},set _path:function( a)
{this._path=a}, _invoke:functio n(d,e,g,f,c,b,a ){if(c===null|| typeof
c==="undefined" )c=this.get_def aultSucceededCa llback();if(b== =null||
typeof b==="undefined" )b=this.get_def aultFailedCallb ack();if(a===nu ll||
typeof a==="undefined" )a=this.get_def aultUserContext ();return
Sys.Net.WebServ iceProxy.invoke (d,e,g,f,c,b,a, this.get_timeou t())}};Sys.Net. WebServiceProxy .registerClass( "Sys.Net.WebSer viceProxy");Sys .Net.WebService Proxy.invoke=fu nction(k,a,j,d, i,c,f,h)
{var b=new Sys.Net.WebRequ est;b.get_heade rs()["Content-
Type"]="applicatio n/json; charset=utf-8";if(!d)d={};v ar g=d;if(!j||!
g)g={};b.set_ur l(Sys.Net.WebRe quest._createUr l(k
+"/"+encodeURIComp onent(a),g));va r e=null;if(!j)
{e=Sys.Serializ ation.JavaScrip tSerializer.ser ialize(d);if(e= =="{}")e=""}b.s et_body(e);b.ad d_completed(l); if(h&&h>0)b.set _timeout(h);b.i nvoke();functio n
l(d){if(d.get_r esponseAvailabl e()){var
g=d.get_statusC ode(),b=null;tr y{var e=d.getResponse Header("Content-
Type");if(e.sta rtsWith("applic ation/json"))b=d.get_ object();else
if(e.startsWith ("text/xml"))b=d.get_x ml();else
b=d.get_respons eData()}catch(m ){}var
k=d.getResponse Header("jsonerr or"),h=k==="tru e";if(h){if(b)b =new
Sys.Net.WebServ iceError(false, b.Message,b.Sta ckTrace,b.Excep tionType)}else
if(e.startsWith ("applicatio n/json"))b=b.d;if (g<200||g>=300| |h){if(c)
{if(!b||!h)b=ne w
Sys.Net.WebServ iceError(false, String.format(S ys.Res.webServi ceFailedNoMsg,a ),"","");b._sta tusCode=g;c(b,f ,a)}}else
if(i)i(b,f,a)}e lse{var
j;if(d.get_time dOut())j=String .format(Sys.Res .webServiceTime dOut,a);else
j=String.format (Sys.Res.webSer viceFailedNoMsg ,a);if(c)c(new
Sys.Net.WebServ iceError(d.get_ timedOut(),j,"" ,""),f,a)}}retu rn
b};Sys.Net.WebS erviceProxy._ge nerateTypedCons tructor=functio n(a)
{return function(b){if( b)for(var c in
b)this[c]=b[c];this.__type=a} };Sys.Net.WebSe rviceError=func tion(c,d,b,a)
{this._timedOut =c;this._messag e=d;this._stack Trace=b;this._e xceptionType=a; this._statusCod e=-1};Sys.Net.WebS erviceError.pro totype={get_tim edOut:function( )
{return this._timedOut} ,get_statusCode :function(){ret urn
this._statusCod e},get_message: function(){retu rn
this._message}, get_stackTrace: function(){retu rn
this._stackTrac e},get_exceptio nType:function( ){return
this._exception Type}};Sys.Net. WebServiceError .registerClass( "Sys.Net.WebSer viceError");Typ e.registerNames pace("Sys.Servi ces");Sys.Servi ces._ProfileSer vice=function()
{Sys.Services._ ProfileService. initializeBase( this);this.prop erties={}};Sys. Services._Profi leService.Defau ltWebServicePat h="";Sys.Servic es._ProfileServ ice.prototype={ _defaultLoadCom pletedCallback: null,_defaultSa veCompletedCall back:null,_path :"",_timeout :
0,get_defaultLo adCompletedCall back:function() {return
this._defaultLo adCompletedCall back},set_defau ltLoadCompleted Callback:functi on(a)
{this._defaultL oadCompletedCal lback=a},get_de faultSaveComple tedCallback:fun ction()
{return
this._defaultSa veCompletedCall back},set_defau ltSaveCompleted Callback:functi on(a)
{this._defaultS aveCompletedCal lback=a},get_pa th:function(){r eturn
this._path||""} ,load:function( c,d,e,f){var b,a;if(!c)
{a="GetAllPrope rtiesForCurrent User";b={authen ticatedUserOnly :false}}else{a= "GetPropertiesF orCurrentUser"; b={properties:t his._clonePrope rtyNames(c),aut henticatedUserO nly:false}}this ._invoke(this._ get_path(),a,
Oct 18 '08 #2
Thanks, that should help, in case it turns out to help someone else,
my problem was I was using the preview version of WebPartManager in
the UI via a web.config mapping, but in my c# class I extended the
regular class.
Oct 18 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
5128
by: Denis | last post by:
I am trying to launch an .mdb file via javascript. I do not need to do anything but open the application. It is able to open the application but for some reason it opens and then closes. At first I thought it may be a permission problem as far as writing the .ldb file to disk, but I added every single user and gave them write permissions to the folder and there is still no change. Has anyone been able to get this to work? Thanks in...
10
3978
by: ion | last post by:
Hi! Is there a way to write messages to the javascript console? Like a debug.write() method? Thanks! Ion
5
9274
by: Dave | last post by:
I am trying to compile my C++ programs in debug mode in Visual NET 2003 and keep getting the following message fatal error LNK1104: cannot open file 'mfc70d.lib I cannot find this program anywhere in my Windows 2003 Server operating system. Also, I cannot find MFC42D.DLL anywhere in the system. How can I test in debug mode without it? What is causing these errors and how do I get around it Dave Uphof
3
2105
by: ABC | last post by:
How to debug client-side script (javascript) from VS2003 or VS2005?
20
3750
by: cowboyrocks2009 | last post by:
Hi, I need help to automate my code to take data from input file. Also I need to create it as a function so that I can pass it to some other program. I am new to Java so having a bit limitation to do this. My tab delimited Input File looks like this:- 21 p 13e 0 62 1 580001 andrew -14.53 -13.95 0 0 21 p 13d 63 124 580002 1160001 andrew -13.95 -13.37 0 0 21 p 12g 311 364 2900000 3385714 john -11.63 -11.14 0 0 21 q 11.1a 1274 1321...
0
9254
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9122
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8967
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6592
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5923
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4687
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3125
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2458
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.