$(function() {
  $('#loginEmail').focus();
  var strLocation, strSubmit;
  strLocation = document.location.href;
  intLocation = strLocation.indexOf("#");
  if (intLocation > 0) {
    strSubmit = strLocation.substr(intLocation + 1);
    if (strSubmit.length > 2)
      $('#loginReferer').val(strSubmit);
  }
});
