http://www.quirksmode.org/js/popup.html

How would I apply CSS to a popup using that method? The write method replaces all content and I'm trying to bring up another page on a message board. I tried innerHTML and I couldn't get it to work.