function toggleVisibility(id, NNtype, IEtype, WC3type) {
    if (document.getElementById) {
        eval("document.getElementById(id).style.visibility = \"" + WC3type + "\"");
    } else {
        if (document.layers) {
            document.layers[id].visibility = NNtype;
        } else {
            if (document.all) {
                eval("document.all." + id + ".style.visibility = \"" + IEtype + "\"");
}}}}
function setCookie(name, value, Days, path) {
	var expires = new Date()
    expires.setTime(expires.getTime() + 1000*60*60*24*Days);
	
	 document.cookie = name + "=" + escape(value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path))
	}
 
	function getCookie(name) {
		var search = name + "="
	
		if (document.cookie.length > 0) {
			offset = document.cookie.indexOf(search)
 
			if (offset != -1) {
				offset += search.length
				end = document.cookie.indexOf(";", offset)
 
				if (end == -1) {
					end = document.cookie.length
				}
				
				return unescape(document.cookie.substring(offset, end))
			}}}	

