james, :~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ : From: James Spahr <james at designframe.com> : : : the problem occurs when x is NaN (javascipt speak : for not-a-number). the if statement use to catch it - now : it does not. Any clue as to why? :~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i'm guessing changing this: if (x != Number.NaN){ to this: if (!isNaN(x)){ might work better. you might wanna read up on the isNaN() method in the javascript documentation. good luck, .jeff name://jeff.howden game://web.development http://www.evolt.org/ mailto:jeff at members.evolt.org