rem: dojo.event.connect(this.passwordInput, "onfocus", function () { self.loginFocus = true }); dojo.event.connect(this.passwordInput, "onblur", function () { self.loginFocus = false }); 
add: dojo.event.connect(this.passwordInput, "onfocus", this, 'setFocus'); dojo.event.connect(this.passwordInput, "onblur", this, 'setFocus'); dojo.event.connect(this.usernameInput, "onfocus", this, 'setFocus'); dojo.event.connect(this.usernameInput, "onblur", this, 'setFocus'); 
context:         postCreate: function (){            var self = this;            var button = dojo.widget.createWidget("cosmo:Button",                { text: _("Login.Button.Ok"), width: 74, widgetId: "loginSubmitButton" } );            var logo = document.createElement('img');            this.submitButtonContainer.appendChild(button.domNode);            this.submitButton = button;            logo.src = cosmo.env.getImagesUrl() + LOGO_GRAPHIC;            this.logoContainer.appendChild(logo);            dojo.event.connect(this.passwordInput, "onfocus", function () { self.loginFocus = true });            dojo.event.connect(this.passwordInput, "onblur", function () { self.loginFocus = false });            dojo.event.connect(this.submitButton, "handleOnClick", this, "doLogin");            dojo.addOnLoad(function(){self.usernameInput.focus()})        },
meta: 1859	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1859/5cbd7f779c65adab1641e6f569eda2a9a48e7f70/LoginDialog.js/buggy/src/webapp/js/cosmo/ui/widget/LoginDialog.js