Thanks,felgall. It’s working now.Sorry for posting in the wrong forum guys - has nothing to do with Javascript.