Thanks Maximillian
Yes the scripting sort of grew to quite a large size (though
you should see the size of the HTML.....)
Anyway, you inspired me to do some more investigating, and I found that the problem was with the line:
document.getElementById('css').href = css + 'css.css';
(which simply refers to the HTML line
link id = "css" rel = "stylesheet" type = "text/css" href = "mainshortcss.css" / )
Now, the site has 4 stylesheets: maincss.css, mainshortcss.css, largecss.css, largeshortcss.css. Here is some strange information about how things seem to be working:
1) With Mozilla and Netscape browsers there are no problems at all and everything is working fine.
2) With Internet Explorer, the stylesheets maincss.css and largecss.css are working fine.
3) In IE, if maincss.css or largecss.css are called using the javascript line above, they result in the browser freezing, BUT....
4) The problem cannot be with the stylesheets themselves because if maincss.css or largecss.css are called through the HTML link tag, everything works fine, even in IE.
What is going on....?