Thanks dlorde

This was exactly what I was looking for. Eveything else on the web had similar solutions, but none of them seemed complete.