I think the bug here is that it's not 'onblur' but just 'blur'. Did you test with that? You might also need to make sure to require the event-focus YUI module. 

http://yuilibrary.com/yui/docs/event/focus.html

so that would need to be in the YUI.use() block.