init: function(args) { var form = dojo.byId(args.formNode);  if(!form || !form.tagName || form.tagName.toLowerCase() != "form") { throw new Error("FormBind: Couldn't apply, invalid form"); } else if(this.form == form) { return; } else if(this.form) { throw new Error("FormBind: Already applied to a form"); }  dojo.lang.mixin(this.bindArgs, args); this.form = form;  this.connect(form, "onsubmit", "submit");  for(var i = 0; i < form.elements.length; i++) { var node = form.elements[i]; if(node && node.type && dojo.lang.inArray(["submit", "button"], node.type.toLowerCase())) { this.connect(node, "onclick", "click"); } }  var inputs = form.getElementsByTagName("input"); for(var i = 0; i < inputs.length; i++) { var input = inputs[i]; if(input.type.toLowerCase() == "image" && input.form == form) { this.connect(input, "onclick", "click"); } } }, 
dojo.lang.extend(dojo.io.FormBind,{form:null,bindArgs:null,clickedButton:null,init:function(args){ var form=dojo.byId(args.formNode); if(!form||!form.tagName||form.tagName.toLowerCase()!="form"){ throw new Error("FormBind: Couldn't apply, invalid form"); }else{ if(this.form==form){ return; }else{ if(this.form){ throw new Error("FormBind: Already applied to a form"); } } } dojo.lang.mixin(this.bindArgs,args); this.form=form; this.connect(form,"onsubmit","submit"); for(var i=0;i<form.elements.length;i++){ var node=form.elements[i]; if(node&&node.type&&dojo.lang.inArray(["submit","button"],node.type.toLowerCase())){ this.connect(node,"onclick","click"); } } var _601=form.getElementsByTagName("input"); for(var i=0;i<_601.length;i++){ var _602=_601[i]; if(_602.type.toLowerCase()=="image"&&_602.form==form){ this.connect(_602,"onclick","click"); } } },onSubmit:function(form){ 
  init: function(args) {    var form = dojo.byId(args.formNode);    if(!form || !form.tagName || form.tagName.toLowerCase() != "form") {      throw new Error("FormBind: Couldn't apply, invalid form");    } else if(this.form == form) {      return;    } else if(this.form) {      throw new Error("FormBind: Already applied to a form");    }    dojo.lang.mixin(this.bindArgs, args);    this.form = form;    this.connect(form, "onsubmit", "submit");    for(var i = 0; i < form.elements.length; i++) {      var node = form.elements[i];      if(node && node.type && dojo.lang.inArray(["submit", "button"], node.type.toLowerCase())) {        this.connect(node, "onclick", "click");      }    }    var inputs = form.getElementsByTagName("input");    for(var i = 0; i < inputs.length; i++) {      var input = inputs[i];      if(input.type.toLowerCase() == "image" && input.form == form) {        this.connect(input, "onclick", "click");      }    }  },
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/90939f35f46f873d9b1f5c5f818ecf012711dc71/dojo.js/buggy/src/main/resources/org/apache/struts2/static/dojo/dojo.js