

var times = getCookie("Times");
if (times == "") {
	times = 1;
}else{
	times++;
}

setCookie("Times", times);



function getCookie(theName) {
	theName += "=";
	theCookie = document.cookie + ";";
	var start = theCookie.indexOf(theName);
	if(start != -1) {
		var end = theCookie.indexOf(";", start);
		return unescape(theCookie.substring(start + theName.length, end));
	}
	return false;
}

function setCookie(key, val, tmp) {
	tmp = key + "=" + escape(val) + ";";
	// tmp += "path=" + location.pathname + "; ";
	//tmp += "expires=Tue, 31 Dec 2000 00:00:00 GMT;";
	document.cookie = tmp;
}

function clearCookie(key) {
	document.cookie = key + "=" + "xx; expires=Tue, 1-Jan-1980 00:00:00;";
}
