
// GET Varaiablen auslesen
HTTP_GET_VARS=new Array();
strGET=document.location.search.substr(1,document.location.search.length);
if(strGET!='')
    {
    gArr=strGET.split('&');
    for(i=0;i<gArr.length;++i)
        {
        v='';vArr=gArr[i].split('=');
        if(vArr.length>1){v=vArr[1];}
        HTTP_GET_VARS[unescape(vArr[0])]=unescape(v);
        }
    }

function GET(v)
{
if(!HTTP_GET_VARS[v]){return '';}
return HTTP_GET_VARS[v];
}


 //http_query = document.location.search.substr(1,document.location.search.length);

// Abflughafen --Anfang----
AbflugArray = new Array(
"W  &lt;Westdeutschland&gt;",
"O  &lt;Ostdeutschland&gt;",
"S  &lt;Süddeutschland&gt;",
"N  &lt;Norddeutschland&gt;",
"M  &lt;Mitteldeutschland&gt;",
"AMSAmsterdam (NL)",
"MLHBasel (CH)",
"SXFBerlin Sch&ouml;nefeld",
"TXLBerlin Tegel",
"BLLBillund (DK)",
"BREBremen",
"DTMDortmund",
"DRSDresden",
"DUSD&uuml;sseldorf",
"EINEindhoven (NL)",
"ERFErfurt",
"FRAFrankfurt/Main",
"FDHFriedrichshafen",
"GRZGraz (A)",
"HHNHahn",
"HAMHamburg",
"HAJHannover",
"INNInnsbruck (A)",
"FKBKarlsruhe",
"CGNK&ouml;ln/Bonn",
"LEJLeipzig",
"LNZLinz (A)",
"LUXLuxemburg (L)",
"LBCL&uuml;beck",
"LGGL&uuml;ttich (B)",
"MSTMaastricht (NL)",
"NRNNiederrhein/Weeze",
"FMMMemmingen",
"MUCM&uuml;nchen",
"FMOM&uuml;nster",
"NUEN&uuml;rnberg",
"PADPaderborn",
"RLGRostock",
"SCNSaarbr&uuml;cken",
"SZGSalzburg (A)",
"SZWSchwerin",
"STRStuttgart",
"VIEWien (A)",
"WAWWarschau (PL)",
"PRGPrag (CZ)",
"ZRHZ&uuml;rich (CH)",
"ZQWZweibr&uuml;cken"
);

