I've spent the best part of the afternoon using PHP to write JavaScript...

One part doesn't entirely work in FF, but I'm working on that. This particular page is a complex form (far too many ifs and maybes), nearing 300 lines of code. I'm quite pleased with it! :)