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 na_hide_layer(lname)
{
  if (document.layers)
    document.layers[lname].visibility = 'hide'    
  if(document.all)
    document.all(lname).style.visibility = 'hidden' 
}

function na_show_layer(lname)
{
 if (lname == '') return;
 
 var layer  = document.all ? document.all(lname).style : document.layers[lname];
 var show  = document.all ? 'visible' : 'show';
 var hide  = document.all ? 'hidden' : 'hide';
 
 if (na_show_layer.arguments.length <= 1)
  layer.visibility = show;
 else
  layer.visibility = (na_show_layer.arguments[1] == 0 ? show : hide);
}

function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

function namosw_goto_byselect(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}

