dovresti usare JavaScript, leggendo questo thread potresti prendere qualche spunto.

ciao