WidgetModality is a project mainly written in JavaScript, it's free.
Bringing modality to all YUI3 Widgets
Widget-Modality is an plugin designed to make all YUI3 widgets have modal capability.