JahrBez = 'Jahre'

ZielFilter = ''
AptFilter  = '-'
AptStyle=1

DatArray = new Array("So","Mo","Di","Mi","Do","Fr","Sa","??");
/* ------------------------------------------------------------------ */




/* ------------------------------------------------------------------ */

AbflugArray = new Array(

"W|&lt;Westdeutschland&gt;",
"O|&lt;Ostdeutschland&gt;",
"S|&lt;Süddeutschland&gt;",
"N|&lt;Norddeutschland&gt;",
"M|&lt;Mitteldeutschland&gt;",
"|-----------------------",
"AMSxENSxGRQxMSTxRTM|&lt;Niederlande&gt;",
"BSLxGVAxZRHxMLH|&lt;Schweiz&gt;",
"GRZxINNxKLUxKLFxLNZxSZGxVIE|&lt;Österreich&gt;",
"WROxGDNxKTWxPOZxWAWxKRK|&lt;Polen&gt;",
"ARNxBLLxCPHxOSLxGOT|&lt;Skandinavien&gt;",
"|-----------------------",
"AMS|Amsterdam (NL)",
"MLHxBSL|Basel / M&uuml;lhausen",
"SXFxTXL|&lt;Berlin Allg.&gt;",
"SXF|Berlin Sch&ouml;nefeld",
"TXL|Berlin Tegel",
"BLL|Billund (DK)",
"BTS|Bratislava (CZ)",
"BRE|Bremen",
"DTM|Dortmund",
"DRS|Dresden",
"DUS|Düsseldorf",
"EIN|Eindhoven (NL)",
"ERF|Erfurt",
"FRA|Frankfurt/Main",
"FDH|Friedrichshafen",
"GRZ|Graz (A)",
"GOT|Göteborg (SE)",
"HHN|Hahn",
"HAM|Hamburg",
"HAJ|Hannover",
"INN|Innsbruck (A)",
"FKB|Karlsruhe",
"CGN|Köln/Bonn",
"CPH|Kopenhagen (DK)",
"LEJ|Leipzig",
"LNZ|Linz (A)",
"LUX|Luxemburg (L)",
"LBC|Lübeck",
"LGG|Lüttich (B)",
"MST|Maastricht (NL)",
"NRN|Niederrhein/Weeze",
"FMM|Memmingen",
"MUC|München",
"FMO|Münster",
"NUE|Nürnberg",
"OSL|Oslo (NO)",
"PAD|Paderborn",
"RLG|Rostock",
"SCNxZQW|&lt;Saar- o. Zweibrücken&gt;",
"SCN|Saarbrücken",
"SZG|Salzburg (A)",
"SZW|Schwerin",
"ARN|Stockholm Arlanda (SE)",
"STR|Stuttgart",
"VIE|Wien (A)",
"BUD|Budapest (HUN)",
"KRK|Krakau (PL)",
"WAW|Warschau (PL)",
"PRG|Prag (CZ)",
"ZRH|Zürich (CH)",
"ZQW|Zweibrücken"
);


AbflugArray2 = new Array();



/* ------------------------------------------------------------------ */

function AH(ShowRegs, StdHeader,Default )
{
  return Ah(ShowRegs, StdHeader,Default, '-')
}

function Ah(ShowRegs, StdHeader,DefaultLabel, DefaultVal)
{
	af1 = AptFilter.substr(0,1)
	if (af1 != '-') ShowRegs=0
	if (StdHeader)     document.write('<select name=RW  style="width:130px;font-size: 12px;" size=1 >') 
	if (DefaultLabel != '') document.write('<option selected value="' +DefaultVal +'">' +DefaultLabel+ '</option>');

	if (AptStyle==2)
	{
		Groups=0    

		for (i=0; i < AbflugArray2.length; i++)
		{
			Str = AbflugArray2[i]
			pos = Str.indexOf('|')
			Tlc = Str.substring(0,pos)
			Label = Str.substring(pos+1,99)
			if (pos==0) 
			{
				++Groups
				if (af1 != '-') continue
				if (Groups==1) 
				{
					if (ShowRegs==0) continue
				}	
				else document.write('</optgroup>')
				document.write('<optgroup label="'+Label + '">')
				continue
			}	
			if (Groups==1 && ShowRegs==0) continue 
			if (af1 != '-' && AptFilter.indexOf(Tlc) == -1) continue
			document.write('<option value='+ Tlc + '>'+ Label + '</option>');
		}
		document.write('</select>');
		return;	
	}
	
	for (i=0; i < AbflugArray.length; i++)
	{
		Str = AbflugArray[i]
		pos = Str.indexOf('|')
		Tlc = Str.substring(0,pos)
		Label = Str.substring(pos+1,99)
		if (Tlc.length <= 1)
		{ 
			if (ShowRegs==0) continue
		}
		else 
		{
			if (af1 != '-' && AptFilter.indexOf(Tlc) == -1) continue
		}
		document.write('<option value='+ Tlc + '>'+ Label + '</option>');
	}
	document.write('</select>');
}


