document.observe("dom:loaded", function() {
var currentmail = $("account_email").value, form = $("accountform");
- form.focus();
+ form.setfocus();
form.observe('submit', function(evt) {
var control, errorElements;
* if there are errors, cancel submission
*/
if (errorElements.length) {
- errorElements[0].highlight('#F08080').focus();
- errorElements[0].select();
+ errorElements[0].highlight('#F08080').activate();
evt.stop();
}
});