//function getCookie(name) {
//	var str = document.cookie.split("; ")
//	for ( var i = 0; i < str.length; i++) {
//		var str2 = str[i].split("=");
//		if (str2[0] == name) {
//			return decodeURIComponent(str2[1]);
//			//unescape
//		}
//	}
//}

function getCookie(name){
	var cookieValue = "";
	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;
			cookieValue = decodeURIComponent(document.cookie.substring(offset, end))
		}
	}
	return cookieValue;
}

//获取用户信息
function getUserInfo() {
	return getCookie("2CE25168CE6E56C8A626DBB4A6A6B661");
}
function getNick() {
	var info=getUserInfo();
	return info==""?"":info.split("|")[0];
}
function getUName() {
	var info=getUserInfo();
	return info==""?"":info.split("|")[1];
}

//获取最后登录信息
function getLastInfo() {
	return getCookie("500D1E043ADA8B16A11A9AF6E81CA177");
}
function getLastTime() {
	var info=getLastInfo();
	return info==""?"":info.split("|")[0];
}
function getLastIP() {
	var info=getLastInfo();
	return info==""?"":info.split("|")[1];
}

//获取玩家邮箱、二级密码是否设置
function getFZSafeInfo() {
	return getCookie("9AD380AE66781D614140D48C693F42BE");
}
function getEmailCheck() {
	var info=getFZSafeInfo();
	return info==""?"":info.split("|")[0];
}
function getTwoPswdSet() {
	var info=getFZSafeInfo();
	return info==""?"":info.split("|")[1];
}
function getEmail() {
	var info=getFZSafeInfo();
	return info==""?"":info.split("|")[2];
}
