JavaScript for PHP5 — 'fork' from http://j4p5.sourceforge.net/