function abflughafen()
{
	 document.write('<select name="RW" id="RW" style="width:170px">'); 
	 document.write('<option value="">egal</option>');
	 for (i=0; i < AbflugArray.length; i++)
	 {
		
		if(AbflugArray[i].substr(1,1) == ' ' && GET('RW') == AbflugArray[i].substr(0,1)){
			
			document.write('<option selected value='+AbflugArray[i].substr(0,3)+'>'+AbflugArray[i].substr(3)+'</option>');
		
		} else if (GET('RW') == AbflugArray[i].substr(0,3)){
			
			document.write('<option selected value='+AbflugArray[i].substr(0,3)+'>'+AbflugArray[i].substr(3)+'</option>');
		
		}else{
			
			document.write('<option value='+AbflugArray[i].substr(0,3)+'>'+AbflugArray[i].substr(3)+'</option>');
		
		}
	 }

	 document.write('</select>');

}
// Abflughafen --Ende----
AutoZieleArray = new Array(
"B  Norddeutschland",
"NSE Nordsee",
"OSE Ostsee",
"DNO Norddeutschland",
"C  Süddeutschland",
"ALL Allgäu",
"SWD Schwarzwald",
"BOD Bodensee",
"BYN Bayern",
"FAR Franken/Altmühl./Rhön",
"D  West-/Mitteldeutschland",
"MOS Mosel/Nahe/Pfalz",
"SLD Sauerland",
"MIG Mittelgebirge/Umland",
"HAZ Harz",
"HES Hessen",
"RRU Rhein/Ruhr u. Umgebung",
"E  Ostdeutschland",
"ERZ Erzgebirge",
"DNB Sachsen/Thüringen",
"MBR Mecklenburg/Vorp.",
"BRN Brandenburg",
"F  Schweiz",
"SAF Saas Fee u. Umgebung",
"ZMT Zermatt u. Umgebung",
"ALS Aletschgebiet",
"EGL Engelberg, Andermatt",
"FLF Flims, Laax, Falera",
"ADK Arosa, Davos, Klosters",
"SMO St. Moritz (Engadin)",
"CLK Crans Montana u.Umg.",
"GAS Gstaad, Adelboden u.Umg.",
"EMJ Eiger, Mönch, Jungfrau ",
"VBR Verbier u. Umgebung",
"MHA Meiringen-Hasliberg",
"DAV Les Diablerets ",
"PDS Portes du Soleil",
"VWS Vierwaldstätter See ",
"GFS Genfer See",
"SCH restl. Schweiz",
"G  Österreich",
"ABL Burgenland",
"ASL Salzburger Land",
"ASM Steiermark",
"AKA Kärnten",
"ATI Tirol",
"ANO Nieder/Oberösterreich",
"AOT Osttirol",
"AFT Fahrradreisen",
"ACH Achental ",
"APB Alpbachtal,Wildschönau",
"ARL Arlberg ",
"AXA Axamer Lizum ",
"FBS Bad Kleink.,Schönleitn",
"BGZ Bregenzer Wald ",
"DTR Dachstein-Tauern ",
"KAP Europa Sportregion ",
"GTT Gasteiner Tal ",
"GRG Grossglock.,Heiligenbl. ",
"ISB Innsbruck u. Umgebung",
"ISG Ischgl, Samnaun ",
"KSG Kaisergebirge ",
"KNA Kaunertal ",
"KTS Katschberg u.Umgebung",
"KIZ Kitzbühler Alpen ",
"MFN Montafon ",
"OTZ Ötztal ",
"PZN Paznauntal ",
"PIZ Pitztal ",
"PTT Hochpustertal, Lienz",
"AMA Radtstädter Tauern ",
"RES Reschenpass,Nauders ",
"SAA Saalbach,Hinterglemm ",
"SEE Seefeld ",
"SFL Serfaus, Fiss, Ladis ",
"STB Stubaital ",
"TXT Tuxertal ",
"WLS Walsertal ",
"ZIL Zillertal ",
"ZGS Zugspitzarena ",
"H  Benelux",
"HOL Holland",
"BEL Belgien",
"I  Dänemark",
"DAF Dän.Küste u. Hinterland",
"J  Spanien",
"CBL Costa Blanca",
"CBR Costa Brava",
"CDO Costa Dorada",
"CAN Andalusien",
"NSP Nordspanien",
"K  Frankreich",
"FAL Alpen",
"KOR Korsika",
"FAT Atlantikküste",
"FSW Languedoc/Camargue",
"FBR Bretagne",
"FNO Normandie",
"FCD C.d´Azur/Provence",
"SXB Elsaß",
"L  Skandinavien",
"SWE Schweden",
"NOR Norwegen",
"M  Italien",
"BOL Emilia-Romagna",
"RIV Ligurische Riviera",
"GAR Gardasee",
"ADR Mittlere Adria",
"OAD Obere Adria/Venezien",
"TSK Toskana",
"DOL Südtirol/Dolomiten",
"UMB Umbrien",
"ICO Comosee/Lago Magiore",
"ILA Süditalien",
"AMF Golf v.Neapel/Amalfiküste",
"EBA Insel Elba",
"SAR Sardinien",
"SZN Sizilien/Liparische Inseln",
"N  England/Irland/Island",
"ENG England",
"KEF Island",
"IRL Irland",
"O  Kroatien",
"KRD Dalmatien",
"KRO Istrien",
"KRV Kvarner Bucht",
"P  Slowenien",
"SLW Slowenische Adria",
"SLJ Julische Alpen",
"Q  CZ/Rumän./Polen/Bulgarien",
"TSC Riesengeb./Böhmen",
"SLO Tatra/Karpaten (Slowakei)",
"MSN Masuren (Polen)",
"PKO Polnische Ostseeküste",
"BGS Bulgarien Küstenregion",
"BGF Bulgarien Inland",
"R  Ungarn",
"UNG Plattensee",
"S  Städtereisen",
"DST Deutschland",
"BST Belgien/Luxembrg",
"YST Italien",
"AST Österreich",
"FST Frankreich",
"WST England",
"XST Irland/Schottland",
"NST Holland",
"EST Schwed./Dän./Finnland",
"KST Schweiz",
"HST Ungarn",
"OST Polen",
"SST Spanien",
"PST Portugal",
"TST Tschechien",
"UST Türkei",
"GST Griechenland",
"MST Baltikum/Russland",
"TTT sonstige Städte",
"T  Ferienparks",
"CCP Center Parks",
"FUN Funparks",
"GDO Gran Dorado",
"SUN Sun Parks",
"PHA Phantasialand",
"DSY Disneyland Paris",
"U  Sonderreisen",
"FKR Flusskreuzfahrten",
"MKR Kreuzfahrten Mittelmeer",
"NKR Kreuzfahrten Nordeuropa",
"WKR Kreuzfahrten weltweit",
"SHA China Rundreisen",
"V  Diverse Ziele"


);
/* ------------------------------------------------------------------ */

