var Qm=M.U(M,"AdfDhtmlFormPeer");v("AdfDhtmlFormPeer",Qm);Qm.m=function(){M.ui(this,"defaultCommand");M.ha(this,I.Wf)};v("AdfDhtmlFormPeer.InitSubclass",Qm.m);Qm.prototype.Rb=function(a){var b=this.d().e(),b=M.Na(b,"postscript");return a.id==b?n:a};z.a("AdfDhtmlFormPeer.prototype.DomReplaceNotify",{Rb:Qm.prototype.Rb});Qm.prototype.q=function(a,b){Qm.f.q.call(this,a,b);var d=F.c.R(),e=new Function("return true;");d["_"+a.e()+"Validator"]=e};z.a("AdfDhtmlFormPeer.prototype.InitDomElement",{q:Qm.prototype.q});
Qm.prototype.zb=function(a){if(a.ia()==E.$a&&(a=Qm.CM(a,l),a!=n)){a=Rm.Lfa(a);var b;a||(a=this.d());if(b=a.getDefaultCommand()){var d=a.j(b);d?d.k().od()||bb.v(d,d.getPartialSubmit()):D.i.warning("DefaultCommand with the ID of '"+b+"' is not found for component: "+a)}}};z.a("AdfDhtmlFormPeer.prototype.HandleComponentKeyPress",{zb:Qm.prototype.zb});
Qm.CM=function(a,b){var d=a.Q();if(d){var e=d.tagName;if("A"==e||"BUTTON"==e||"TEXTAREA"==e||"IFRAME"==e||"INPUT"==e&&("submit"==d.type||"reset"==d.type))return n;"SELECT"!=e&&b&&a.cancel();for(e=d.id;!e;)d=d.parentNode,e=d.id;return e}return n};