Ok, I'll change some of things around. The reason for using the registry a lot is because globsl variables just didn't seem to be working (would change to undefined when read from a function).
I didn't realise there was a way to use a date or time object... Might have to look into that then as well now
Thanks for the input