DatArray = new Array("So","Mo","Di","Mi","Do","Fr","Sa","??" )
ZieleArray = new Array(
"ANSEDt Nordsee",
"AOSEDt Ostsee",
"AHOLHolland",
"ABELBelgien",
"ADAFDänemark",
"ACBLCosta Blanca (E)",
"ACBRCosta Brava (E)",
"ACDOCosta Dorada (E)",
"AFATAtlantikküste (F)",
"AFBRBretagne (F)",
"AFBRNormandie (F)",
"AFCDC.d´Azur/Provence (F)",
"AGARGardasee (I)",
"AADRMittlere ital. Adria (I)",
"AOADObere ital. Adria (I)",
"ATOSToskana (I)",
"BALLAllgäu (D)",
"BBYWBayrischer Wald (D)",
"BSWDSchwarzwald (D)",
"BBODBodensee (D)",
"BBYNBayern (D)",
"BDNBErzgebirge (D)",
"BMIGMittelgebirge (D)",
"BHAZHarz (D)",
"BABLBurgenland (AU)",
"BASLSalzburger Land (AU)",
"BASMSteiermark (AU)",
"BAKAKärnten (AU)",
"BATITirol (AU)",
"BANONiederösterreich (AU)",
"BAOTOsttirol (AU)",
"BSCHSchweiz (CH)",
"BFALFranz. Alpen (F)",
"BSXBElsaß (F)",
"BDOLSüdtirol (I)",
"BTSCRiesengeb./Böhmen (CZ)",
"CDSTin Deutschland",
"CFSTin Frankreich",
"CYSTin Italien",
"CASTin Österreich",
"CNSTin Holland",
"CWSTin England",
"CTSTin Tschechien",
"DFUNFunparks",
"DGDOGran Dorado",
"DSUNSun Parks",
""
);
function Search()
{
with (window.document.GO)
{
Ra = parseInt(ERW.options[ERW.selectedIndex].value)
if (KA1.selectedIndex != 0) Ra++
if (KA2.selectedIndex != 0) Ra++
if (Ra >4)
{
	alert("Es sind nur max. 4 Reisende möglich!")
	return
}

RA.value=Ra
submit()
}
}

function Search_car()
{
with (window.document.SUCHE)
{
Ra = parseInt(RA.options[RA.selectedIndex].value)
if (KA1.selectedIndex != 0) Ra++
if (KA2.selectedIndex != 0) Ra++
if (Ra >8)
{
	alert("Es sind nur max. 4 Reisende möglich!")
	return
}

LMIN.value = xL.options[xL.selectedIndex].value.substr(0,2)
	LMAX.value = xL.options[xL.selectedIndex].value.substr(3,2)

submit()
}
}


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=='Netscape')&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function SELECT_VON()
{
document.write("<select name='VON' size=1>")
for (var i=1; i<=365;i++)
{
document.write('<option value='+i+'>'+GetDatum(i)+'')
}
document.write("</select>")
}
function SELECT_BIS()
{
document.write("<select name='BIS' size=1>")
for (var i=4; i<=365;i++)
{
if (i==15) document.write('<option selected ');  else document.write('<option ');
document.write('value='+i+'>'+GetDatum(i)+'')
}
document.write('</select>')
}
function GetDatum(offset)
{ var time = new Date()
  time.setTime( time.getTime()+offset*86400000);
  tag     = time.getDate();
  monat   = time.getMonth()+1;
  jahr    = time.getYear();
  if (tag   < 10)   tag   = "0"+tag;
  if (monat < 10)   monat = "0"+monat;
  if (jahr  < 2000) jahr += 1900;
  return tag+'.'+monat+'.'+jahr+' '+DatArray[time.getDay()];
}
function AH()
{
document.write('<select name=RW size=1> <option selected value=->&lt; weitere Abflüge&gt;')
for (i=0; i < AbflugArray.length; i++)
{
	document.write('<option value='+ AbflugArray[i].substr(0,3)+'>'+AbflugArray[i].substr(3)+'')
}
document.write('</select>')
}
function SZ(ID)
{
iz=0;

for (i=0; i < ZieleArray.length; i++)
{
	 ziel = ZieleArray[i];

	 if (ziel.substr(0,1) != ID) continue
window.document.SUCHE.ZIEL.options[iz]= new Option(ziel.substr(4), ziel.substr(1,3) );
iz++;
}
window.document.SUCHE.ZIEL.options.length=iz;
window.document.SUCHE.ZIEL.selectedIndex=0;
}
function rtyp()
{
	for (i=0; i<99;i++) if (document.SUCHE.xT[i].checked) return document.SUCHE.xT[i].value;
}
function Init()
{
SZ( rtyp() )
}
