Try some profiling to find the slow parts of you code.
Neil Watson watson-wilson.ca
In reply to Re: Script Executes Very Slowly by neilwatson in thread Script Executes Very Slowly by doubleqq