@ captainzap,
getelementbyid kullanmadım.
getElementsByTagName

kullandım. id= tanımlanmasına gerek yok.