OK, another question, how do I make a number a specific length by adding zero's to the left end and then seperate the digits of the number?for example, say I have this: Number=182 First I want the javascript lengthen the number to, say 7 digits,resulting in: Number=0000182.then I want to seperate the individual digits so that an array holds them: num[1]=0, num[2]=0,...num[5]=1, num[6]=8, num[7]=2.can anyone help me plz?LG