function tTab(obj)
{
	arTabs = new Array('pTab1', 'pTab2', 'pTab3', 'pTab4', 'pTab5', 'pTab6');
	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_padding3';
			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;
}
