I have an application I'm editing for someone at the moment, and have a problem
with a part of my code; one of my functions works fine if I have an alert("Some
Text") line in there, but doesn't if I don't.

I'm not sure exactly if the problem is with focus or down to speed of other
pages loading. I'm trying to find out, and the obvious way seems to be to
try to include a 2/3 second pause in the execution of the code where the
alert box is. Does anyone know how to do this (if it is possible!!) I know
of the sleep function that can be accessed in C/VB, but am a bit of a JScript
novice, so aren't really sure how include that declaration if that is how
you do it...

Thanks for any help!