non e' meglio usare i metodi del DOM?
http://forum.html.it/forum/showthrea...hreadid=848168