function SetCookieVar(name,value,expiredays,option){ // 쿠키명, 값, 기간

	var todayDate = new Date();
	todayDate.setDate( todayDate.getDate() + expiredays );
	expires = ' expires=' + todayDate.toGMTString() + ';';
	document.cookie = name + '=' + escape( value ) + '; path=/; domain=.mygle.net;' + expires;

	if(option=='reload') { self.location.reload(); }
} // end of function