Ian,Nope that IF statement works fine.There were two onload calls so it was only running the second of the two.