hi, here is the entire page re-written. the PHP parts only appear in certain parts of the javascript where it was necessary to have php code performed. basically the page goes in and out of php/javascript.
you should rename your page to have .php as the extension however it is usually quite easy to set up the server to parse html (.htm/.html) files as php also but unless you have done this just be safe and use .php
this site has a pretty great archive of php scripts for all catagories. I have used some really good freeware php scripts from it before