I have not gone through and tested this myself, but it looks pretty valid. So proceed at your own risk (but Marc is top-notch, so you'll be fine). The script below is of a slightly different format from what you'll find on Marc's blog, but the content is identical.