// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
Event.observe(window, 'load', function() {
    // todo123 reallyiamherereally is this where auto-focus happens? remove, as it messes up Shannon's (hence probably other normal users') webpage control flow
    var e = $A(document.getElementsByTagName('*')).find(function(e) {
        return (e.tagName.toUpperCase() == 'INPUT' && (e.type == 'text' || e.type == 'password'))
            || e.tagName.toUpperCase() == 'TEXTAREA' || e.tagName.toUpperCase() == 'SELECT';
    });
    if (e) e.focus();
});
