function FormCheckInputDeu()
{
	// Email
	if(document.forms[0].elements["e-mail"].value == "")
	{
	    alert("Bitte geben Sie eine E-Mail-Adresse an.");
	    document.forms[0].elements["e-mail"].focus();
	    return false;
	}
	// Telefonnummer
	if(document.forms[0].elements["Telefon"].value == "")
	{
	    alert("Bitte geben Sie eine Telefonnummer an!");
	    document.forms[0].elements["Telefon"].focus();
	    return false;
	}

  return true; 
}


function FormCheckInputEng()
{
	// Email
	if(document.forms[0].elements["e-mail"].value == "")
	{
	    alert("Please enter an e-mail address.");
	    document.forms[0].elements["e-mail"].focus();
	    return false;
	}
	// Telefonnummer
	if(document.forms[0].elements["Telefon"].value == "")
	{
	    alert("Please enter a phone number.");
	    document.forms[0].elements["Telefon"].focus();
	    return false;
	}

  return true; 
}



function CheckDateFromDeu()
{

	var nMonths 	= new Array(12);
	nMonths[0]	= 31;
	nMonths[1]	= 29;
	nMonths[2]	= 31;
	nMonths[3]	= 30;
	nMonths[4]	= 31;
	nMonths[5]	= 30;
	nMonths[6]	= 31;
	nMonths[7]	= 31;
	nMonths[8]	= 30;
	nMonths[9]	= 31;
	nMonths[10]	= 30;
	nMonths[11]	= 31;

	// Achtung: parseInt() interpretiert Zahlen mit vorangehender Null als Oktalzahlen; um das zu vermeiden muss parseInt() das Zahlensystem als 2. Parameter übergeben werden
	var nDay 	= parseInt(document.forms[0].elements["Von_Datum_Tag"].value, 10);
	var nMonth	= parseInt(document.forms[0].elements["Von_Datum_Monat"].value, 10);
	var nYear	= parseInt(document.forms[0].elements["Von_Datum_Jahr"].value, 10);

	
	if ((nMonth < 1) || (nMonth > 12) || (nDay < 1) || (nDay > nMonths[nMonth-1]) || (!isAfter(getDayToday(), getMonthToday(), getYearToday(), nDay, nMonth, nYear)))
	{
	    alert("Bitte geben Sie ein gültiges Anreisedatum ein.");
	    document.forms[0].elements["Von_Datum_Tag"].focus();
	    return false;
		
	}

	return true;

}

function CheckDateFromEng()
{

	var nMonths 	= new Array(12);
	nMonths[0]	= 31;
	nMonths[1]	= 29;
	nMonths[2]	= 31;
	nMonths[3]	= 30;
	nMonths[4]	= 31;
	nMonths[5]	= 30;
	nMonths[6]	= 31;
	nMonths[7]	= 31;
	nMonths[8]	= 30;
	nMonths[9]	= 31;
	nMonths[10]	= 30;
	nMonths[11]	= 31;

	var nDay 	= parseInt(document.forms[0].elements["Von_Datum_Tag"].value, 10);
	var nMonth	= parseInt(document.forms[0].elements["Von_Datum_Monat"].value, 10);
	var nYear	= parseInt(document.forms[0].elements["Von_Datum_Jahr"].value, 10);


	if ((nMonth < 1) || (nMonth > 12) || (nDay < 1) || (nDay > nMonths[nMonth-1]) || (!isAfter(getDayToday(), getMonthToday(), getYearToday(), nDay, nMonth, nYear)))
	{
	    alert("Please enter a valid date of arrival.");
	    document.forms[0].elements["Von_Datum_Monat"].focus();
	    return false;
		
	}

	return true;

}

function CheckDateToDeu()
{

	var nMonths 	= new Array(12);
	nMonths[0]	= 31;
	nMonths[1]	= 29;
	nMonths[2]	= 31;
	nMonths[3]	= 30;
	nMonths[4]	= 31;
	nMonths[5]	= 30;
	nMonths[6]	= 31;
	nMonths[7]	= 31;
	nMonths[8]	= 30;
	nMonths[9]	= 31;
	nMonths[10]	= 30;
	nMonths[11]	= 31;

	var nDay 	= parseInt(document.forms[0].elements["Bis_Datum_Tag"].value, 10);
	var nMonth	= parseInt(document.forms[0].elements["Bis_Datum_Monat"].value, 10);
	var nYear	= parseInt(document.forms[0].elements["Bis_Datum_Jahr"].value, 10);


	if ((nMonth < 1) || (nMonth > 12) || (nDay < 1) || (nDay > nMonths[nMonth-1]) || (!isAfter(getDayToday(), getMonthToday(), getYearToday(), nDay, nMonth, nYear)))
	{
	    alert("Bitte geben Sie ein gültiges Abreisedatum ein.");
	    document.forms[0].elements["Bis_Datum_Tag"].focus();
	    return false;
		
	}

	return true;

}

function CheckDateToEng()
{

	var nMonths 	= new Array(12);
	nMonths[0]	= 31;
	nMonths[1]	= 29;
	nMonths[2]	= 31;
	nMonths[3]	= 30;
	nMonths[4]	= 31;
	nMonths[5]	= 30;
	nMonths[6]	= 31;
	nMonths[7]	= 31;
	nMonths[8]	= 30;
	nMonths[9]	= 31;
	nMonths[10]	= 30;
	nMonths[11]	= 31;

	var nDay 	= parseInt(document.forms[0].elements["Bis_Datum_Tag"].value, 10);
	var nMonth	= parseInt(document.forms[0].elements["Bis_Datum_Monat"].value, 10);
	var nYear	= parseInt(document.forms[0].elements["Bis_Datum_Jahr"].value, 10);


	if ((nMonth < 1) || (nMonth > 12) || (nDay < 1) || (nDay > nMonths[nMonth-1]) || (!isAfter(getDayToday(), getMonthToday(), getYearToday(), nDay, nMonth, nYear)))
	{
	    alert("Please enter a valid date of departure.");
	    document.forms[0].elements["Bis_Datum_Monat"].focus();
	    return false;
		
	}

	return true;

}

function CheckDateRelationDeu()
{
	var nDayFrom 	= parseInt(document.forms[0].elements["Von_Datum_Tag"].value, 10);
	var nMonthFrom	= parseInt(document.forms[0].elements["Von_Datum_Monat"].value, 10);
	var nYearFrom	= parseInt(document.forms[0].elements["Von_Datum_Jahr"].value, 10);
	var nDayTo 	= parseInt(document.forms[0].elements["Bis_Datum_Tag"].value, 10);
	var nMonthTo	= parseInt(document.forms[0].elements["Bis_Datum_Monat"].value, 10);
	var nYearTo	= parseInt(document.forms[0].elements["Bis_Datum_Jahr"].value, 10);

	if(!isAfter(nDayFrom, nMonthFrom, nYearFrom, nDayTo, nMonthTo, nYearTo))
	{
	    alert("Bitte geben Sie ein gültiges Enddatum ein.");
	    document.forms[0].elements["Bis_Datum_Tag"].focus();
	    return false;
	}
	return true;
}

function CheckDateRelationEng()
{
	var nDayFrom 	= parseInt(document.forms[0].elements["Von_Datum_Tag"].value, 10);
	var nMonthFrom	= parseInt(document.forms[0].elements["Von_Datum_Monat"].value, 10);
	var nYearFrom	= parseInt(document.forms[0].elements["Von_Datum_Jahr"].value, 10);
	var nDayTo 	= parseInt(document.forms[0].elements["Bis_Datum_Tag"].value, 10);
	var nMonthTo	= parseInt(document.forms[0].elements["Bis_Datum_Monat"].value, 10);
	var nYearTo	= parseInt(document.forms[0].elements["Bis_Datum_Jahr"].value, 10);

	if(!isAfter(nDayFrom, nMonthFrom, nYearFrom, nDayTo, nMonthTo, nYearTo))
	{
	    alert("Please enter a valid date of departure.");
	    document.forms[0].elements["Bis_Datum_Monat"].focus();
	    return false;
	}
	return true;
}

