k, now do something like this:
$yourstopButton.onclick="$$yourstopButton.tag=1"

and in your loop:
if $yourstopButton.tag=1
exit 1 ;Exit the runscripts udf per users request
endif

good place might be right before the next.
_________________________
!

download KiXnet