Trilochan, at JavaRanch we encourage people to write their own code. We will give the poster all the help he needs to get his code running, but it doesn't do anyone any good to just give out answers.
I have a written a new javascript function for this
but the period/dot is carried to the next text box
I dont want to display the period/dot but the use can enter it