Thank you very much, with a little tweaking,not scripts fault but the weather site not sending the format all the time, it's working perfectly now.

as far as the window clearing/closing -- maybe hash tables?