$(document).ready(function() {
  $("input#username[type='text']:first", document.forms[0]).focus();
});

