﻿function update_auswahl()
{
	var branche1Auswahl = document.forms.Formular.branche1;
	var branche2Auswahl = document.forms.Formular.branche2;
	branche2Auswahl.options.length = 0;
	
	switch(branche1Auswahl.options[branche1Auswahl.selectedIndex].value) {
		case 'Bahnverkehr':
			branche2Auswahl.options[0] = new Option("Bahnunternehmen", "Bahnunternehmen");
			branche2Auswahl.options[1] = new Option("Eisenbahninfrastrukturunternehmen", "Eisenbahninfrastrukturunternehmen");
		break;
		case 'OPNV':
			branche2Auswahl.options[0] = new Option("ÖPNV, Verkehrsbetriebe", "OPNV");
		break;
		case 'Bahntechnik_Industrie':
			branche2Auswahl.options[0] = new Option("Fahrzeuge", "Fahrzeuge");
			branche2Auswahl.options[1] = new Option("Fahrweg", "Fahrweg");
			branche2Auswahl.options[2] = new Option("Leit- und Sicherungstechnik", "LeitUndSicherungstechnik");
			branche2Auswahl.options[3] = new Option("Telekommunikation, IT, Telematik", "TelekommunikationITTelematik");
			branche2Auswahl.options[4] = new Option("Bahnhof / Station (Bau, Einrichtung, Infosysteme, Automaten", "Bahnhof_Station");
			branche2Auswahl.options[5] = new Option("Elektrotechnik (Fahrleitung, Strom)", "Elektrotechnik");
			branche2Auswahl.options[6] = new Option("Guterbahntechnik (Umschlag- und Rangiertechnik)", "Guterbahntechnik");
			branche2Auswahl.options[7] = new Option("Bahntechnik-Dienstleister", "Bahntechnik_Dienstleister");
		break;
		case 'Geotechnik_DGGTTechnik':
			branche2Auswahl.options[0] = new Option("Geodatentechnik", "Geodatentechnik");
			branche2Auswahl.options[1] = new Option("Grund-/Tiefbau", "Grund_Tiefbau");
			branche2Auswahl.options[2] = new Option("Grund-/Tiefbau-Zulieferer", "Grund_Tiefbau_Zulieferer");
		break;
		case 'IT':
			branche2Auswahl.options[0] = new Option("Software", "Software");
		break;
		case 'Medien':
			branche2Auswahl.options[0] = new Option("Fachpresse", "Fachpresse");
			branche2Auswahl.options[1] = new Option("Online-Portal", "Online_Portal");
			branche2Auswahl.options[2] = new Option("Buchverlag", "Buchverlag");
			branche2Auswahl.options[3] = new Option("Buchhandlung", "Buchhandlung");
		break;
		case 'Dienstleistungen':
			branche2Auswahl.options[0] = new Option("Unternehmensberatung", "Unternehmensberatung");
			branche2Auswahl.options[1] = new Option("Personalberatung/-vermittlung", "Personalberatung_Vermittlung");
			branche2Auswahl.options[2] = new Option("Rechtsberatung", "Rechtsberatung");
			branche2Auswahl.options[3] = new Option("Vermietung, Leasing", "Vermietung_Leasing");
			branche2Auswahl.options[4] = new Option("Finanzierung", "Finanzierung");
			branche2Auswahl.options[5] = new Option("Versicherungen", "Versicherungen");
		break;
		case 'VerbaendeOrganisationenInstitutionen':
			branche2Auswahl.options[0] = new Option("Öffentliche Verwaltung", "OffentlicheVerwaltung");
			branche2Auswahl.options[1] = new Option("Verbande, Organisationen", "Verbande_Organisationen");
		break;
		case 'WissenschaftForschungWeiterbildung':
			branche2Auswahl.options[0] = new Option("Hochschulen", "Hochschulen");
			branche2Auswahl.options[1] = new Option("Seminarveranstalter", "Seminarveranstalter");
			branche2Auswahl.options[2] = new Option("Institute/Forschungseinrichtungen", "Institute_Forschungseinrichtungen");
		break;
		case 'MessenKongresseVeranstaltungen':
			branche2Auswahl.options[0] = new Option("Messegesellschaft/-veranstalter", "Messegesellschaft_Veranstalter");
		break;
		case 'Private':
			branche2Auswahl.options[0] = new Option("Privatperson", "Privatperson");
		break;
	}
}


