This code forbids to be switched to other windows by a click in taskbar and does the text of heading of a modal window blinking. Also you need to add class x-window-header-text-masked, which contains "color:gray;".