Sorry I am feeling lazy today, but I am sure it must be a fairly common thing to want to do so hopefully someone out there has some code that will do this?