Thanks for your suggestion,i did that way only for the first time but now wanted to implement that using regular expression. its easy to set a
pattern rather than extracting substring and then using NaN.
** var regExp6digit = /^\d{6}$/
** var regExpLast4digit = /\d{4}$/
the above patterns will take care of all 6 digits and last 4 digits..
someone plz tell me how to set the pattern for the first 2 characters?? Help would be appreciated.