rem: var form = $(form); var elements = Form.getElements(form); for (var i = 0; i < elements.length; i++) { var element = elements[i]; if (element.type != 'hidden' && !element.disabled) { Field.activate(element); break; } } 
add: Field.activate(Form.findFirstElement(form)); 
context:   focusFirstElement: function(form) {    var form = $(form);    var elements = Form.getElements(form);    for (var i = 0; i < elements.length; i++) {      var element = elements[i];      if (element.type != 'hidden' && !element.disabled) {        Field.activate(element);        break;      }    }  },
meta: 3991	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3991/d29159eae8749c508d01bb447868321a3ba6bbfa/prototype.js/buggy/manager/media/script/scriptaculous/prototype.js