One of the things I routinely do when building websites or applications is develop a utility library that handles mundane, but common stuff. While building out the XHEO line of products I've built a pretty extensive library of stuff. We've been publishing the library for free for quite some time but we've just recently pushed an update to the site. We don't do it frequently, but I was talking to Robert McLaws about the need for a tri state value. I've been using a custom version for some time now and never really thought to let anyone else know about it. Anyway, its in the latest post and has some neat features like implicit casting to/from a literal boolean value so that you can use it like a regular boolean value.
Check out the free library on the XHEO website.
Download the library now.