function auto_ZIELE()
{
	 document.write('<select name="ZIEL" style="width:170px">'); 
	 document.write('<option value="">Alle...</option>');
	 for (i=0; i < AutoZieleArray.length; i++)
	 {
		
		if(AutoZieleArray[i].substr(1,1) == ' ' && GET('ZIEL') == AutoZieleArray[i].substr(0,1)){
			
			document.write('<option selected value='+AutoZieleArray[i].substr(0,3)+'>'+AutoZieleArray[i].substr(3)+'</option>');
		
		} else if (GET('ZIEL') == AutoZieleArray[i].substr(0,3)){
			
			document.write('<option selected value='+AutoZieleArray[i].substr(0,3)+'>'+AutoZieleArray[i].substr(3)+'</option>');
		
		}else{
			
			document.write('<option value='+AutoZieleArray[i].substr(0,3)+'>'+AutoZieleArray[i].substr(3)+'</option>');
		
		}
	 }

	 document.write('</select>');

}

ZieleArray = new Array(
"B  Balearen",
"FOMFormentera",
"IBZIbiza",
"PMIMallorca",
"MAHMenorca",
"C  Kanaren",
"FUEFuerteventura",
"LPAGran Canaria",
"ACELanzarote",
"GOMLa Gomera",
"SPCLa Palma",
"TFSTeneriffa",
"E  Spanisches Festland",
"BCNBarcelona",
"BIOBilbao",
"ALCCosta Blanca",
"CBR Costa Brava",
"XRYCosta de la Luz",
"AGPCosta del Sol",
"LEIGolf von Almeria",
"MADMadrid",
"MVJMurcia, San Javier",
"SCQSantiago Compostela",
"SVQSevilla",
"VLCValencia",
"D  Portugal, Madeira",
"FAOAlgarve",
"LISLissabon",
"LIULissabons Küsten",
"FNCMadeira",
"OPOPorto",
"F  Türkei",
"BJVBodrums Buchten",
"ISTIstanbul",
"DLMLykische Küste",
"ADBTürkische Nord-Ägäis",
"AYTTürkische Riviera",
"TXXTürkei Spezial", 
"M  Ägypten",
"ALYAlexandria",
"ASWAssuan",
"CAIKairo",
"HRGHurghada",
"LXRLuxor",
"RMFMarsa Alam", 
"NILNilkreuzfahrten",
"SSHSharm El Sheikh",
"TCPTaba",
"G  Griechische Inseln",
"GPAAraxos",
"EUBEuböa",
"IHYHydra",
"KGSKos",
"KREKreta",
"AOKKarpathos",
"EFLKefallinia",
"CFUKorfu",
"PVKLefkas",
"JMKMykonos",
"MJTLesbos",
"PASParos",
"RHORhodos",
"SMISamos",
"ECNSkiathos",
"JTRSantorini",
"ZTHZakynthos",
"H  Griechenland",
"ATHAthen",
"SKGChalkidiki", 
"KVAKavala",
"GPAPeloponnes",
"SKGThessaloniki",
"I  Italien",
"BMOBergamo",
"BDSBrindisi",
"SUFKalabrien",
"NAPNeapel",
"PSRPescara",
"RMIRimini",
"FCORom",
"OLBSardinien",
"CTASizilien",
"VCEVenedig",
"VRNVerona",
"J  Tunesien/Marokko",
"AGAMarokko(Agadir)",
"FEZMarokko(Fez)",
"RAKMarokko(Marrakesch)",
"DJETunesien(Djerba)", 
"MIRTunesien(Monastir)",
"TUNTunesien(Tunis)",
"Y  Sonstige Mittelmeerziele", 
"NCEFrankreich(Nizza)",
"MLAMalta", 
"ECNNordzypern",
"ZYPZypern", 
"K  Bulgarien/Osteuropa",
"VARBulgarien(Goldstrand)",
"BOJBulgarien(Sonnenstrand)",
"DBVKroatien(Dubrovnik)",
"SPUKroatien(Split)",
"TIVTivat",
"CNDRumänien(Constanza)",
"L  Städtereisen",
"N  Vorderer Orient", 
"ETHIsral(Eilat)", 
"TLVIsrael(Tel Aviv)", 
"SAHJemen(Sanaa)", 
"AMMJordanien(Amman)", 
"AQJJordanien(Aqaba)",
"DOHKatar", 
"MCTOman(Maskat)", 
"AUHV.A.E.(Abu Dhabi)", 
"QAJV.A.E.(Ajman)", 
"DXBV.A.E.(Dubai)", 
"FJRV.A.E.(Fujeirah)", 
"RKTV.A.E.(Ras Al Kaimah)", 
"SHJV.A.E.(Sharjah)", 
"UMLV.A.E.(Umm Al Quwain)", 
"X  Afrika",
"BJLBanjul, Gambia",
"SIDKapverden",
"MBAKenia(Mombasa)",
"WDHNamibia(Windhoek)",
"ZNZSansibar", 
"CPTSüdafrika(Kapstadt)",
"O  Kuba",
"CYOCayo Largo, Kuba",
"AVICiego de Avila",
"HAVHavanna",
"HOGHolguin",
"VRAVaradero",
"P  Dom.Republik",
"POPPuerto Plata",
"PUJPunta Cana",
"AZSSamana",
"Q  Karibik",
"ANUAntigua", 
"BGIBarbados", 
"GNDGrenada", 
"MBJJamaika", 
"TABTobago", 
"PMVVenezuela", 
"R  USA/Kanada",
"LAXLosAngeles", 
"MIAMiami", 
"JFKNew York", 
"MCOOrlando", 
"S  Mexiko/Südamerika",
"GIGBrasilien(Rio de Janeiro)", 
"SSABrasilien(Salvador de Bahia)", 
"SJOCosta Rica", 
"ACAMexiko(Acapulco)",
"CUNMexiko(Cancun)", 
"T  Thailand",
"BKKBangkok", 
"UTPGolf von Thailand", 
"TKLKhao Lak", 
"USMKoh Samui", 
"KBVKrabi", 
"HKTPhuket", 
"U  Indischer Ozean",
"DPSBali", 
"GOIIndien(Goa)", 
"MLEMalediven", 
"MRUMauritius", 
"SEZSeychellen(Mahe)", 
"CMBSri Lanka", 

"V  Asien, China",
"PEKChina(Peking)", 
"KULMalaysia(Kuala Lumpur)", 
"SINSingapur", 

"W  Australien/Neuseeland"
);

