I don't think Javascript is what you really want here. It's barely compatible among browsers, and people who don't have/want it are left out. Anyhow, what you're doing sounds more conducive to server-side includes (with the
<!--#exec > tag) than Javascript. Or you could just do it all in CGI. SSI and Perl will both work with any browser, anytime, anywhere, provided you can use them on your server. And writing full pages with
CGI.pm is really quite simple once you figure it out. You'll save yourself a lot of pain in the long run, and in this case, the short run too.