That's what I've said... The var counter declaration can stay global as in your previous post, you just have to reset it before the while loop, i.e. counter = 48; without "var".
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual