Usando jquery non dovresti avere di questi problemi.
Cavicchi Andrea Problemi con javascript, jquery, ajax clicca qui
Regole del Forum