I don't know who wrote this code, but it only works in Internet Explorer.