why don't you change the while statement to have it be:
while (exitlevel==0) {
?
Otherwise it will always exit because it's set at 0 default, but if it isn't 1 then it won't go through the loop.
(EDIT)
nevermind, i see someone already got to it.
[ November 15, 2002: Message edited by: Stryker ]