Dan, this is beating a dead horse, but when posting code, it helps me (us) to read it easier if you encapsulate it in the [code] tag. This will also keep it formatted if you happen to have it formatted. All you have to do is hit the code button before pasting your code and hit it again when you're done. That or you could type [code](code here)[/code], just like that. You could also paste your code, highlight it and hit the code button one time. Any of these ways will make the code easier to read for the rest of us. I edited your code to have the code tag.