私はこのコードを試しましたが、うまくいきません..テキストボックスにフォーカスするとエラーが表示されます
function ChangeBgColor(obj, evt)
{
if(evt.type=="focus")
style.background ="lightgrey";
else if(evt.type=="blur")
{
style.background="white";
}
}