// isAfter: Datumsvergleich, Grenze inklusive
// Wenn LimitX < nTestX wird true zurückgeliefert
// Gibt an, ob nLimitX vor nTestX liegt
function isAfter(nLimitDay, nLimitMonth, nLimitYear, nTestDay, nTestMonth, nTestYear)
{
	if (nLimitYear < nTestYear)
	{
		return true;
	}
	if (nLimitYear > nTestYear)
	{
		return false;
	}
	if (nLimitYear == nTestYear)
	{
		if (nLimitMonth < nTestMonth)
		{
			return true;
		}
		if (nLimitMonth > nTestMonth)
		{
			return false;
		}
		if (nLimitMonth == nTestMonth)
		{
			if (nLimitDay <= nTestDay)
			{
				return true;
			}
			if (nLimitDay > nTestDay)
			{
				return false;
			}
		}
	}

	return false;
}

function getDayToday()
{
	var Now = new Date();
	return Now.getDate();
}


function getMonthToday()
{
	var Now = new Date();
	return Now.getMonth() + 1;		// Monate gehen von 0-11
}


function getYearToday()
{
	var Now = new Date();
	var Year = Now.getYear();
	if(Year < 999) Year+=1900;
	return Year;
}

function getDayTomorrow()
{
	var Tomorrow = new Date();
	Tomorrow.setDate(Tomorrow.getDate() + 1);
	return Tomorrow.getDate();
}


function getMonthTomorrow()
{
	var Tomorrow = new Date();
	Tomorrow.setDate(Tomorrow.getDate() + 1);
	return Tomorrow.getMonth() + 1;		// Monate gehen von 0-11
}


function getYearTomorrow()
{
	var Tomorrow = new Date();
	Tomorrow.setDate(Tomorrow.getDate() + 1);
	var Year = Tomorrow.getYear();
	if(Year < 999) Year+=1900;
	return Year;
}

function initializeDates()
{
	document.forms[0].elements["Von_Datum_Tag"].value = getDayToday();
	document.forms[0].elements["Von_Datum_Monat"].value = getMonthToday();
	document.forms[0].elements["Von_Datum_Jahr"].value = getYearToday();
	document.forms[0].elements["Bis_Datum_Tag"].value = getDayTomorrow();
	document.forms[0].elements["Bis_Datum_Monat"].value = getMonthTomorrow();
	document.forms[0].elements["Bis_Datum_Jahr"].value = getYearTomorrow();
}


function Tagungsformular()
{
	// Von
	if ((document.forms[0].elements["Von_Datum_Tag"].value == "") || (document.forms[0].elements["Von_Datum_Monat"].value == "") || (document.forms[0].elements["Von_Datum_Jahr"].value == ""))
	{
	    alert("Bitte geben Sie ein Anfangsdatum ein.");
	    document.forms[0].elements["Von_Datum_Tag"].focus();
	    return false;
	}
	// Bis
	if ((document.forms[0].elements["Bis_Datum_Tag"].value == "") || (document.forms[0].elements["Bis_Datum_Monat"].value == "") || (document.forms[0].elements["Bis_Datum_Jahr"].value == ""))
	{
	    alert("Bitte geben Sie ein Enddatum ein.");
	    document.forms[0].elements["Bis_Datum_Tag"].focus();
	    return false;
	}
	// Teilnehmeranzahl
	if (document.forms[0].elements["anzahlt"].value == "")
	{
	    alert("Bitte geben Sie die Teilnehmeranzahl ein.");
	    document.forms[0].elements["anzahlt"].focus();
	    return false;
	}
	// Nachname
	if (document.forms[0].elements["Name"].value == "")
	{
	    alert("Bitte geben Sie einen Namen ein.");
	    document.forms[0].elements["Name"].focus();
	    return false;
	}
	// Adresse
	if (document.forms[0].elements["Adresse"].value == "")
	{
	    alert("Bitte geben Sie eine Adresse ein.");
	    document.forms[0].elements["Adresse"].focus();
	    return false;
	}
	return true;
}


