Event.observe(window, 'load', function() {
  var e = $A(document.getElementsByTagName('*')).find(function(e) {
    return (e.tagName.toLowerCase() == 'input' && (e.type == 'text' || e.type == 'password'))
        || e.tagName.toLowerCase() == 'textarea'
        || e.tagName.toLowerCase() == 'select';
  });
  if (e && e.value == '') {
    e.focus();
  }
});

