// Fehler-Pruef-Funktion 
			function errorSteuerung(sText) {
					if (! this.bError) { return; }
					if (! sText || sText == '') { sText = 'undef'; }
					alert(sText);
			}//errorSteuerung
	
// Voreinstellung der Parameter bei Besuch und Reload (mit Cache leeren) der Seite
			function initSteuerung(){
					for (var vBlock in this.aElement) {
						// Vordefinition der benoetigten Variablen
						// Anzeige im Tabellen-Kopf
						var oLink1 = window.document.getElementById(this.aElement[vBlock]['link_name']);
						var oSetup1 = window.document.getElementById(this.aElement[vBlock]['setup']);
						var oAktion1 = window.document.getElementById(this.aElement[vBlock]['aktion']);
						var oVlz1 = window.document.getElementById(this.aElement[vBlock]['months']);
						
						// Anzeige im Tabellen-Fuss
						var oLink2 = window.document.getElementById(this.aElement[vBlock]['link_name_2']);
						var oSetup2 = window.document.getElementById(this.aElement[vBlock]['setup_2']);
						var oAktion2 = window.document.getElementById(this.aElement[vBlock]['aktion_2']);
						var oVlz2 = window.document.getElementById(this.aElement[vBlock]['months_2']);
						
						// Radio-Button auf Aktion  (/off\./, 'on.')
						if (window.document.getElementById(this.aElement[vBlock]['linux_name'])) {
							window.document.getElementById(this.aElement[vBlock]['linux_name']).src = 
							window.document.getElementById(this.aElement[vBlock]['linux_name']).src.replace(/off\./, 'on.');
							// Klassenumsetzung auf Aktion in der Tabellenspalte
							for ( var iLauf in window.document.getElementsByTagName('td') ) {
								 if (! (window.document.getElementsByTagName('td')[iLauf] && 
								   window.document.getElementsByTagName('td')[iLauf].className) ) { continue; }
								 var sClassName = window.document.getElementsByTagName('td')[iLauf].className;
								 // Festlegung der Tabellenspalte die auf Aktion sitzen soll
								 if (sClassName.search(/tc_3/i) == -1) { continue; }
								// Klassenumsetzung auf Aktion  (/noact/, 'act')
								window.document.getElementsByTagName('td')[iLauf].className = 
  								  window.document.getElementsByTagName('td')[iLauf].className.replace(/noact/, 'act');
								  for (var iNode in window.document.getElementsByTagName('td')[iLauf].childNodes) {
								    if (window.document.getElementsByTagName('td')[iLauf].childNodes[iNode].nodeName != 'IMG') { continue; }
									// Bild-Dateiumbennung auf Aktion (/blau/, 'rot')
									window.document.getElementsByTagName('td')[iLauf].childNodes[iNode].src = 
  									window.document.getElementsByTagName('td')[iLauf].childNodes[iNode].src.replace(/blau/, 'rot');
									
								  }
							}
						} else { this.error('linux_name not found'); }
						
						if (window.document.getElementById(this.aElement[vBlock]['win_name'])) {
							window.document.getElementById(this.aElement[vBlock]['win_name']).src = 
							window.document.getElementById(this.aElement[vBlock]['win_name']).src.replace(/on\./, 'off.')
						} else { this.error('win_name not found'); }
						
						// Bestell-Link-Manipulation im Tabellen-Kopf
						if (oLink1) { oLink1.href = this.sOrderLink + this.aElement[vBlock]['link_name_linux']; } 
						else { this.error('oLink1 not found'); }
						
                  // Bestell-Link-Manipulation im Tabellen-Fuss
                  if (oLink2) { oLink2.href = this.sOrderLink + this.aElement[vBlock]['link_name_linux']; } 
						else { this.error('oLink2 not found'); }

						// Schalter fuer generelle Anzeige verschiedener Elemente	
						// Anzeige im Tabellen-Kopf
						if (oSetup1) { oSetup1.style.display = "none"; }
						else { this.error('oSetup1 not found'); }
						if (oAktion1) { oAktion1.style.display = "none"; }
						else { this.error('oAktion1 not found'); }
						if (oVlz1) { oVlz1.style.display = "none"; }
						else { this.error('oVlz1 not found'); }
						
						// Anzeige im Tabellen-Fuss
						if (oSetup2) { oSetup2.style.display = "none"; }
						else { this.error('oSetup2 not found'); }
						if (oAktion2) { oAktion2.style.display = "none"; }
						else { this.error('oAktion2 not found'); }
						if (oVlz2) { oVlz2.style.display = "none"; }
						else { this.error('oVlz2 not found'); }
					}
					
					this.sLogoSelect_1 = 'image_logo_linux';
					this.sLogoSelect_2 = 'image_logo_win';
					
					//Platzhalter linke Spalte - im Tabellen-Kopf
					//Setup-Preise
					this.sSetupSelect_1_1 = 'setup_price_linux_1';
					this.sSetupSelect_2_1 = 'setup_price_win_1';
					//Aktions-Text
					this.sAktionSelect_1_1 = 'aktion_linux_1';
					this.sAktionSelect_2_1 = 'aktion_win_1';
					
					//Platzhalter linke Spalte - im Tabellen-Fuss
					//Setup-Preise
					this.sSetupSelect_1_2 = 'setup_price_linux_2';
					this.sSetupSelect_2_2 = 'setup_price_win_2';
					//Aktions-Text
					this.sAktionSelect_1_2 = 'aktion_linux_2';
					this.sAktionSelect_2_2 = 'aktion_win_2';

			}//initSteuerung

			function changeSteuerung(sSelect) {
				//Wechsel der von Tabellenzeilen - je nach Betriebssystem
			   if (sSelect == 'linux') {
					// Ein- bzw. Ausblenden der gekennzeichneten Tabellenzeile
					for ( var iLauf in window.document.getElementsByTagName('tr') ) {
						 if (! (window.document.getElementsByTagName('tr')[iLauf] && 
							window.document.getElementsByTagName('tr')[iLauf].className) ) { continue; }
						 var sClassName = window.document.getElementsByTagName('tr')[iLauf].className;
						 // Festlegung der zu suchenden Klasse
						 if (sClassName.search(/ftr_linux/i) == -1) { continue; }
						// Klassenumsetzung
						window.document.getElementsByTagName('tr')[iLauf].className =
						window.document.getElementsByTagName('tr')[iLauf].className.replace(/ftr_hide/, 'ftr_show');
					}	
				} else{
					for ( var iLauf in window.document.getElementsByTagName('tr') ) {
						 if (! (window.document.getElementsByTagName('tr')[iLauf] && 
							window.document.getElementsByTagName('tr')[iLauf].className) ) { continue; }
						 var sClassName = window.document.getElementsByTagName('tr')[iLauf].className;
						 // Festlegung der zu suchenden Klasse
						 if (sClassName.search(/ftr_linux/i) == -1) { continue; }
						// Klassenumsetzung
						window.document.getElementsByTagName('tr')[iLauf].className =
						window.document.getElementsByTagName('tr')[iLauf].className.replace(/ftr_show/, 'ftr_hide');
					}	
				}
					
				if (sSelect == 'win') {
					// Ein- bzw. Ausblenden der gekennzeichneten Tabellenzeile
					for ( var iLauf in window.document.getElementsByTagName('tr') ) {
						 if (! (window.document.getElementsByTagName('tr')[iLauf] && 
							window.document.getElementsByTagName('tr')[iLauf].className) ) { continue; }
						 var sClassName = window.document.getElementsByTagName('tr')[iLauf].className;
						 // Festlegung der zu suchenden Klasse
						 if (sClassName.search(/ftr_win/i) == -1) { continue; }
						// Klassenumsetzung
						window.document.getElementsByTagName('tr')[iLauf].className =
						window.document.getElementsByTagName('tr')[iLauf].className.replace(/ftr_hide/, 'ftr_show');
					}	
				} else{
					for ( var iLauf in window.document.getElementsByTagName('tr') ) {
						 if (! (window.document.getElementsByTagName('tr')[iLauf] && 
							window.document.getElementsByTagName('tr')[iLauf].className) ) { continue; }
						 var sClassName = window.document.getElementsByTagName('tr')[iLauf].className;
						 // Festlegung der zu suchenden Klasse
						 if (sClassName.search(/ftr_win/i) == -1) { continue; }
						// Klassenumsetzung
						window.document.getElementsByTagName('tr')[iLauf].className =
						window.document.getElementsByTagName('tr')[iLauf].className.replace(/ftr_show/, 'ftr_hide');
					}	
				}
			
				
				for (var vBlock in this.aElement) {	
				     // Wechsel der RadioButton-Bilder, der allgemeinen Einrichtungsgebuehr und der BS-Logos
					if (window.document.getElementById(this.aElement[vBlock]['linux_name'])) {
						if (sSelect && sSelect == 'linux') {
						  window.document.getElementById(this.aElement[vBlock]['linux_name']).src =
						    window.document.getElementById(this.aElement[vBlock]['linux_name']).src.replace(/off\./, 'on.');
						  window.document.getElementById(this.sSetupSelect_1_1).style.display = "block";
						  window.document.getElementById(this.sSetupSelect_1_2).style.display = "block";
						  window.document.getElementById(this.sAktionSelect_1_1).style.display = "block";
						  window.document.getElementById(this.sAktionSelect_1_2).style.display = "block";
						  window.document.getElementById(this.sLogoSelect_1).style.display = "block";
						}
						else {
							window.document.getElementById(this.aElement[vBlock]['linux_name']).src =
							  window.document.getElementById(this.aElement[vBlock]['linux_name']).src.replace(/on\./, 'off.');
						  window.document.getElementById(this.sSetupSelect_1_1).style.display = "none";
						  window.document.getElementById(this.sSetupSelect_1_2).style.display = "none";
						  window.document.getElementById(this.sAktionSelect_1_1).style.display = "none";
						  window.document.getElementById(this.sAktionSelect_1_2).style.display = "none";
							window.document.getElementById(this.sLogoSelect_1).style.display = "none";
						}

                    } else { this.error('linux_name not found'); }
					
					if (window.document.getElementById(this.aElement[vBlock]['win_name'])) {
						if (sSelect && sSelect == 'win') {
						  window.document.getElementById(this.aElement[vBlock]['win_name']).src =
						    window.document.getElementById(this.aElement[vBlock]['win_name']).src.replace(/off\./, 'on.');
						  window.document.getElementById(this.sSetupSelect_2_1).style.display = "block";
						  window.document.getElementById(this.sSetupSelect_2_2).style.display = "block";
						  window.document.getElementById(this.sAktionSelect_2_1).style.display = "block";
						  window.document.getElementById(this.sAktionSelect_2_2).style.display = "block";
						  window.document.getElementById(this.sLogoSelect_2).style.display = "block";
						}
						else {
							window.document.getElementById(this.aElement[vBlock]['win_name']).src =
							  window.document.getElementById(this.aElement[vBlock]['win_name']).src.replace(/on\./, 'off.');
							window.document.getElementById(this.sSetupSelect_2_1).style.display = "none";
						  window.document.getElementById(this.sSetupSelect_2_2).style.display = "none";
						  window.document.getElementById(this.sAktionSelect_2_1).style.display = "none";
						  window.document.getElementById(this.sAktionSelect_2_2).style.display = "none";
							window.document.getElementById(this.sLogoSelect_2).style.display = "none";
						}
					} else { this.error('win_name not found'); }
				
				
					// Wechsel der Preis-Bilder im Tabellen-Kopf
					if (window.document.getElementById(this.aElement[vBlock]['image_price'])) {
						window.document.getElementById(this.aElement[vBlock]['image_price']).src = 
						   (sSelect && sSelect == 'win')
                     ? window.document.getElementById(this.aElement[vBlock]['image_price']).src.replace(/windows\./, 'linux.')
						   : window.document.getElementById(this.aElement[vBlock]['image_price']).src.replace(/linux\./, 'windows.');
                    } else { this.error('image_price not found'); }
					
					if (window.document.getElementById(this.aElement[vBlock]['image_price'])) {
						window.document.getElementById(this.aElement[vBlock]['image_price']).src = 
						   (sSelect && sSelect == 'linux')
                     ? window.document.getElementById(this.aElement[vBlock]['image_price']).src.replace(/windows\./, 'linux.')
						   : window.document.getElementById(this.aElement[vBlock]['image_price']).src.replace(/linux\./, 'windows.');
                    } else { this.error('image_price not found'); } 
					
					// Wechsel der Preis-Bilder im Tabellen-Fuss
					if (window.document.getElementById(this.aElement[vBlock]['image_price_2'])) {
						window.document.getElementById(this.aElement[vBlock]['image_price_2']).src = 
						   (sSelect && sSelect == 'win')
                     ? window.document.getElementById(this.aElement[vBlock]['image_price_2']).src.replace(/windows\./, 'linux.')
						   : window.document.getElementById(this.aElement[vBlock]['image_price_2']).src.replace(/linux\./, 'windows.');
                    } else { this.error('image_price_2 not found'); }
					
					if (window.document.getElementById(this.aElement[vBlock]['image_price_2'])) {
						window.document.getElementById(this.aElement[vBlock]['image_price_2']).src = 
						   (sSelect && sSelect == 'linux')
                     ? window.document.getElementById(this.aElement[vBlock]['image_price_2']).src.replace(/windows\./, 'linux.')
						   : window.document.getElementById(this.aElement[vBlock]['image_price_2']).src.replace(/linux\./, 'windows.');
                    } else { this.error('image_price_2 not found'); }
       
	   
							// Wechsel der Verlinkung Bestell-Button im Tabellen-Kopf
							var oLink1 = window.document.getElementById(this.aElement[vBlock]['link_name']);
							if (oLink1) {
									oLink1.href = (sSelect && sSelect == 'win')
										? this.sOrderLink + this.aElement[vBlock]['link_name_win']
										: this.sOrderLink + this.aElement[vBlock]['link_name_linux'];
								} else { this.error('oLink1 not found'); }
								
							// Wechsel der Verlinkung Bestell-Button im Tabellen-Fuss
							var oLink2 = window.document.getElementById(this.aElement[vBlock]['link_name_2']);
							if (oLink2) {
									oLink2.href = (sSelect && sSelect == 'win')
										? this.sOrderLink + this.aElement[vBlock]['link_name_win']
										: this.sOrderLink + this.aElement[vBlock]['link_name_linux'];
								} else { this.error('oLink2 not found'); }	
								
								
							// Wechsel der Anzeige der Vertragslaufzeit im Tabellen-Kopf
							var oVlz1 = window.document.getElementById(this.aElement[vBlock]['months']);
							if (oVlz1) {
								oVlz1.innerHTML = (sSelect && sSelect == 'linux')
										? this.aElement[vBlock]['vlz_linux']
										: this.aElement[vBlock]['vlz_win'];
							} else { this.error('oVlz1 not found'); }
							
							// Wechsel der Anzeige der Vertragslaufzeit im Tabellen-Fuss
							var oVlz2 = window.document.getElementById(this.aElement[vBlock]['months_2']);
							if (oVlz2) {
								oVlz2.innerHTML = (sSelect && sSelect == 'linux')
										? this.aElement[vBlock]['vlz_linux']
										: this.aElement[vBlock]['vlz_win'];
							} else { this.error('oVlz2 not found'); }
							
							// Wechsel der Setup-Preise im Tabellen-Kopf
							var oSetup1 = window.document.getElementById(this.aElement[vBlock]['setup']);
							if (oSetup1) {
								oSetup1.innerHTML = (sSelect && sSelect == 'linux')
										? this.aElement[vBlock]['setup_linux']
										: this.aElement[vBlock]['setup_win'];
							} else { this.error('oSetup1 not found'); }
							
							// Wechsel der Setup-Preise im Tabellen-Fuss 
							var oSetup2 = window.document.getElementById(this.aElement[vBlock]['setup_2']);
							if (oSetup2) {
								oSetup2.innerHTML = (sSelect && sSelect == 'linux')
										? this.aElement[vBlock]['setup_linux']
										: this.aElement[vBlock]['setup_win'];
							} else { this.error('oSetup2 not found'); }
							
							// Wechsel der Aktionsdatum-Anzeige im Tabellen-Kopf
							var oAktion1 = window.document.getElementById(this.aElement[vBlock]['aktion']);
							if (oAktion1) {
								oAktion1.innerHTML = (sSelect && sSelect == 'linux')
										? this.aElement[vBlock]['aktion_linux']
										: this.aElement[vBlock]['aktion_win'];
							} else { this.error('oAktion1 not found'); }
							
							// Wechsel der Aktionsdatum-Anzeige im Tabellen-Fuss
							var oAktion2 = window.document.getElementById(this.aElement[vBlock]['aktion_2']);
							if (oAktion2) {
								oAktion2.innerHTML = (sSelect && sSelect == 'linux')
										? this.aElement[vBlock]['aktion_linux']
										: this.aElement[vBlock]['aktion_win'];
							} else { this.error('oAktion2 not found'); }
				}	
			}//changeSteuerung
         
			// Steuerungsfunktion fuer die entsprechenden Artikelspalten
			function addSteuerung(iId, sVLZ_Linux, sVLZ_Win, sSetup_Linux, sSetup_Win, sOrderLink_Linux, sOrderLink_Win, sAktion_Linux, sAktion_Win) {
					var aElement = new Object;
					aElement['linux_name'] = 'radio_'+iId+'_1';
					aElement['win_name']   = 'radio_'+iId+'_2';;
					aElement['image_price'] = 'img_price_'+iId+'_1';
					aElement['image_price_2'] = 'img_price_'+iId+'_2';
					
					aElement['months'] = 'vlz_txt_'+iId+'_1';
					aElement['months_2'] = 'vlz_txt_'+iId+'_2';
					aElement['vlz_linux'] = sVLZ_Linux;
					aElement['vlz_win'] = sVLZ_Win;
					
					aElement['setup'] = 'setup_price_'+iId+'_1';
					aElement['setup_2'] = 'setup_price_'+iId+'_2';
					aElement['setup_linux'] = sSetup_Linux;
					aElement['setup_win'] = sSetup_Win;
					
					aElement['link_name'] = 'link_'+iId+'_1';
					aElement['link_name_2'] = 'link_'+iId+'_2';
					aElement['link_name_linux'] = sOrderLink_Linux;
					aElement['link_name_win'] = sOrderLink_Win;
					
					aElement['aktion'] = 'aktion_'+iId+'_1';
					aElement['aktion_2'] = 'aktion_'+iId+'_2';
					aElement['aktion_linux'] = sAktion_Linux;
					aElement['aktion_win'] = sAktion_Win;
					this.aElement[iId] = aElement;
			}//addSteuerung
			

	
			function Steuerung(sOrderLink) {
					this.aElement = new Object;
					this.bError = false; // true = on
					this.sOrderLink = sOrderLink;
					this.change = changeSteuerung;
					this.error = errorSteuerung;
					this.init = initSteuerung;
					this.add = addSteuerung;
			}//Steuerung
			
		// Entsprechende Aenderungen sind in diesem Block vorzunehmen
		// Paket_ID, VLZ_Linux, VLZ_Win, Setup_Linux, Setup_Win, Bestell_Link_Button_Linux, Bestell_Link_Button_Win, Text_Linux, Text_Windows
		var oSteuerung = new Steuerung('https://www.strato-alojamiento.es/ordering/?phase=Hosting&Department=DEDI&step=select_package&wfc=dedi&Category=DEDICATED_SERVER&');
		oSteuerung.add(1, '6', '6', 'Costes de instalaci&oacute;n: 0,- &euro;', 'Costes de instalaci&oacute;n: 0,- &euro;', 'Group=DEDI_HIGHQ&Product=DEDI_HIGHQ_S_6', 'Group=DEDI_WINDOWS&Product=DEDI_WINDOWS_S_6', 'v&#225;lido hasta el 30.04.09', 'v&#225;lido hasta el 30.04.09');
		oSteuerung.add(2, '6', '6', 'Costes de instalaci&oacute;n: 0,- &euro;', 'Costes de instalaci&oacute;n: 0,- &euro;', 'Group=DEDI_HIGHQ&Product=DEDI_HIGHQ_M_6', 'Group=DEDI_WINDOWS&Product=DEDI_WINDOWS_M_6', 'v&#225;lido hasta el 30.04.09', 'v&#225;lido hasta el 30.04.09');
		oSteuerung.add(3, '6', '6', 'Costes de instalaci&oacute;n: 0,- &euro;', 'Costes de instalaci&oacute;n: 0,- &euro;', 'Group=DEDI_HIGHQ&Product=DEDI_HIGHQ_L_6', 'Group=DEDI_WINDOWS&Product=DEDI_WINDOWS_L_6', 'v&#225;lido hasta el 30.04.09', 'v&#225;lido hasta el 30.04.09');
