	var lastTabViewed = '';	
	var currentTabInView = ''; 

	//blendet Inhalt des jeweiligen Tabs ein und ver�ndert Tabansicht
	function showTab(name,maxtabs) 
	{
		var id = name.split('_')[name.split('_').length-1];
		for(i=0;i<maxtabs;i++)
		{
			var tab = document.getElementById('tab_boxtab'+i+'_'+id);
			var tabcontent = document.getElementById('tabcontent_boxtab'+i+'_'+id);
			if (name == 'tab_boxtab'+i+'_'+id)
			{
				tabcontent.style.display = 'block';
				tab.className = "tab-aktiv";
			}
			else
			{
				tabcontent.style.display = 'none';
				if(i==(maxtabs-1))
				{
					tab.className = "tab-inaktiv tab-last";
				}
				else
				{
					tab.className = "tab-inaktiv";
				}
				
			}
		}
	}
	

	function handleTabHistory(name)
	{
		lastTabViewed = currentTabInView;
		currentTabInView = name;	
	}

	function goBack()
	{
		showPage(lastTabViewed,'')
	}


	function openWindow(url, iHeight, iWidth)
	{
		var windowHeight = iHeight;
		var windowWidth = iWidth+26;			//Addition wegen Fensterrand und resize
		sParameter = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,left=0,top=0,height='+windowHeight+',width='+windowWidth;
		
		if ( typeof openWin=="undefined" || openWin.closed ) {
			openWin = window.open(url, "", sParameter);
		}
		openWin.resizeTo(windowWidth,windowHeight);
		openWin.focus();
	}
		
	function showHide(name) 
	{
		var e = document.getElementById(name);
		var visible = e.style.display == 'block'
		e.style.display = (visible) ? 'none' : 'block';
		var checkboxes = e.getElementsByTagName("input");
		for (i=0;i<checkboxes.length;i++) 
		{
			var checkbox = checkboxes[i];
			checkbox.checked = !visible;
		}
	}
		
		
		
	
	
	
	
		
		
