Fantastic. I've been looking for a solution to this for a couple of weeks now. My javascript has become a bit rusty but this works perfectly. So a huge thank you.:)