It is good programming practice to properly indent your code so that is is easier to read and debug. Please properly format your code. I have added the proper code tags. You can edit your post and replace the code when formatted.
_________________________
Home page: http://www.kixhelp.com/hb/