if(!_5f2){ _5f2=dojo.io.formFilter; } var enc=/utf/i.test(_5f1||"")?encodeURIComponent:dojo.string.encodeAscii; var _5f4=[]; for(var i=0;i<_5f0.elements.length;i++){ var elm=_5f0.elements[i]; if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_5f2(elm)){ continue; } var name=enc(elm.name); var type=elm.type.toLowerCase(); if(type=="select-multiple"){ for(var j=0;j<elm.options.length;j++){ if(elm.options[j].selected){ _5f4.push(name+"="+enc(elm.options[j].value)); } } }else{ if(dojo.lang.inArray(["radio","checkbox"],type)){ if(elm.checked){ _5f4.push(name+"="+enc(elm.value)); } }else{ _5f4.push(name+"="+enc(elm.value)); } } } var _5fa=_5f0.getElementsByTagName("input"); for(var i=0;i<_5fa.length;i++){ var _5fb=_5fa[i]; if(_5fb.type.toLowerCase()=="image"&&_5fb.form==_5f0&&_5f2(_5fb)){ var name=enc(_5fb.name); _5f4.push(name+"="+enc(_5fb.value)); _5f4.push(name+".x=0"); _5f4.push(name+".y=0"); } } return _5f4.join("&")+"&"; }; 
dojo.io.encodeForm = function(formNode, encoding, formFilter){  if((!formNode)||(!formNode.tagName)||(!formNode.tagName.toLowerCase() == "form")){    dojo.raise("Attempted to encode a non-form element.");  }  if(!formFilter) { formFilter = dojo.io.formFilter; }  var enc = /utf/i.test(encoding||"") ? encodeURIComponent : dojo.string.encodeAscii;  var values = [];  for(var i = 0; i < formNode.elements.length; i++){    var elm = formNode.elements[i];    if(!elm || elm.tagName.toLowerCase() == "fieldset" || !formFilter(elm)) { continue; }    var name = enc(elm.name);    var type = elm.type.toLowerCase();    if(type == "select-multiple"){      for(var j = 0; j < elm.options.length; j++){        if(elm.options[j].selected) {          values.push(name + "=" + enc(elm.options[j].value));        }      }    }else if(dojo.lang.inArray(["radio", "checkbox"], type)){      if(elm.checked){        values.push(name + "=" + enc(elm.value));      }    }else{      values.push(name + "=" + enc(elm.value));    }  }  // now collect input type="image", which doesn't show up in the elements array  var inputs = formNode.getElementsByTagName("input");  for(var i = 0; i < inputs.length; i++) {    var input = inputs[i];    if(input.type.toLowerCase() == "image" && input.form == formNode      && formFilter(input)) {      var name = enc(input.name);      values.push(name + "=" + enc(input.value));      values.push(name + ".x=0");      values.push(name + ".y=0");    }  }  return values.join("&") + "&";}
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