// Save Cookie
function setCookie(theName, theVal) {
	if (theName != null && theVal != null) {
		var date = new Date();
		var saveTime = Math.floor(date.getTime() / 1000 / 60 / 60);
		date.setTime((saveTime + 100 * 24) * 60 * 60 * 1000); // Cookie save 100 days
//		date.setTime((saveTime + 0 * 24) * 60 * 60 * 1000 + 10 * 60 * 1000); // 10 minutes
		document.cookie = theName + "=" + escape(theVal) + "; expires=" + date.toGMTString();
//alert(date.toGMTString());
		return true;
	}
	return false;
}
function deleteCookie(theName) {
	document.cookie = theName + "=;expires=Thu, 01-Jan-70 00:00:01 GMT";
	return true;
}
// Load Cookie
function getCookie(theName) {
	theName += "=";
	var 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 "";
}
var saveData = getCookie("neokiData");
if (saveData == "") {
	saveData = "x";
}
function save(args) {
	setCookie("neokiData", args);
}
