Try surrounding your stylesheet names in double-quotes:
document.write({linkStyleSheet ("ie3")}
Also, on that particular line in your javascript, you need the trailing
parenthesis:
document.write({linkStyleSheet ("ie3")})
[unless that was just a typo]
Alan