function ZimmerreservierungsformularDeu()
{
	// Zimer
	if ((document.forms[0].elements["EZ"].value == "") || (document.forms[0].elements["DZ"].value == ""))
	{
	    alert("Bitte geben Sie die Anzahl der Einzel- und/oder Doppelzimmer ein (0 für kein Zimmer).");
	    document.forms[0].elements["EZ"].focus();
	    return false;
	}
	// Von
	if ((document.forms[0].elements["Von_Datum_Tag"].value == "") || (document.forms[0].elements["Von_Datum_Monat"].value == "") || (document.forms[0].elements["Von_Datum_Jahr"].value == ""))
	{
	    alert("Bitte geben Sie ein Anfangsdatum ein.");
	    document.forms[0].elements["Von_Datum_Tag"].focus();
	    return false;
	}
	// Bis
	if ((document.forms[0].elements["Bis_Datum_Tag"].value == "") || (document.forms[0].elements["Bis_Datum_Monat"].value == "") || (document.forms[0].elements["Bis_Datum_Jahr"].value == ""))
	{
	    alert("Bitte geben Sie ein Enddatum ein.");
	    document.forms[0].elements["Bis_Datum_Tag"].focus();
	    return false;
	}
	// Nachname
	if (document.forms[0].elements["Name"].value == "")
	{
	    alert("Bitte geben Sie einen Namen ein.");
	    document.forms[0].elements["Name"].focus();
	    return false;
	}
	// Adresse
	if (document.forms[0].elements["Adresse"].value == "")
	{
	    alert("Bitte geben Sie eine Adresse ein.");
	    document.forms[0].elements["Adresse"].focus();
	    return false;
	}
	return true;
}


function ZimmerreservierungsformularEng()
{
	// Zimer
	if ((document.forms[0].elements["EZ"].value == "") || (document.forms[0].elements["DZ"].value == ""))
	{
	    alert("Please enter the number of single and double rooms (0 for no room).");
	    document.forms[0].elements["EZ"].focus();
	    return false;
	}
	// Von
	if ((document.forms[0].elements["Von_Datum_Tag"].value == "") || (document.forms[0].elements["Von_Datum_Monat"].value == "") || (document.forms[0].elements["Von_Datum_Jahr"].value == ""))
	{
	    alert("Please enter the date of arrival.");
	    document.forms[0].elements["Von_Datum_Monat"].focus();
	    return false;
	}
	// Bis
	if ((document.forms[0].elements["Bis_Datum_Tag"].value == "") || (document.forms[0].elements["Bis_Datum_Monat"].value == "") || (document.forms[0].elements["Bis_Datum_Jahr"].value == ""))
	{
	    alert("Please enter the departure date.");
	    document.forms[0].elements["Bis_Datum_Monat"].focus();
	    return false;
	}
	// Nachname
	if (document.forms[0].elements["Name"].value == "")
	{
	    alert("Please enter your last name.");
	    document.forms[0].elements["Name"].focus();
	    return false;
	}
	// Adresse
	if (document.forms[0].elements["Adresse"].value == "")
	{
	    alert("Please enter your address.");
	    document.forms[0].elements["Adresse"].focus();
	    return false;
	}
	return true;
}


