
//layer hiddener
function shSec(id)
{
	ossze_megye_zar();
	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";
	}
}


//text area size changer
function emTSize(id)
{
	if(!document.getElementById) return;
	var o=document.getElementById(id);
	if(o)
	{
		if(o.style.width!="350px")
		{
			o.style.width="350px";
			o.style.height="200px";
		}
		else
		{
			o.style.width="200px";
			o.style.height="120px";
		}
	}
}



//layer hiddener vice versa
function exxiteShowVice(id,id1)
{
	if(!document.getElementById) return;
	var o=document.getElementById(id);
	var o1=document.getElementById(id1);
	if(o)
	{
		if(o.style.display=="block")
		{
			o.style.display="none";
			o1.style.display="block";
		}
		else
	  {
			o.style.display="block";
			o1.style.display="none";
		}
	}
}

//popup opener
function exxitePop(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();
}

//layer hiddener with iconchanger
function exxiteFShow(id)
{
	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="/res/openarrow.gif";
		}
		else
	 {
			o.style.display="block";
			i.src="/res/closearrow.gif";
	 }
	}
}


function tabber(tabnum,maxtabnum)
{
	if(!document.getElementById) return;
	for(i=1; i<=maxtabnum; i++)
	{
		id1='t'+String(i);
		id2='te'+String(i);
		id3='tt'+String(i);
		var o1=document.getElementById(id1);
		var o2=document.getElementById(id2);
		var o3=document.getElementById(id3);
		if(i==tabnum)
		{
			o3.style.display="block";
			o2.style.background="url(/res/tabmenuselendbg.gif)";
			o1.style.background="url(/res/tabmenuselbg.gif)";
		}
		else
		{
			o3.style.display="none";
			o2.style.background="url(/res/tabmenuendbg.gif)";
			o1.style.background="url(/res/tabmenubg.gif)";
		}

	}
}