function AH2(ShowRegs, StdHeader,Default )
{
  return Ah2(ShowRegs, StdHeader,Default, '-')
}

function Ah2(ShowRegs, StdHeader,DefaultLabel, DefaultVal)
{
	af1 = AptFilter.substr(0,1)
	if (af1 != '-') ShowRegs=0
	if (StdHeader)     document.write('<select name=RW=-&RW  style="width:130px;font-size: 12px;" size=1 >') 
	if (DefaultLabel != '') document.write('<option selected value="' +DefaultVal +'">' +DefaultLabel+ '</option>');

	if (AptStyle==2)
	{
		Groups=0    

		for (i=0; i < AbflugArray2.length; i++)
		{
			Str = AbflugArray2[i]
			pos = Str.indexOf('|')
			Tlc = Str.substring(0,pos)
			Label = Str.substring(pos+1,99)
			if (pos==0) 
			{
				++Groups
				if (af1 != '-') continue
				if (Groups==1) 
				{
					if (ShowRegs==0) continue
				}	
				else document.write('</optgroup>')
				document.write('<optgroup label="'+Label + '">')
				continue
			}	
			if (Groups==1 && ShowRegs==0) continue 
			if (af1 != '-' && AptFilter.indexOf(Tlc) == -1) continue
			document.write('<option value='+ Tlc + '>'+ Label + '</option>');
		}
		document.write('</select>');
		return;	
	}
	
	for (i=0; i < AbflugArray.length; i++)
	{
		Str = AbflugArray[i]
		pos = Str.indexOf('|')
		Tlc = Str.substring(0,pos)
		Label = Str.substring(pos+1,99)
		if (Tlc.length <= 1)
		{ 
			if (ShowRegs==0) continue
		}
		else 
		{
			if (af1 != '-' && AptFilter.indexOf(Tlc) == -1) continue
		}
		document.write('<option value='+ Tlc + '>'+ Label + '</option>');
	}
	document.write('</select>');
}


function AH3(ShowRegs, StdHeader,Default )
{
  return Ah3(ShowRegs, StdHeader,Default, '-')
}

function Ah3(ShowRegs, StdHeader,DefaultLabel, DefaultVal)
{
	af1 = AptFilter.substr(0,1)
	if (af1 != '-') ShowRegs=0
	if (StdHeader)     document.write('<select name=RW=-&RW=-&RW  style="width:130px;font-size: 12px;" size=1 >') 
	if (DefaultLabel != '') document.write('<option selected value="' +DefaultVal +'">' +DefaultLabel+ '</option>');

	if (AptStyle==2)
	{
		Groups=0    

		for (i=0; i < AbflugArray2.length; i++)
		{
			Str = AbflugArray2[i]
			pos = Str.indexOf('|')
			Tlc = Str.substring(0,pos)
			Label = Str.substring(pos+1,99)
			if (pos==0) 
			{
				++Groups
				if (af1 != '-') continue
				if (Groups==1) 
				{
					if (ShowRegs==0) continue
				}	
				else document.write('</optgroup>')
				document.write('<optgroup label="'+Label + '">')
				continue
			}	
			if (Groups==1 && ShowRegs==0) continue 
			if (af1 != '-' && AptFilter.indexOf(Tlc) == -1) continue
			document.write('<option value='+ Tlc + '>'+ Label + '</option>');
		}
		document.write('</select>');
		return;	
	}
	
	for (i=0; i < AbflugArray.length; i++)
	{
		Str = AbflugArray[i]
		pos = Str.indexOf('|')
		Tlc = Str.substring(0,pos)
		Label = Str.substring(pos+1,99)
		if (Tlc.length <= 1)
		{ 
			if (ShowRegs==0) continue
		}
		else 
		{
			if (af1 != '-' && AptFilter.indexOf(Tlc) == -1) continue
		}
		document.write('<option value='+ Tlc + '>'+ Label + '</option>');
	}
	document.write('</select>');
}




