A quick search came up with

http://www.mircscripts.org/comments.php?cid=1405

I haven't tested out the script personally but, you might like to test it out yourself and see if it's what you're looking for.