QTP: Close IE dialogs dynamically code

I have been asked to provide a link to the code I have for this, and finally got around to doing it....
«August»
SunMonTueWedThuFriSat
303112345
6789101112
13141516171819
20212223242526
272829303112
3456789