Jos,
You can use < pre > < /pre > tags (no spaces) to preserve code formatting and add syntax coloring.
>Sergey
>
>You are absolutely right. In defence I was only trying to quickly demonstrate the principle but I like your solution better - its looks nice too! How do you format your code so it indents nicely in the post?
>
--sb--