var exp = new Date(); 
exp.setTime(exp.getTime() + (9999*24*60*60*1000));

// ***************This function sets the style values (Do you think a swithch block would be better here?)

function ss ()
{
	var myNumber = getCookieVal();
	if (myNumber == "")
	{
		myNumber = 2;
	}
	
	if (myNumber == "1") 
	{ 
		document.write('<link rel="stylesheet" type"text/css" href="acc.css">');
	}
	if (myNumber == "2")
	{ 
		document.write('<link rel="stylesheet" type"text/css" href="acc2.css">'); 
	}
	if (myNumber == "3") 
	{ 
		document.write('<link rel="stylesheet" type"text/css" href="acc3.css">'); 
		myStyle=myNumber;
	}
	if (myNumber == "4")
	{ 
		document.write('<link rel="stylesheet" type"text/css" href="acc4.css">'); 
	}
	if (myNumber == "5") 
	{ 
		document.write('<link rel="stylesheet" type"text/css" href="acc5.css">'); 
	}
	var myNumber = "";
	return myNumber;
}

//*************** This function retrieves the cookie value
function getCookieVal ()
{  
	return unescape(document.cookie.substring(13, 14));
}
// *****************This function sets the cookie value (I think this is open source script)
function SetCookie (name, value)
{
	var argv = SetCookie.arguments;  
	var argc = SetCookie.arguments.length;  
	var expires = (argc > 2) ? argv[2] : null;  
	var path = (argc > 3) ? argv[3] : null;  
	var domain = (argc > 4) ? argv[4] : null;  
	var secure = (argc > 5) ? argv[5] : false;  
	document.cookie = name + "=" + escape (value) + 
	((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
	((path == null) ? "" : ("; path=" + path)) +  
	((domain == null) ? "" : ("; domain=" + domain)) +    
	((secure == true) ? "; secure" : "");
}

// *******************Function to remove the settings (I think this is open source script but does nothing in this program)
function DeleteCookie (name)
{  
	var exp = new Date();  
	exp.setTime (exp.getTime() - 1);  
	var cval = GetCookie (name);  
	document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}
// ********************This function is used when the user gives his selection
function doRefresh()
{
	location.reload();
}

// This will call the main function.  Do not remove this, because otherwise this script will do nothing...
document.write(ss());
