in reply to only allow single instance of program running
see merlyn's solution: WebTechniques/col54.html