This solution has been posted about four times recently. Read the responses to the other postings if you want more info. It does what you want.