function update_auswahl2() {
	var branche2Auswahl = document.forms.Formular.branche2;
	var erpbrancheAuswahl = document.forms.Formular.erpbranche;
	erpbrancheAuswahl.options.length = 0;
	
	switch(branche2Auswahl.options[branche2Auswahl.selectedIndex].value) {
		case 'Bahnunternehmen':
			erpbrancheAuswahl.options[0] = new Option("Eisenbahnverkehrsunternehmen Personen", "Eisenbahnverkehrsunternehmen_Personen");
			erpbrancheAuswahl.options[1] = new Option("Eisenbahnverkehrsunternehmen Guter", "Eisenbahnverkehrsunternehmen_Guter");
		break;
		case 'Eisenbahninfrastrukturunternehmen':
			erpbrancheAuswahl.options[0] = new Option("Keine weitere Auswahl", "Eisenbahninfrastrukturunternehmen");
		break;
		case 'OPNV':
			erpbrancheAuswahl.options[0] = new Option("ÖPNV-Schiene", "OPNV-Schiene");
			erpbrancheAuswahl.options[1] = new Option("ÖPNV-Bus", "OPNV-Bus");
		break;
		case 'Fahrzeuge':
			erpbrancheAuswahl.options[0] = new Option("Herst. von Fahrzeugen", "Herstellung_von_Fahrzeugen");
			erpbrancheAuswahl.options[1] = new Option("Fahrzeugkomponenten", "Fahrzeugkomponenten");
			erpbrancheAuswahl.options[2] = new Option("Interieur", "Interieur");
		break;
		case 'Fahrweg':
			erpbrancheAuswahl.options[0] = new Option("Fahrbahn / Oberbau / Gleisanlage", "Fahrban_Oberbau_Gleisanlage");
			erpbrancheAuswahl.options[1] = new Option("Konstruktiver Ing. Bau (Hochbau, Brucken, Tunnel)", "Konstruktiver_Ing_Bau");
		break;
		case 'LeitUndSicherungstechnik':
			erpbrancheAuswahl.options[0] = new Option("Keine weitere Auswahl", "Leit_Und_Sicherungstechnik");
		break;
		case 'TelekommunikationITTelematik':
			erpbrancheAuswahl.options[0] = new Option("Keine weitere Auswahl", "Telekommunikation_IT_Telematik");
		break;
		case 'Bahnhof_Station':
			erpbrancheAuswahl.options[0] = new Option("Keine weitere Auswahl", "Bahnhof_Station");
		break;
		case 'Elektrotechnik':
			erpbrancheAuswahl.options[0] = new Option("Keine weitere Auswahl", "Elektrotechnik");
		break;
		case 'Guterbahntechnik':
			erpbrancheAuswahl.options[0] = new Option("Keine weitere Auswahl", "Guterbahntechnik");
		break;
		case 'Bahntechnik_Dienstleister':
			erpbrancheAuswahl.options[0] = new Option("Ingenieurburos, Consultants, Sachverstandige", "Ingenieurburos_Consultants_Sachverstandige");
			erpbrancheAuswahl.options[1] = new Option("Verkehrsplanung", "Verkehrsplanung");
			erpbrancheAuswahl.options[2] = new Option("Jurist Schienenverkehr", "Jurist_Schienenverkehr");
		break;
		case 'Geodatentechnik':
			erpbrancheAuswahl.options[0] = new Option("Keine weitere Auswahl", "Geodatentechnik");
		break;
		case 'Grund_Tiefbau':
			erpbrancheAuswahl.options[0] = new Option("Keine weitere Auswahl", "Grund_Tiefbau");
		break;
		case 'Grund_Tiefbau_Zulieferer':
			erpbrancheAuswahl.options[0] = new Option("Keine weitere Auswahl", "Grund_Tiefbau_Zulieferer");
		break;
		case 'Software':
			erpbrancheAuswahl.options[0] = new Option("Keine weitere Auswahl", "Software");
		break;
		case 'Fachpresse':
			erpbrancheAuswahl.options[0] = new Option("Keine weitere Auswahl", "Fachpresse");
		break;
		case 'Online_Portal':
			erpbrancheAuswahl.options[0] = new Option("Keine weitere Auswahl", "Online_Portal");
		break;
		case 'Buchverlag':
			erpbrancheAuswahl.options[0] = new Option("Keine weitere Auswahl", "Buchverlag");
		break;
		case 'Buchhandlung':
			erpbrancheAuswahl.options[0] = new Option("Keine weitere Auswahl", "Buchhandlung");
		break;
		case 'Unternehmensberatung':
			erpbrancheAuswahl.options[0] = new Option("Keine weitere Auswahl", "Unternehmensberatung");
		break;
		case 'Personalberatung_Vermittlung':
			erpbrancheAuswahl.options[0] = new Option("Keine weitere Auswahl", "Personalberatung_Vermittlung");
		break;
		case 'Rechtsberatung':
			erpbrancheAuswahl.options[0] = new Option("Keine weitere Auswahl", "Rechtsberatung");
		break;
		case 'Vermietung_Leasing':
			erpbrancheAuswahl.options[0] = new Option("Keine weitere Auswahl", "Vermietung_Leasing");
		break;
		case 'Finanzierung':
			erpbrancheAuswahl.options[0] = new Option("Keine weitere Auswahl", "Finanzierung");
		break;
		case 'Versicherungen':
			erpbrancheAuswahl.options[0] = new Option("Keine weitere Auswahl", "Versicherungen");
		break;
		case 'OffentlicheVerwaltung':
			erpbrancheAuswahl.options[0] = new Option("Ministerien", "Ministerien");
			erpbrancheAuswahl.options[1] = new Option("IHK", "IHK");
		break;
		case 'Verbande_Organisationen':
			erpbrancheAuswahl.options[0] = new Option("Keine weitere Auswahl", "Verbande_Organisationen");
		break;
		case 'Hochschulen':
			erpbrancheAuswahl.options[0] = new Option("Keine weitere Auswahl", "Hochschulen");
		break;
		case 'Seminarveranstalter':
			erpbrancheAuswahl.options[0] = new Option("Keine weitere Auswahl", "Seminarveranstalter");
		break;
		case 'Institute_Forschungseinrichtungen':
			erpbrancheAuswahl.options[0] = new Option("Keine weitere Auswahl", "Institute_Forschungseinrichtungen");
		break;
		case 'Messegesellschaft_Veranstalter':
			erpbrancheAuswahl.options[0] = new Option("Keine weitere Auswahl", "Messegesellschaft_Veranstalter");
		break;
		case 'Privatperson':
			erpbrancheAuswahl.options[0] = new Option("Keine weitere Auswahl", "Privatperson");
		break;
	}
}