function ZIELE()
{
	 document.write('<select name="ZIEL" style="width:170px">'); 
	 document.write('<option value="">Alle...</option>');
	 for (i=0; i < ZieleArray.length; i++)
	 {
		
		if(ZieleArray[i].substr(1,1) == ' ' && GET('ZIEL') == ZieleArray[i].substr(0,1)){
			
			document.write('<option selected value='+ZieleArray[i].substr(0,3)+'>'+ZieleArray[i].substr(3)+'</option>');
		
		} else if (GET('ZIEL') == ZieleArray[i].substr(0,3)){
			
			document.write('<option selected value='+ZieleArray[i].substr(0,3)+'>'+ZieleArray[i].substr(3)+'</option>');
		
		}else{
			
			document.write('<option value='+ZieleArray[i].substr(0,3)+'>'+ZieleArray[i].substr(3)+'</option>');
		
		}
	 }

	 document.write('</select>');

}



Von=0
Bis=11
if(GET('schnellsuche') =='PAUS'){
tv=30
} else if (GET('page') =='PAUS'){
tv=30
}else{
tv=1
}
tr=0
if (tr==0) tr=360
tb=tv+tr
function TCHECK(VonBis)
{
with (document.SUCH)
{
Von1 = VON.selectedIndex
Bis = Math.max(Math.min( BIS.selectedIndex + Von1-Von ,BIS.length-1),0);
BIS.selectedIndex = Bis;
Von=Von1
window.status="Von: "+Von
}	
}
function SELECT_VON()
{
document.write('<select name="VON"  style="width:140px" onChange=TCHECK(0)>')

for (var i=tv; i<= tb ;i++)
{
if(GET('VON')==i)
{
document.write('<option value='+i+' selected>'+GetDatum(i)+'')
}else{
document.write('<option value='+i+'>'+GetDatum(i)+'')
}
}
document.write("</select>")
}

