var num_of_cats = 9; // This is the number of categories, including the first, blank, category.

var option_array = new Array(num_of_cats);

option_array[0] = new Array("Bitte einen Kurs auswählen"); // This is the first (blank) category. Don't mess with it.



option_array[1] = new Array("Bitte wählen Sie eine Preiskategorie",
"80,- € 10 x 45 min 1 Erw. + 1 Kind",
"120,- € 10 x 45 min 1 Erw. + 2 Kinder");



option_array[2] = new Array("Bitte wählen Sie eine Preiskategorie",
"120,- € 10 x 90 min - Fortlaufend",
"115,- € - Achterkarte");



option_array[3] = new Array("Bitte wählen Sie eine Preiskategorie",
"45,- € 3 x 90 min");



var kategorieIndexe = new Array (9);

kategorieIndexe[0] = new Array ();

kategorieIndexe[1] = new Array ("1","2","3","4","5","6");

kategorieIndexe[2] = new Array ("7","8","9","10", "11","12");

kategorieIndexe[3] = new Array ("13");










function switch_select()

{
	var abfrageVari = window.document.anmeldung.Kursauswahl.selectedIndex;
	
	
	for (loop = window.document.anmeldung.Preiskategorie.options.length-1; loop > 0; loop--)
	{
		window.document.anmeldung.Preiskategorie.options[loop] = null;
	}
	
	
	
	for (x = 0; x < kategorieIndexe.length; x++)
	{
	
		for (y = 0; y < kategorieIndexe[x].length; y++)
		{
		
			if (abfrageVari == kategorieIndexe[x][y])
			{
				for (z = 0; z < option_array[x].length; z++)
				{ 
					window.document.anmeldung.Preiskategorie.options[z] = new Option(option_array[x][z]);
				}
			
			} 
		}
	}
	
	window.document.anmeldung.Preiskategorie.selectedIndex = 0;
}


/**********************************************************************************************/


function FensterOeffnen (Adresse) 
{
  Fenster1 = window.open(Adresse, "Zweitfenster", "width=570,height=590,left=100,top=100,scrollbars=yes");
  Fenster1.focus();
}




function toggle(switchElement) 
{
	if (switchElement.value == 'einzug')
	{
		document.getElementById("kontoDatenHaus33").style.display = "none";
		document.getElementById("kontoDaten").style.display = "block";
	}
	else if (switchElement.value == 'ueberweisung')
	{
		document.getElementById("kontoDatenHaus33").style.display = "block";
		document.getElementById("kontoDaten").style.display = "none";
	}
}


/******************************************************************************/
var um_Rechnungsadresse_zu_checken = 0;


function toggle_Rechnungsadresse(switchElement) 
{
	
	if (um_Rechnungsadresse_zu_checken == 0)
	{
		document.getElementById("Rechnungsadresse_Feld").style.display = "block";
		um_Rechnungsadresse_zu_checken = 1;
	}
	else if (um_Rechnungsadresse_zu_checken == 1)
	{
		document.getElementById("Rechnungsadresse_Feld").style.display = "none";
		um_Rechnungsadresse_zu_checken = 0;
	}
}


/******************************************************************************




















var selectBoxKursePreiskategorie = new Array (5);

selectBoxKursePreiskategorie[0] = new Array ();
selectBoxKursePreiskategorie[1] = new Array (
						"Yoga in der Schwangerschaft (YS)", 	
						"Yoga mit Gewicht (YG1)", 
						"Yoga mit Gewicht (YG2)",
						"Hatha Yoga (YHa)", 	
						"Hormon Yoga (YHo1)", 	
						"Hormon Yoga (YHo2)", 	
						"Hormon Yoga (YHo3)",  	
						"Ashtanga Yoga in der Mittagspause (YM)", 	
						"Feldenkrais für den Rücken (FK1)",  
						"Feldenkrais (FK2)",
						"Feldenkrais (FK3)");

selectBoxKursePreiskategorie[2] = new Array (
						"Ashtanga Yoga in der Mittagspause (YM)");

selectBoxKursePreiskategorie[3] = new Array (
						"Entspannung erleben (EE)", 
						"Spielend Ruhe lernen (EK1) 5-8 Jahre", 	
						"Konzentration und Ruhe lernen (EK2) 9-12 Jahre");

selectBoxKursePreiskategorie[4] = new Array (   	 	
						"Musikgarten 1 (MG1) 1,5 -3 Jahre", 	        	
						"Musikgarten 2 (MG2) 3-5 Jahre", 
						"Baby-Musikgarten (BMG) 6-18 Monate");

*/


/*
function switch_select()

{
	//alert( 'Penis', 'meine Nachricht' );
	for (loop = window.document.anmeldung.Preiskategorie.options.length-1; loop > 0; loop--)
	{
		window.document.anmeldung.Preiskategorie.options[loop] = null;
		//alert( loop, 'meine Nachricht' );
	}
	for (x = 0; x < selectBoxKursePreiskategorie.length; x++)
	  {
		  
		  for (y = 0; y < selectBoxKursePreiskategorie[x].length; y++)
		  {
			   
			 if (window.document.anmeldung.Kursauswahl.value == selectBoxKursePreiskategorie[x][y])
			{
				//alert( selectBoxKursePreiskategorie[x][y], 'meine Nachricht' );
				for (z = 0; z < option_array[x].length; z++)
				  {
					 
					window.document.anmeldung.Preiskategorie.options[z] = new Option(option_array[x][z]);
				  }
				//alert( selectBoxKursePreiskategorie[x][y], 'meine Nachricht' );
				//break;
			} 
		  }
	  }
	

 	window.document.anmeldung.Preiskategorie.selectedIndex = 0;
}
*/ 

/**********************************************************************************************/

