Choosing between stylesheets

Hey guys,

I want to be able to choose between two different stylesheets based on 
whether the browser supporst DOM2 or not. I had originally thought to use

if(document.getElementById){
document.write("<" + "link rel='STYLESHEET' type='text/css' 
href='style_DOM.css'>");
else{
document.write("<" + "link rel='STYLESHEET' type='text/css' 
href='style_OLD.css'>");
}

but that doesn't seem to work. Any ideas on how to accomplish this?

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

Received on Wednesday, 28 November 2001 13:15:34 UTC