neues_Fenster = null;

/*
function errorTrap() {return true;}
window.onerror = errorTrap;
*/


function Zeigen(Breite0,Hoehe0,Url0,Scroll0)
{
   Breite = Breite0;
   Hoehe = Hoehe0;
   Url = Url0;
   Scroll = Scroll0;
   zu();
   setTimeout("sichtbar()",1000);
}

function sichtbar()
{
   Fenster_Hoehe = Hoehe + 30;
   Fenster_Breite = Breite + 40;
   Optionen = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+Scroll+',resizable=0,height='+Fenster_Hoehe+',width='+Fenster_Breite;
   neues_Fenster = window.open(Url, 'OFS', Optionen);
}

function zu()
{
   if (neues_Fenster != null)
     if (!neues_Fenster.closed)
        if (neues_Fenster.close)
           neues_Fenster.close();
}


function Zeigen1(Breite0,Hoehe0,Url0,Scroll0)    // resizable window
{
   Breite = Breite0;
   Hoehe = Hoehe0;
   Url = Url0;
   Scroll = Scroll0;
   zu();
   setTimeout("sichtbar1()",1000);
}

function sichtbar1()
{
   Fenster_Hoehe = Hoehe + 30;
   Fenster_Breite = Breite + 40;
   Optionen = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+Scroll+',resizable=1,height='+Fenster_Hoehe+',width='+Fenster_Breite;
   neues_Fenster = window.open(Url, 'OFS', Optionen);
}




function switchToTab(selectedCardID)
{

	for(i = 1; i <= numberOfTabs; i++)
	{

		tabSelectorID = 'tab-selector-' + i;
		tabContentID = 'tab-content-' + i;
		document.getElementById(tabSelectorID).className = 'tab-sel-of';
		document.getElementById(tabContentID).className = 'tab-content-of';
	}


	tabSelectorID = 'tab-selector-' + selectedCardID;
	tabContentID = 'tab-content-' + selectedCardID;
	document.getElementById(tabSelectorID).className = 'tab-sel-on';
	document.getElementById(tabContentID).className = 'tab-content-on';

}


function highlightButton(what, status)
{
	if(status == 1)
	{
		what.style.color = '#FF6700';
		what.style.textDecoration = 'underline';
		what.style.cursor = 'pointer';
	}
	else
	{
		what.style.color = '#666666';
		what.style.textDecoration = 'none';
		what.style.cursor = 'normal';
	}
}
