Thanks to both of you :)
Updated the script, added a \"advanced\" URL validation, please test it out for me and tell me where it fails etc :)