	var NOME_COOKIE="ckinfo";
	function getCookieVal (offsetb) {
		var endstrb = document.cookie.indexOf (";", offsetb);
		if (endstrb == -1)
		endstrb = document.cookie.length;
		return unescape(document.cookie.substring(offsetb, endstrb));
	}
	function GetCookie (searchcookie) {
		var argb = searchcookie + "=";
		var alenb = argb.length;
		var clenb = document.cookie.length;
		var ib = 0;
		while (ib < clenb) {
			var jb = ib + alenb;
			if (document.cookie.substring(ib, jb) == argb)
			return getCookieVal (jb);
			ib = document.cookie.indexOf(" ", ib) + 1;
			if (ib == 0) break;
		}
		return null;
	}

	VALORE_COOKIE = GetCookie(NOME_COOKIE);
	var string = VALORE_COOKIE;

	if (string!="" && string!="0" && string!=null && string!="null") {

		var pointer=string.lastIndexOf("ckinfo=#");
		var lung=string.indexOf("##");

		if (pointer != -1) {
					pointer=8;

					subpointer=8;

					while (string.charAt(pointer) != "|") pointer++;
					pointer++;
					subpointer=pointer;
					while (string.charAt(pointer) != "|") pointer++;

					VALORE = string.substring(subpointer, pointer);

					if (VALORE != "" && VALORE != null && VALORE != "null") {
						var POS = (VALORE.lastIndexOf(" ")+1);
						var c1 = VALORE.charAt(0);
						var c2 = VALORE.charAt(POS);
						if (c2==" ") {
							POS = POS+1;
							var c2 = VALORE.charAt(POS);
						}
						var c3 = VALORE.charAt(POS+1);
						if (c3==" ") {
							POS = POS+1;
							var c3 = VALORE.charAt(POS+1);
						}
						var c4 = VALORE.charAt(POS+2);
						if (c4==" ") {
							POS = POS+1;
							var c4 = VALORE.charAt(POS+2);
						}
						var codice_personale = c1+c2+c3+c4;
						codice_personale = codice_personale.substring(0,4);
						codice_personale = codice_personale.toUpperCase();
					}

					pointer++;
					subpointer=pointer;
					while (string.charAt(pointer) != "|") pointer++;
					pointer++;
					subpointer=pointer;
					while (string.charAt(pointer) != "|") pointer++;
					pointer++;
					subpointer=pointer;
					while (string.charAt(pointer) != "|") pointer++;
					pointer++;
					subpointer=pointer;
					while (string.charAt(pointer) != "|") pointer++;
					pointer++;
					subpointer=pointer;
					while (string.charAt(pointer) != "|") pointer++;
					pointer++;
					subpointer=pointer;
					while (string.charAt(pointer) != "|") pointer++;
					pointer++;
					subpointer=pointer;
					while (string.charAt(pointer) != "|") pointer++;
					pointer++;
					subpointer=pointer;
					while (string.charAt(pointer) != "|") pointer++;
					pointer++;
					subpointer=pointer;
					while (string.charAt(pointer) != "|") pointer++;
					pointer++;
					subpointer=pointer;
					while (string.charAt(pointer) != "|") pointer++;
					pointer++;
					subpointer=pointer;
					while (string.charAt(pointer) != "|") pointer++;
					pointer++;
					subpointer=pointer;
					while (string.charAt(pointer) != "|") pointer++;
					pointer++;
					subpointer=pointer;
					while (string.charAt(pointer) != "|") pointer++;
					pointer++;
					subpointer=pointer;
					while (string.charAt(pointer) != "|") pointer++;
					pointer++;
					subpointer=pointer;
					while (string.charAt(pointer) != "|" && string.charAt(pointer) != "#") pointer++;
				pointer++;
			}
	}