I don't really understand what's the point of using your 75 line script for creating modal dialogs instead of the one line solution mentioned by chrisacky.
I'm all for constructive criticism, but many of the posts in this thread are purely negative.
We have a responsibility to foster a community that creates, shares, and improves the state of the web for all of us. That won't happen through vicious infighting.