//layer hiddener
function shSec(id)
{
	if(!document.getElementById) return;
	var o=document.getElementById(id);
	if(o)
	{
		if(o.style.display=="block")
			o.style.display="none";
		else
			o.style.display="block";
	}
}

//show a layer
function hideL(id)
{
	if(!document.getElementById) return;
	var o=document.getElementById(id);
	o.style.display="none";
}

//hide a layer
function showL(id)
{
	if(!document.getElementById) return;
	var o=document.getElementById(id);
	o.style.display="block";
}

//layer hiddener with iconchanger
function FShow(id,icono,iconc)
{
	if(!document.getElementById) return;
	var o=document.getElementById(id);
	var i=document.getElementById('b'+id);
	if(o)
	{
		if(o.style.display=="block")
		{
			o.style.display="none";
			i.src=iconc;
		}
		else
	 {
			o.style.display="block";
			i.src=icono;
	 }
	}
}

//popup opener
function go(wintype,w,h,command)
{
  st=new String("toolbar=no,directories=no,status=no,scrollbars=no,menubar=no,width="+w+",height="+h);
  picture=window.open(wintype+command,"picture",st);
  picture.window.focus();
}

function exxiteTab(prefix,me,maxn)
{
	for(i=0; i < maxn; i++)
	{
	  o = document.getElementById(prefix+String(i));
	  o.className='tab';
	  o = document.getElementById('t'+prefix+String(i));
	  o.className='tabpanel';
	}
	o = document.getElementById(prefix+String(me));
	o.className='seltab';
	o = document.getElementById('t'+prefix+String(me));
	o.className='seltabpanel';
}