  function show_tab(tabset, active) 
  {
    active = parseInt(active);

    for (i=0;i<100;i++) 
	{
      _temp_tab_id = tabset + "#" + i;
      _temp_content_id = tabset + "_con" + "#" + i;

      _temp_tab = document.getElementById(_temp_tab_id);
      _temp_content = document.getElementById(_temp_content_id);

		if (_temp_tab && _temp_content) 
		{
			if (i == active) 
			{
			  _temp_tab.className = "active";
			  _temp_content.className = "active";
			} 
			else 
			{
			  _temp_tab.className = "inactive";
			  _temp_content.className = "inactive";
			}
		} 
		else 
		{
			break;
		}
    }
  }

function intrare()
{
	var e = document.getElementById('loginUserName'); 
	if (e !==null)
	{
		document.users_form.loginUserName.focus();
	}
}

var fereastra = null;
			
function deschide_fereastra(mypage,myname,w,h,pos,infocus){
if (pos == 'random')
{leftposition=(screen.width)?math.floor(math.random()*(screen.width-w)):100;topposition=(screen.height)?math.floor(math.random()*((screen.height-h)-75)):100;
}
else
	{leftposition=(screen.width)?(screen.width-w)/2:100;topposition=(screen.height)?(screen.height-h-100)/2:100;}
	settings='width='+ w + ',height='+ h + ',top=' + topposition + ',left=' + leftposition + ',scrollbars=yes,location=no,directories=no,statusbar=no,menubar=no,toolbar=no,resizable=yes';
	fereastra  =window.open('',myname,settings);
	if(infocus=='front'){fereastra.focus();fereastra.location=mypage;}
	if(infocus=='back'){fereastra.blur();fereastra.location=mypage;fereastra.blur();}
}

