Guarda questo script:
http://www.gmtt.co.uk/details.php?file=13