JS: Creating Code Generator

I am making a Code Generator so when a user enters their e-mail address, code is generated, and their e-mail address is displayed inside the code.

However, I have a problem with the script. Dunno exactly what it is, but my guess is the problem is with displaying the code.

Here is a link to a correctly working form using the same method:
www.mrbobdouglas.com/dev/errorpage.htm

And the link to the page I am having a porblem with is:
www.mrbobdouglas.com/dev/errorpage2.htm

I would like errorpage2.php to display the functions.inc.php except where you enter the e-mail address, it uses the e-mail address the user entered in above.

I have included the functions.inc.php file as well as the 404.php file in the attached zip.

[EDIT] I have corrected the problem. You mut use a / before anything like to display a
you will need to use /
.[/EDIT]