function SELECT_BIS()
{
document.write('<select name="BIS" style="width:140px">')
for (var i=tv+3; i<= (tb+20);i++)
{
if (i==tv+14) document.write('<option selected ');
else if (GET('BIS')==i) document.write('<option selected ');
else document.write('<option ');
document.write('value='+i+'>'+GetDatum(i)+'')
}
document.write('</select>')
}


function GetDatum(offset)
{ 
DatArray = new Array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","??" )
var time = new Date()
time.setTime( time.getTime()+offset*86400000);

tag     = time.getDate();
monat   = time.getMonth()+1;
jahr    = time.getYear() % 100;
if (tag   < 10)   tag   = "0"+tag;
if (monat < 10)   monat = "0"+monat;
if (jahr  < 10)   jahr  = "0"+jahr;
return tag+'.'+monat+'.'+jahr+' - '+DatArray[time.getDay()]
}


function SELECT_RA()
{
	document.write('<select name="RA" style="width: 140px">')
	for(var i=1; i <= 4 ; i++)
	{
		document.write('<option value='+i+' ')
		if(GET('RA') == i) document.write('selected="selected"')
		 if (i == 1) document.write('>'+i+' Erwachsener</option>'); else document.write('>'+i+' Erwachsene</option>');
	}
	document.write('</select>')


}

function SELECT_KA1()
{
	document.write('<select name="KA1" style="width:50px">')
	document.write('<option value=""')
	if(GET('KA1') == '' ) document.write('selected="selected"')
	document.write('>1.Kind</option>')
	for(var i=1; i <= 14 ; i++)
	{
		document.write('<option value="'+i+'" ')
		if(GET('KA1') == i) document.write('selected="selected"')
			if(i == 1){
				document.write('>< 2 J</option>')
			} else {
				document.write('> '+i+' J</option>')
			}
	}
	document.write('</select>')

}

function SELECT_KA2()
{
	document.write('<select name="KA2" style="width:50px">')
	document.write('<option value=""')
	if(GET('KA2') == '' ) document.write('selected="selected"')
	document.write('>2.Kind</option>')
	for(var i=1; i <= 14 ; i++)
	{
		document.write('<option value="'+i+'" ')
		if(GET('KA2') == i) document.write('selected="selected"')
			if(i == 1){
				document.write('>< 2 J</option>')
			} else {
				document.write('> '+i+' J</option>')
			}
	}
	document.write('</select>')

}

function SELECT_KA3()
{
	document.write('<select name="KA3" style="width:50px">')
	document.write('<option value=""')
	if(GET('KA3') == '' ) document.write('selected="selected"')
	document.write('>3.Kind</option>')
	for(var i=1; i <= 14 ; i++)
	{
		document.write('<option value="'+i+'" ')
		if(GET('KA3') == i) document.write('selected="selected"')
			if(i == 1){
				document.write('>< 2 J</option>')
			} else {
				document.write('> '+i+' J</option>')
			}
	}
	document.write('</select>')

}

