Eventualmente se preferisci un approccio DOM leggi qui
Cavicchi Andrea Problemi con javascript, jquery, ajax clicca qui
Regole del Forum