On my site, I have a little gizmo that lets people change the style sheet that affects what the page looks like. The code is like this:

Code:
function ChangeStyle(DesiredStyle, NextStyle)
{
	window.document.getElementById("ScreenStyleSheet").href = "/Styles/" + DesiredStyle + ".Css";
	window.document.getElementById("ChangeStyleButton").href = "javascript:ChangeStyle('" + DesiredStyle + "', '" + NextStyle + "');";
	window.document.cookie = "Style =" + DesiredStyle;
}
function CheckCurrentStyle()
{
	var StyleCookie = window.document.cookie;
	if(StyleCookie != null)
	{
		if(StyleCookie == "Style=VibrantBlue"){ChangeStyle("VibrantBlue", "SimpleGray");}
	}
	else{ChangeStyle("SimpleGray", "VibrantBlue");}
}
Although I don't get an error, absolutely nothing happens. What should be happening is that the Simple Gray style sheet loads. Any ideas? Thanks in advance for all suggestions.