function ZimmerAutoReservierungsformularDeu()
{
	// Nachname
	if (document.forms[0].elements["Name"].value == "")
	{
	    alert("Bitte geben Sie einen Namen ein.");
	    document.forms[0].elements["Name"].focus();
	    return false;
	}
	// Adresse
	if (document.forms[0].elements["Adresse"].value == "")
	{
	    alert("Bitte geben Sie eine Adresse ein.");
	    document.forms[0].elements["Adresse"].focus();
	    return false;
	}
	return true;
}


function ZimmerAutoReservierungsformularEng()
{
	// Nachname
	if (document.forms[0].elements["Name"].value == "")
	{
	    alert("Please enter your last name.");
	    document.forms[0].elements["Name"].focus();
	    return false;
	}
	// Adresse
	if (document.forms[0].elements["Adresse"].value == "")
	{
	    alert("Please enter your address.");
	    document.forms[0].elements["Adresse"].focus();
	    return false;
	}
	return true;
}

function validateForm()
{
  var tp = document.trform.Tagungspauschale;
  var index = tp.selectedIndex;
  var text  = tp.options[index].value;

  if(text == "")
  {
    alert("Bitte wählen Sie eine Tagungspauschale aus!");
    tp.focus();
    return false;
  }

  var raum = document.trform.raum;
  index = raum.selectedIndex;
  text  = raum.options[index].value;

  if(text == "")
  {
    alert("Bitte wählen Sie einen Raum aus!");
    raum.focus();
    return false;
  }

  text = document.trform.plaetze.value;

  if(text == "-")
  {
    alert("Die ausgewählte Bestuhlung ist nicht möglich. Bitte wählen Sie eine andere Variante aus!");
    document.trform.plaetze.focus();
    return false;
  }

  return true;
}


function setMsg(obj){
	var A,B,C,D,pp,gp,oue,nl;

	
	pp  = "Pro Person und Tag – ab 10 Personen";
	oue = " ohne Übernachtung\n";
	gp  = " inklusive Getränkepauschale";
	nl  = "\n";	

	var ab = "1- Moderner, klimatisierbarer Tagungsraum mit Tageslicht\n";
	ab += "2- Ausgerüstet mit aktueller Standardtechnik:\n";
	ab += "   Flipchart und Pinwand\n";
	ab += "3- Begrüßungskaffee bei Eintreffen der Teilnehmer\n";
	ab += "4- Zwei Kaffeepausen mit Kaffee, Tee, frischem Obst und Gebäck bzw.\n";
	ab += "   einem kleinen Snack\n";
	ab += "5- Business Lunch als 3-Gang-Menü mit zwei Hauptgerichten zur Wahl\n\n";

	var cd = "";
	cd += "1- Übernachtung in einem unserer komfortablen Zimmer\n";
	cd += "   mit Duschbad, Telefon, Faxanschluß und Farbfernsehgerät.\n"
	cd += "2- Reichhaltiges Fit-Frühstücksbuffet\n";
	cd += "3- Moderner, klimatisierbarer Tagungsraum mit Tageslicht\n";
	cd += "4- Ausgerüstet mit aktueller Standardtechnik:\n";
	cd += "   Flipchart und Pinwand\n";
	cd += "5- Begrüßungskaffee bei Eintreffen der Teilnehmer\n";
	cd += "6- Business Lunch als 3-Gang-Menü mit zwei Hauptgerichten zur Wahl\n";
	cd += "7- Zwei Kaffeepausen mit Kaffee, Tee, frischem Obst und Gebäck bzw.\n";
        cd += "   einem kleinen Snack\n";
	cd += "8- Ein Abendessen in Pepe's Restaurante\n\n";

	var ef = "";
	ef += " + Mineralwasser und Apfelsaft im Tagungsraum und zum Mittagessen\n\n";
	ef += "Ab 10 Teilnehmern - Anfrage ab 2 Wochen vor Veranstaltungsbeginn\n";
	ef += "Ab 20 Teilnehmern - Anfrage ab 3 Wochen vor Veranstaltungsbeginn\n";
	ef += "Ab 50 Teilnehmern - Anfrage ab 5 Wochen vor Veranstaltungsbeginn\n\n";

	var tarifA = "EUR 40,00";
	var tarifE = "EUR 38,00";
	var tarifB = "EUR 47,00";
	var tarifC = "EUR 135,00\n";
	var tarifF = "EUR 126,00\n";
	var tarifD = "EUR 144,00";

	A = ab+tarifA+oue+pp;
	E = ab+ef+tarifE+oue+pp;
	B = ab+tarifB+gp+ "," +oue+pp;
	C = cd+tarifC+pp;
	F = cd+ef+tarifF+pp;
	D = cd+tarifD+gp+nl+pp;


	var trhelp = document.trform.trhelp;
	var index  = obj.selectedIndex;
	var text   = obj.options[index].value;

	if(text == 'A') {
	  trhelp.value=A;
	}
	
	if(text == 'B') {
	  trhelp.value=B;
	}
	
	if(text == 'C') {
	  trhelp.value=C;
	}

	if(text == 'D') {
	  trhelp.value=D;
	}

	if(text == 'E') {
	  trhelp.value=E;
	}

	if(text == 'F') {
	  trhelp.value=F;
	}

	if(text == '') {
	  trhelp.value='';
	}

}


