function tTab(obj)
{
	var arTabs = new Array('tTab1', 'tTab2', 'tTab3');
	var prevActive = 0;
	var intLen = arTabs.length;
	
	for(i = 0; i < intLen; i++)
	{
		
		objT =  document.getElementById(arTabs[i]);
		objTa = document.getElementById(arTabs[i] + 'a'); 
		objTb = document.getElementById(arTabs[i] + 'b'); 

		if(obj.id == arTabs[i])
		{
			objT.className = 'tab_button none';
			objTa.className = 'tab_button_active';
			objTb.className = 'block block_padding2';
			prevActive = 1;
		} else
		{			
			objT.className = prevActive == 1 ? 'tab_button negativ_margin' : 'tab_button';
			objTa.className = 'tab_button_active none';
			objTb.className = 'block block_padding2 none';
			prevActive = 0;
		}

	}
	return false;
}

function tTab2(obj)
{
	arTabs = new Array('sTab1', 'sTab2', 'sTab3');
	
	prevActive = 0;
	
	for(i = 0; i < arTabs.length; i ++)
	{
		objT = document.getElementById(arTabs[i]);
		objTa = document.getElementById((arTabs[i] + 'a')); 
		objTb = document.getElementById((arTabs[i] + 'b')); 
		
		if(obj.id == arTabs[i])
		{
			objT.className = 'tab_button none';
			objTa.className = 'tab_button_active';
			objTb.className = 'block block_padding';
			prevActive = 1;
		} else
		{			
			objT.className = prevActive == 1 ? 'tab_button negativ_margin' : 'tab_button';
			objTa.className = 'tab_button_active none';
			objTb.className = 'block block_padding none';
			prevActive = 0;
		}

	}
	return false;
}