function tpllogMtotalcheck()
{
	getId('sess_total_num').innerHTML = numLoginUsersTotal;
	setTimeout("tpllogMtotalcheck()",5000);
}
function tplConfigSwitch(type)
{

	if (type == 'fixC')
	{
		setCookie('tplConfig',ko_tplwidth+'|auto|',1);
		getId('wrap').style.width = ko_tplwidth;
		getId('wrap').style.margin = 'auto';
	}

	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 == '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;
}