Added check if input is not disabled when giving focus

When giving focus to an input element that is disabled, an error occurs
in IE7 and IE8.