This code by foamy is a work of art!
Following on from what someone else had suggested - how can I validate the text when [OK] is pressed in my form?
Sorry to ninja the thread, but I hope others would be wondering the same.

Thanks