
// cookieの設定
function SetCookieCommon(name, value, days, path) {
	//alert('SetCookieCommon');
	/*
	// 形式の変更
	var date = new Date();
	date.setTime(date.getTime() + days*1000);
	days = date.toGMTString();

	var			temp = name + "=" + value;
	if(days)	temp += "; expires=" + days;
	temp += "; path=" + path;
	document.cookie = temp;
	*/
	SetCookieLo(name, value, days, path, "");
}

// cookieの設定
function SetCookieCommonDay(name, value, days) {
	// ローカルパスの取得
	// 1パスまで有効
	var strLocal = location.pathname;
	var arrLocal = strLocal.split("/");
	var strPath = "";
	for(var i = 1; i < arrLocal.length && i < 2; i++){
		strPath = strPath + "/" + arrLocal[i];
	}
	strPath = strPath + "/";

	cookie.set(name, value, days, strPath);
}

// cookieの設定
function SetCookieCommonFt(name, value, path) {
	//alert('SetCookieCommonFt');
	
	SetCookieFt(name, value, path, "");
}