var old_bs = 'Kino';

function setPlaces(bs){
	old_bs 		= bs;
	var screen  	= document.trform.plaetze;
	var f   	= document.trform.flaeche;
	var raum  	= document.trform.raum;
	var index 	= raum.selectedIndex;
	var t_raum 	= raum.options[index].value;
	var places      = '';
	var flaeche     = '';

	var Macke	= new Array(5); var Miro	= new Array(5); var Klee	= new Array(5); var Chagall	= new Array(5); 
	var Kandinsky	= new Array(5);	var Warhol	= new Array(5);	var KundW	= new Array(5);	var Galerie	= new Array(5);
	var Dali	= new Array(5);	var Monet	= new Array(5);	var Matisse	= new Array(5);	var F_Marc	= new Array(5);
	var Allenbach	= new Array(5);	var G1		= new Array(5);	var G2		= new Array(5);	var G3		= new Array(5);
	var HH		= new Array(5);	var WB		= new Array(5);	var HD		= new Array(5);	var GK		= new Array(5);

	Macke['Kino']	  = '10'; Macke['Block']     = '10'; Macke['U-Form']     = '-';	 Macke['Parlament']     = '10'; Macke['flaeche'] = '15';
	Miro['Kino']      = '30'; Miro['Block']      = '20'; Miro['U-Form']      = '18'; Miro['Parlament']      = '18'; Miro['flaeche'] = '42';
	Klee['Kino']      = '30';   Klee['Block']      = '20';   Klee['U-Form']      = '18';   Klee['Parlament']      = '18'; Klee['flaeche'] = '41';
	Chagall['Kino']   = '50';   Chagall['Block']   = '25';   Chagall['U-Form']   = '25';   Chagall['Parlament']   = '30'; Chagall['flaeche'] = '62';
	Kandinsky['Kino'] = '70';   Kandinsky['Block'] = '30';   Kandinsky['U-Form'] = '35';   Kandinsky['Parlament'] = '50'; Kandinsky['flaeche'] = '73';
	Warhol['Kino']    = '45';   Warhol['Block']    = '25';   Warhol['U-Form']    = '20';   Warhol['Parlament']    = '30'; Warhol['flaeche'] = '48';
	KundW['Kino']     = '120';   KundW['Block']     = '60';   KundW['U-Form']     = '60';   KundW['Parlament']     = '80'; KundW['flaeche'] = '120';
	Galerie['Kino']   = '200';   Galerie['Block']   = '-';   Galerie['U-Form']   = '75';   Galerie['Parlament']   = '150'; Galerie['flaeche'] = '215';

	Dali['Kino']      = '70';   Dali['Block']      = '30';   Dali['U-Form']      = '35';   Dali['Parlament']      = '50'; Dali['flaeche'] = '73';
	Monet['Kino']     = '20';   Monet['Block']     = '15';   Monet['U-Form']     = '10';   Monet['Parlament']     = '15'; Monet['flaeche'] = '32';
	Matisse['Kino']   = '50';   Matisse['Block']   = '25';   Matisse['U-Form']   = '25';   Matisse['Parlament']   = '35'; Matisse['flaeche'] = '66';
	F_Marc['Kino']    = '45';   F_Marc['Block']    = '25';   F_Marc['U-Form']    = '20';   F_Marc['Parlament']    = '30'; F_Marc['flaeche'] = '50';
	Allenbach['Kino'] = '30';   Allenbach['Block'] = '20';   Allenbach['U-Form'] = '18';   Allenbach['Parlament'] = '18'; Allenbach['flaeche'] = '40';
	G1['Kino']    = '15';   G1['Block']    = '10';   G1['U-Form']    = '-';   G1['Parlament']    = '10'; G1['flaeche'] = '23';
	G2['Kino']    = '15';   G2['Block']    = '10';   G2['U-Form']    = '-';   G2['Parlament']    = '15'; G2['flaeche'] = '23';
	G3['Kino']    = '15';   G3['Block']    = '10';   G3['U-Form']    = '-';   G3['Parlament']    = '10'; G3['flaeche'] = '16';
	HH['Kino']    = '30';   HH['Block']    = '20';   HH['U-Form']    = '18';   HH['Parlament']    = '18'; HH['flaeche'] = '40';
	WB['Kino']    = '45';   WB['Block']    = '25';   WB['U-Form']    = '20';   WB['Parlament']    = '30'; WB['flaeche'] = '50';
	HD['Kino']    = '20';   HD['Block']    = '15';   HD['U-Form']    = '10';   HD['Parlament']    = '15'; HD['flaeche'] = '32';
	GK['Kino']    = '20';   GK['Block']    = '12';   GK['U-Form']    = '10';   GK['Parlament']    = '12'; GK['flaeche'] = '30';


// Fuer Tagungsebene 1 ---------------------------------------

	if(t_raum == 'Macke'){
	  places = Macke[bs];
	  flaeche = Macke['flaeche'];
	}
	if(t_raum == 'Miro'){
	  places = Miro[bs];
	  flaeche = Miro['flaeche'];
	}
	if(t_raum == 'Klee'){
	  places = Klee[bs];
	  flaeche = Klee['flaeche'];
	}
	if(t_raum == 'Chagall'){
	  places = Chagall[bs];
	  flaeche = Chagall['flaeche'];
	}
	if(t_raum == 'Kandinsky'){
	  places = Kandinsky[bs];
	  flaeche = Kandinsky['flaeche'];
	}

	if(t_raum == 'Warhol'){
	  places = Warhol[bs];
	  flaeche = Warhol['flaeche'];
	}
	if(t_raum == 'Kandinsky und Warhol'){
	  places = KundW[bs];
	  flaeche = KundW['flaeche'];
	}
	if(t_raum == 'GALERIE'){
	  places = Galerie[bs];
	  flaeche = Galerie['flaeche'];
	}

// Fuer Tagungsebene 2 -------------------------------------------

	if(t_raum == 'Dali'){
	  places = Dali[bs];
	  flaeche = Dali['flaeche'];
	}
	if(t_raum == 'Monet'){
	  places = Monet[bs];
	  flaeche = Monet['flaeche'];
	}
	if(t_raum == 'Matisse'){
	  places = Matisse[bs];
	  flaeche = Matisse['flaeche'];
	}
	if(t_raum == 'Franz Marc'){
	  places = F_Marc[bs];
	  flaeche = F_Marc['flaeche'];
	}
	if(t_raum == 'Allenbach'){
	  places = Allenbach[bs];
	  flaeche = Allenbach['flaeche'];
	}
	if(t_raum == 'Gruppe 1'){
	  places = G1[bs];
	  flaeche = G1['flaeche'];
	}
	if(t_raum == 'Gruppe 2'){
	  places = G2[bs];
	  flaeche = G2['flaeche'];
	}
	if(t_raum == 'Gruppe 3'){
	  places = G3[bs];
	  flaeche = G3['flaeche'];
	}
	if(t_raum == 'Hermann Hesse'){
	  places = HH[bs];
	  flaeche = HH['flaeche'];
	}
	if(t_raum == 'Willi Baumeister'){
	  places = WB[bs];
	  flaeche = WB['flaeche'];
	}
	if(t_raum == 'Heide Dahl'){
	  places = HD[bs];
	  flaeche = HD['flaeche'];
	}
	if(t_raum == 'Gustav Klimt'){
	  places = GK[bs];
	  flaeche = GK['flaeche'];
	}
	screen.value = places;
	f.value = flaeche;
}