function SELECT_xL()
{
	
	document.write('<select name="xL" style="width: 140px">')
	if (GET('xL') == '' && GET('LMIN') == '' && GET('LMAX') == ''){
		document.write('<option selected ');
	} else {
		document.write('<option ');
	}
	document.write('value="" >--&nbsp;&nbsp; beliebig</option>')
	if (GET('xL') == '02+05'){
		document.write('<option selected ');
	} else if (GET('LMIN') == '02' && GET('LMAX') == '05'){
		document.write('<option selected ');
	} else {
		document.write('<option ');
	}
	document.write('value="02 05" >2-5 Tage</option>')
	if (GET('xL') == '05+08'){
		document.write('<option selected ');
	} else if (GET('LMIN') == '05' && GET('LMAX') == '08'){
		document.write('<option selected ');
	} else {
		document.write('<option ');
	}
	document.write('value="05 08" >5-8 Tage</option>')
	if (GET('xL') == '07+08'){
		document.write('<option selected ');
	} else if (GET('LMIN') == '07' && GET('LMAX') == '08'){
		document.write('<option selected ');
	} else {
		document.write('<option ');
	}
	document.write('value="07 08" >1 Woche</option>')
	if (GET('xL') == '09+15'){
		document.write('<option selected ');
	} else if (GET('LMIN') == '09' && GET('LMAX') == '15'){
		document.write('<option selected ');
	} else {
		document.write('<option ');
	}
	document.write('value="09 15" >9-15 Tage</option>')
	if (GET('xL') == '13+15'){
		document.write('<option selected ');
	} else if (GET('LMIN') == '13' && GET('LMAX') == '15'){
		document.write('<option selected ');
	} else {
		document.write('<option ');
	}
	document.write('value="13 15" >2 Wochen</option>')
	if (GET('xL') == '16+22'){
		document.write('<option selected ');
	} else if (GET('LMIN') == '16' && GET('LMAX') == '22'){
		document.write('<option selected ');
	} else {
		document.write('<option ');
	}
	document.write('value="16 22" >16-22 Tage</option>')
	if (GET('xL') == '22+99'){
		document.write('<option selected ');
	} else if (GET('LMIN') == '22' && GET('LMAX') == '99'){
		document.write('<option selected ');
	} else {
		document.write('<option ');
	}
	document.write('value="22 99" >mehr als 22</option>')
	document.write('</select>')
	
}

function SELECT_ST()
{
	document.write('<select size="1" name="ST" style="width:140px">')
	document.write('<option value=""')
	if(GET('ST') == '' ) document.write('selected="selected"')
	document.write('>--</option>')
	for(var i=1; i <= 5 ; i++)
	{
		document.write('<option value="'+i+'" ')
		if(GET('ST') == i) document.write('selected="selected"')
		document.write('> '+i+' Sterne</option>')
			
	}
	document.write('</select>')
}


function SELECT_ZA()
{

	document.write('<select name="ZA" style="width:140px">')
	if (GET('ZA') == '') document.write('<option selected '); else document.write('<option ');
	document.write('value="" >keine Auswahl </option>')
	if (GET('ZA') == '1') document.write('<option selected '); else document.write('<option ');
	document.write('value="1" >Doppelzimmer </option>')
	if (GET('ZA') == '2') document.write('<option selected '); else document.write('<option ');
	document.write('value="2" >Einzelzimmer </option>')
	if (GET('ZA') == '3') document.write('<option selected '); else document.write('<option ');
	document.write('value="3" >Appartment </option>')
	if (GET('ZA') == '4') document.write('<option selected '); else document.write('<option ');
	document.write('value="4" >Studio </option>')
	if (GET('ZA') == '5') document.write('<option selected '); else document.write('<option ');
	document.write('value="5" >Bungalow </option>')
	if (GET('ZA') == '6') document.write('<option selected '); else document.write('<option ');
	document.write('value="6" >Suite </option>')
    document.write('</select>')

}
function SELECT_VA()
{

	document.write('<select name="VA" style="width:140px">')
	if (GET('VA') == '') document.write('<option selected '); else document.write('<option ');
	document.write('value="" >keine Auswahl </option>')
	if (GET('VA') == '2') document.write('<option selected '); else document.write('<option ');
	document.write('value="2" >ohne Verpflegung </option>')
	if (GET('VA') == '3') document.write('<option selected '); else document.write('<option ');
	document.write('value="3" >Fr&uuml;hst&uuml;ck </option>')
	if (GET('VA') == '1') document.write('<option selected '); else document.write('<option ');
	document.write('value="1" >Halbpension </option>')
	if (GET('VA') == '4') document.write('<option selected '); else document.write('<option ');
	document.write('value="4" >Vollpension </option>')
	if (GET('VA') == '6') document.write('<option selected '); else document.write('<option ');
	document.write('value="6" >All Inclusive </option>')
    document.write('</select>')
}

