With the strings I have in the program, I don't think you can loop createnewbox();, because the other function is set on a timeout feature.
Plus, it's document.getElementById(ID).style.left;. With a Math.floor() function and you have to do all eight of them per execution. LIke this: I hate...