function updatePlaces(){
	setPlaces(old_bs);
}


function getkosten(){
if(validateForm() == false) return;
	var kosten = document.trform.kosten;
	var summe = 0;

	var index  = document.trform.Tagungspauschale.selectedIndex;
	var text   = document.trform.Tagungspauschale.options[index].value;
	var teilnehmer = parseInt(document.trform.anzahlt.value, 10);

	if(isNaN(teilnehmer) || teilnehmer <=0) {alert('Bitte geben Sie die Anzahl der Teilnehmer an!'); document.trform.anzahlt.focus(); return;}

	var t1 = document.trform.ttechnik1;
	var t2 = document.trform.ttechnik2;
	var t3 = document.trform.ttechnik3;
	var t4 = document.trform.ttechnik4;
	var t5 = document.trform.ttechnik5;
	var t6 = document.trform.ttechnik6;
	var t7 = document.trform.ttechnik7;
	var t8 = document.trform.ttechnik8;
	var t9 = document.trform.ttechnik9;

	var v1=0;
	var v2=0;
	var v3=0; 
	var v4=0;
	var v5=0;
	var v6=0;
	var v7=0;
	var v8=0;
	var v9=0;

	if(t1.checked) v1 = parseInt(t1.value, 10);
	if(t2.checked) v2 = parseInt(t2.value, 10);
	if(t3.checked) v3 = parseInt(t3.value, 10);
	if(t4.checked) v4 = parseInt(t4.value, 10);
	if(t5.checked) v5 = parseInt(t5.value, 10);
	if(t6.checked) v6 = parseInt(t6.value, 10);
	if(t7.checked) v7 = parseInt(t7.value, 10);
	if(t8.checked) v8 = parseInt(t8.value, 10);
	if(t9.checked) v9 = parseInt(t9.value, 10);

	if(text == 'A') {
	  summe += 40;
	}
	if(text == 'E') {
	  summe += 38;
	}
	
	if(text == 'B') {
	  summe += 47;
	}
	
	if(text == 'C') {
	  summe += 135;
	}

	if(text == 'F') {
	  summe += 126;
	}


	if(text == 'D') {
	  summe += 144;
	}
	summe *= teilnehmer;


	summe += v1+v2+v3+v4+v5+v6+v7+v8+v9;

	kosten.value = '€ '+summe+',-';
}


function javascript()
{
			
	if (document.getElementById("Javascript") == null)
	{}
	else
	{
		document.getElementById("Javascript").style.visibility = "hidden";
	}
}


function Befragung()
{
	window.open('http://www.myexam.net/bonjourhotel/index.asp?TestID=1', 'Picture', 'dependent=yes, width=900, height=550, location=no, menubar=no, resizeable=yes, scrollbars=no, status=no, toolbar=no');
}