function hiddenfields()
{
	document.write('<tr>')
	document.write('<td>')
	document.write('<input type="hidden" name="CFG" value="'+GET('CFG')+'">')
	document.write('<input type="hidden" name="SF" value="'+GET('SF')+'">')
	document.write('<input type="hidden" name="SUCHE" value="'+GET('SUCHE')+'">')
	//document.write('<input type="hidden" name="tt" value="'+GET('tt')+'">')
	if(GET('xL')){
		document.write('<input type="hidden" name="LMIN" value="'+GET('xL').substr(0,2)+'">')
		document.write('<input type="hidden" name="LMAX" value="'+GET('xL').substr(3,2)+'">')
	}else{
		document.write('<input type="hidden" name="LMIN" value="'+GET('LMIN')+'">')
		document.write('<input type="hidden" name="LMAX" value="'+GET('LMAX')+'">')
	}
	document.write('</td>')
	document.write('</tr>')
}

function vorlieben()
{
	if(GET('HA')==1){
		document.write('<div style="clear: both; padding: 4px"><input type=checkbox name=HA value=1 id=fp1 checked><label for=fp1>&nbsp;direkt am Strand</label></div>')
	}else{
		document.write('<div style="clear: both; padding: 4px"><input type=checkbox name=HA value=1 id=fp1><label for=fp1>&nbsp;direkt am Strand</label></div>')
	}
	if(GET('HA')==6){
		document.write('<div style="clear: both; padding: 4px"><input type=checkbox name=HA value=6 id=fp3 checked><label for=fp3>&nbsp;Sportangebot</label></div>')
	}else{
		document.write('<div style="clear: both; padding: 4px"><input type=checkbox name=HA value=6 id=fp3><label for=fp3>&nbsp;Sportangebot</label></div>')
	}
	if(GET('HA')==3){
		document.write('<div style="clear: both; padding: 4px"><input type=checkbox name=HA value=3 id=fp4 checked><label for=fp4>&nbsp;kinderfreundlich</label></div>')
	}else{
		document.write('<div style="clear: both; padding: 4px"><input type=checkbox name=HA value=3 id=fp4><label for=fp4>&nbsp;kinderfreundlich</label></div>')
	}
	if(GET('HA')==7){
		document.write('<div style="clear: both; padding: 4px"><input type=checkbox name=HA value=7 id=fp5 checked><label for=fp5>&nbsp;Wellness</label></div>')
	}else{
		document.write('<div style="clear: both; padding: 4px"><input type=checkbox name=HA value=7 id=fp5><label for=fp5>&nbsp;Wellness</label></div>')
	}
	if(GET('HA')==4){
		document.write('<div style="clear: both; padding: 4px"><input type=checkbox name=HA value=4 id=fp6 checked><label for=fp6>&nbsp;Club</label></div>')
	}else{
		document.write('<div style="clear: both; padding: 4px"><input type=checkbox name=HA value=4 id=fp6><label for=fp6>&nbsp;Club</label></div>')
	}
	
}

function Search()
{
with (document.SUCH)
{
	 LMIN.value = xL.options[xL.selectedIndex].value.substr(0,2)
	 LMAX.value = xL.options[xL.selectedIndex].value.substr(3,2)	 
}
	document.SUCH.submit()
}


