Added check if input is disabled when setting the focus.

Setting the focus to a disabled element can cause an error in IE7 and
IE8.