Al, it is a case of building up the contents of the new page with more document.writes:
Code:
document.write ("style>\r/* unvisited link */\ra:link {\r color: red;\r}\r\r");
document.write ("/* visited link */\ra:visited {\r color: green;\r}\r\r");
document.write ("/* mouse over link */\ra:hover {\r color: hotpink;\r}\r\r");
document.write ("/* selected link */\ra:active {\r color: blue;\r}\r");\r</script>");
would be the structure but there there lots of validation pitfalls so i may have it wrong.
The \r is supposed to be a CRLF but it might be \a or \n or any mix.
Other non-alphabet characters may need to be "escaped": <, > and /.
This should be enough to get you on track.
Look the the HTML source and progress step-by-step.
Acorn
Bookmarks