function tpllogMtotalcheck()
{
	getId('sess_total_num').innerHTML = numLoginUsersTotal;
	setTimeout("tpllogMtotalcheck()",5000);
}
function tplConfigSwitch(type)
{
	if (type == 'fixL')
	{
		setCookie('tplConfig',ko_tplwidth+'|0 auto 0 0|',1);
		getId('wrap').style.width = ko_tplwidth;
		getId('wrap').style.margin = '0 auto 0 0';
	}
	if (type == 'fixC')
	{
		setCookie('tplConfig',ko_tplwidth+'|auto|',1);
		getId('wrap').style.width = ko_tplwidth;
		getId('wrap').style.margin = 'auto';
	}
	if (type == 'fixR')
	{
		setCookie('tplConfig',ko_tplwidth+'|0 0 0 auto|',1);
		getId('wrap').style.width = ko_tplwidth;
		getId('wrap').style.margin = '0 0 0 auto';
	}
	if (type == 'wide')
	{
		setCookie('tplConfig','100%|0 auto 0 0|',1);
		getId('wrap').style.width = '100%';
		getId('wrap').style.margin = '0 auto 0 0';
	}
	tplConfigLayer('none');
}
function tplConfigLayer(flag)
{
	getId('alignlayer').style.display=flag;
}


// 트위터
function twitter(msg, url) {
  var href = "http://twitter.com/?status=" + encodeURIComponent(msg) + " " + encodeURIComponent(url)
  var win = window.open(href, 'twitter', '');
  if (win) {
    win.focus();
  }
}

// 미투데이
function me2day(msg, url, tag) {
  var href = "http://me2day.net/posts/new?new_post[body]=" + encodeURIComponent(msg) + " " + encodeURIComponent(url) + "&new_post[tags]=" + encodeURIComponent(tag);
  var win = window.open(href, 'me2Day', '');
  if (win) {
    win.focus();
  }
}

// 페이스북
function facebook(url) {
  var href = "http://www.facebook.com/sharer.php?u=" + url;
  var win = window.open(href, 'facebook', '');
  if (win) {
    win.focus();
  }
}

// 요즘
function yozm(msg, url, tag) {
  var href = "http://yozm.daum.net/api/popup/prePost?sourceid=54&link=" + encodeURIComponent(url) + "&prefix=" + encodeURIComponent(msg) + "&parameter=" + encodeURIComponent(tag);
  var win = window.open(href, 'yozm', '');
  if (win) {
    win.focus();
  }
}

