sorry, glaring oversight: that $replace() on the 4th last line should of course be $replacecs()


"The only excuse for making a useless script is that one admires it intensely" - Oscar Wilde