Thanks for the PHP solution! I know it's off-topic, but it worked great...