function toggleVisibility(theElementID) {
var theElement;
theElement = document.getElementById(theElementID);

	if (theElement.style.visibility != "visible") {
		theElement.style.visibility = "visible";
		theElement.style.display = "block";
	}
	else {
		theElement.style.visibility = "hidden";
		theElement.style.display = "none";
	}
}

function setCookie(c_name,value,expiredays){
	var exdate=new Date()
	exdate.setDate(exdate.getDate()+expiredays)
	document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : ";expires="+exdate.toGMTString())
}


function saveCookies(){
	var theColourDepth = screen.colorDepth;
	var theWidth = screen.width;
	var theHeight = screen.height;
	var cookieString=theWidth + " x " + theHeight;
	setCookie("cols",theColourDepth,1);
	setCookie("res",cookieString,1);
}


function deleteCookies() {
	setCookie("cols",theColourDepth,0);
	setCookie("res",cookieString,0);
	window.location.reload();
}

