Kixtart can generate syntax errors in weird and wonderfull ways - missing quotes, parens mismatched block structures and other even harder to find things. All i'm saying is - fix the END IF thing, re-test and re-post and then we can move on to the next potential issue.

-Shawn