context: function uploadAutoAttach() {  var acdb = [];  var inputs = document.getElementsByTagName('input');  for (i = 0; input = inputs[i]; i++) {    if (input && hasClass(input, 'upload')) {      var uri = input.value;      // Extract the button ID based on a subtring of the input name: edit[foo][bar] -> foo-bar      var button = input.name.substr(5, input.name.length - 6).replace('][', '-');      var wrapper = button + '-wrapper';      var hide = button + '-hide';      var upload = new jsUpload(uri, button, wrapper, hide);    }  }}
meta: 10881	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10881/70aae83c8ee2a44b2eb880214af50f8052e12bf7/upload.js/clean/misc/upload.js