function Suche_aendern()
{
	if(GET('BOOK')==''){
	document.write('<form name="SUCH" method="get" action="">')
	document.write('<fieldset style="width:185px; padding: 5px; border: solid 1px #cccccc; margin-top: 10px; color: #333333"><legend style="color:#92AD4D; font-size: 1.2em"><b>&nbsp;&raquo;&nbsp;Suche ändern&nbsp;</b></legend>')
	document.write('<div style="clear:both"></div>')
	document.write('<div style="font-size: 0.9em; padding: 5px; text-align: center; color: #333333">Hier k&ouml;nnen Sie Ihre Angaben<br>&auml;ndern oder erg&auml;nzen:</div>')
	hiddenfields();
	if (GET('SF')!='3'){
	document.write('<div style="clear: both; padding: 4px"><label for="RW">Abflughafen:</label><br>')
	abflughafen();
	document.write('</div>')
	}
	document.write('<div style="clear: both; padding: 4px"><label for="RW">Reiseziele:</label><br>')
	if(GET('SUCHE') == 'AUTO'){
	auto_ZIELE();
	}else{
	ZIELE();
	}
	document.write('</div>')
	document.write('<div style="clear: both; padding: 4px"><label for="VON">Früheste Hinreise:</label><br>')
	SELECT_VON();
	document.write('</div>')
	document.write('<div style="clear: both; padding: 4px"><label for="BIS">Späteste Rückreise:</label><br>')
	SELECT_BIS();
	document.write('</div>')
	document.write('<div style="clear: both; padding: 4px"><label for="xL">Reisedauer:</label><br>')
	SELECT_xL();
	document.write('</div>')
	document.write('<div style="clear: both; padding: 4px">Reisende:<br>')
	SELECT_RA();
	document.write('</div>')
	
	document.write('<div style="clear: both; padding: 4px">Kinder:<br>')
	SELECT_KA1();
	document.write('&nbsp;')
	SELECT_KA2();
	document.write('&nbsp;')
	SELECT_KA3();
	document.write('</div>')
	document.write('<div style="clear: both; padding-left: 4px; padding-bottom: 10px; font-size: 9px">(Alter bei Reiseantritt) </div>')
	
	document.write('<div style="padding-top: 8px; padding-bottom: 6px"><a id=but_book_1 style="width: 160px" class=book href=javascript:Search()>Erneut Suchen</a></div>')
	document.write('</fieldset>')
	//kinder ende
	if(GET('SUCHE')!='FLUG'){
		
		document.write('<fieldset style="width:185px; padding: 5px; border: solid 1px #cccccc; margin-top: 10px; color: #333333"><legend style="color:#92AD4D; font-size: 1.2em"><b>&nbsp;&raquo;&nbsp;Erweiterte Suche&nbsp;</b></legend>')
		document.write('<div style="clear:both"></div>')
		
		document.write('<div style="clear: both; padding: 4px">Hotelkategorie:<br>')
		SELECT_ST();
		document.write('</div>')
		
		document.write('<div style="clear: both; padding: 4px">Zimmertyp:<br>')
		SELECT_ZA();
		document.write('</div>')
		
		document.write('<div style="clear: both; padding: 4px">Verpflegung:<br>')
		SELECT_VA();
		document.write('</div>')

		document.write('<div style="clear: both; padding: 4px"><label for=HOTEL >Suche nach Hotelnamen:</label><br>')
		document.write('<input type="text" name="HOTEL" id="HOTEL" value="" style="width:170px;" />')
		document.write('</div>')
	
		document.write('<div style="padding: 4px"><h4>&nbsp;Besondere Vorlieben:</h4></div>')
		vorlieben();
		document.write('<div style="padding-top: 8px; padding-bottom: 6px"><a id=but_book_1 style="width: 160px" class=book href=javascript:Search()>Erneut Suchen</a></div>')
		document.write('</fieldset>')
	
	}
	document.write('</form>')
	
	}else{
		
		
		document.write('<div style="width:195px;">')
		//document.write('<p><b>DANKE</b></p><br>')
		//document.write('<p><img src="http://www.reiseclub-essen.de/site/img/icon_tel.gif" alt="Telefon" />&nbsp;0201 - 82 19 60</p><br>')
    	document.write('<fieldset style="width:185px; padding: 5px; border: solid 1px #cccccc; margin-top: 10px"><legend style="color:#92AD4D; font-weight: bold; font-size: 1.00em">&nbsp;&raquo;&nbsp;Ihre Reise ist noch frei&nbsp;</legend>')
		//document.write('<p><b>Machen Sie Ihre Buchung Perfekt!</b></p><br>')
		document.write('<p style="padding: 7px; font-size: 0.95em">Bitte vervollständigen Sie alle Pflichtfelder und senden Sie das Buchungsformular ab.</p>')
		document.write('<p style="padding: 7px; font-size: 0.95em">Nach Buchungseingang werden wir uns umgehend mit Ihnen in Verbindung setzten !</p>')
		document.write('</fieldset>')
		
    	document.write('<fieldset style="width:185px; padding: 10px 5px 5px 5px; border: solid 1px #cccccc;  margin-top: 10px"><legend style="color:#92AD4D; font-weight: bold; font-size: 1.00em">&nbsp;&raquo;&nbsp;Reiseversicherung&nbsp;</legend>')
		document.write('<p style="padding: 7px; font-size: 0.95em">Wir empfehlen Ihnen den Abschluss einer Reiseversicherung bei der Hanse Merkur Reiseversicherung. Die Angebote rechts wurden automatisch erstellt.</p>')
		document.write('<p style="padding: 7px; font-size: 0.95em">Bei der Auswahl wird das entsprechende Angebot den anderen gebuchten Reiseleistungen hinzugeführt </p>')
		document.write('</fieldset>')
		
		document.write('</div>')
	}
}


