All credit for javascript Maroslaw
Codice sorgente txt