//>>built
define("dojox/form/manager/_FormMixin","dojo/_base/lang dojo/_base/kernel dojo/_base/event dojo/window ./_Mixin dojo/_base/declare".split(" "),function(k,n,g,l,p,m){var e=k.getObject("dojox.form.manager",!0).actionAdapter;return m("dojox.form.manager._FormMixin",null,{name:"",action:"",method:"",encType:"","accept-charset":"",accept:"",target:"",startup:function(){if(this.isForm="form"==this.domNode.tagName.toLowerCase())this.connect(this.domNode,"onreset","_onReset"),this.connect(this.domNode,"onsubmit",
"_onSubmit");this.inherited(arguments)},_onReset:function(a){var b={returnValue:!0,preventDefault:function(){this.returnValue=!1},stopPropagation:function(){},currentTarget:a.currentTarget,target:a.target};!1!==this.onReset(b)&&b.returnValue&&this.reset();g.stop(a);return!1},onReset:function(){return!0},reset:function(){this.inspectFormWidgets(e(function(a,b){b.reset&&b.reset()}));this.isForm&&this.domNode.reset();return this},_onSubmit:function(a){!1===this.onSubmit(a)&&g.stop(a)},onSubmit:function(){return this.isValid()},
submit:function(){this.isForm&&!1!==this.onSubmit()&&this.domNode.submit()},isValid:function(){for(var a in this.formWidgets){var b=!1;e(function(f,d){d.get("disabled")||!d.isValid||d.isValid()||(b=!0)}).call(this,null,this.formWidgets[a].widget);if(b)return!1}return!0},validate:function(){var a=!0,b=this.formWidgets,f=!1,d;for(d in b)e(function(q,c){c._hasBeenBlurred=!0;var h=c.disabled||!c.validate||c.validate();h||f||(l.scrollIntoView(c.containerNode||c.domNode),c.focus(),f=!0);a=a&&h}).call(this,
null,b[d].widget);return a}})});