in reply to Strange Refresh issue
the bug is at line 100 of your cgi script. that's all i can say without seeing your code.