Thanks Lori, It was not a typo just a mistake( I haven't done much in Javascript for a while) There was also a similar one in the "for" logic. Thanks for pointing it out. Bill