function changebg(a,stat,level)
	{
	if(document.all || document.getElementsByTagName)
		{
		if (level == 1)
			{
			if (stat) col = '#cd4516';
			else col = '#de8a57';
			}
		else
			{
			if (stat) col = '#cd4516';
			else col = '#818497';
			}
		a.style.backgroundColor = col;
		}
	return false;
	}


function change(a,stat)
	{
	if(document.all || document.getElementsByTagName)
		{
		if (stat) col = '#e1e3e9';
		else col = 'white';
		a.style.color = col;
		}
	return false;
	}

neues_Fenster = null;

function stopError()
	{
	return true;
	}

window.onerror = stopError;

function popup(Document0,Breite0,Hoehe0)
	{
 	Document = Document0;
	Breite = Breite0;
	Hoehe = Hoehe0;
	zu();
	setTimeout("sichtbar()",1000);
	}

function sichtbar()
	{  
	Fenster_Hoehe = Hoehe;
	Fenster_Breite = Breite;
	Optionen = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,height='+Hoehe+',width='+Breite;
	neues_Fenster = window.open(Document,'',Optionen)
	}

function zu()
	{
	if (neues_Fenster != null)
	if (!neues_Fenster.closed)
	neues_Fenster.close();
	}

function get_object(name)
	{
	if (document.getElementById) return document.getElementById(name);
 	else if (document.all) return document.all[name];
 	else if (document.layers) return document.layers[name];
	return false;
	}

function check_checkbox(id)
	{
	if (check_box = get_object(id))
		{
		if (!check_box.disabled)
			{
			check_box.checked = !check_box.checked;
			if (check_box.onclick) check_box.onclick();
			}
		}
	}

function select_radio(id)
	{
	if (radio_but = get_object(id))
		{
		radio_but.checked = true;
		if (radio_but.onclick) radio_but.onclick();
		}
	}
