Mr Evil.... that was BEAUTIFUL! Though I'm not much of a programmer, I can follow the logic in your code. Thank you!
I was looking for 'round' and 'ceil'ing hadn't even occurred to me, though I use it in Excel.
A question because of my javascript ignorance:
Why do you do a single...