			function init() {
				document.WheelSelection.widthList.disabled = true;
				document.WheelSelection.heightList.disabled = true;
				document.WheelSelection.dimensionList.disabled = true;
				document.WheelSelection.speedList.disabled = true;
				document.WheelSelection.manufacturerList.disabled = true;

				loadWheels("$$SELECT$$", "", "", "", "", document.WheelSelection.widthList, false);
			}
			function init2() {
				document.WheelSelection.widthList.disabled = true;
				document.WheelSelection.heightList.disabled = true;
				document.WheelSelection.manufacturerList.disabled = true;

				loadWheels("$$SELECT$$", "", "", "", "", document.WheelSelection.widthList, false);
			}			
		
			function loadWidth() {
				var val = document.WheelSelection.widthList.value;
				
				document.WheelSelection.heightList.disabled = true;
				document.WheelSelection.dimensionList.disabled = true;
				document.WheelSelection.speedList.disabled = true;
				document.WheelSelection.manufacturerList.disabled = true;

				document.WheelSelection.heightList.selectedIndex = 0;
				document.WheelSelection.dimensionList.selectedIndex = 0;
				document.WheelSelection.speedList.selectedIndex = 0;
				document.WheelSelection.manufacturerList.selectedIndex = 0;
				
				if (val != "-") {
					loadWheels(val, "", "$$SELECT$$", "", "", 
						document.WheelSelection.dimensionList, false);
				}
			}
			function loadWidth2() {
				var val = document.WheelSelection.widthList.value;
				
				document.WheelSelection.heightList.disabled = true;
				document.WheelSelection.manufacturerList.disabled = true;
				document.WheelSelection.heightList.selectedIndex = 0;
				document.WheelSelection.manufacturerList.selectedIndex = 0;
				
				if (val != "-") {
					loadWheels2(val,  "$$SELECT$$", "",
						document.WheelSelection.heightList, false);
				}
			}
			function loadDimension() {
				var val = document.WheelSelection.dimensionList.value;
				
				document.WheelSelection.heightList.disabled = true;
				document.WheelSelection.speedList.disabled = true;
				document.WheelSelection.manufacturerList.disabled = true;
				
				document.WheelSelection.heightList.selectedIndex = 0;
				document.WheelSelection.speedList.selectedIndex = 0;
				document.WheelSelection.manufacturerList.selectedIndex = 0;
				
				if (val != "-") {
					loadWheels(document.WheelSelection.widthList.value, 
						"$$SELECT$$", val, "", "", 
						document.WheelSelection.heightList, false);
				}
			}
			
			function loadHeight() {
				var val = document.WheelSelection.heightList.value;
				
			 	document.WheelSelection.speedList.disabled = true;
			 	document.WheelSelection.manufacturerList.disabled = true;
				
				document.WheelSelection.speedList.selectedIndex = 0;
				document.WheelSelection.manufacturerList.selectedIndex = 0;
				
				if (val != "-") {
					loadWheels(document.WheelSelection.widthList.value, 
						val, document.WheelSelection.dimensionList.value,  "$$SELECT$$", "", 
						document.WheelSelection.speedList, false);
						
						
					loadWheels(document.WheelSelection.widthList.value, 
						document.WheelSelection.heightList.value, 
						document.WheelSelection.dimensionList.value,  "", "$$SELECT$$", 
						document.WheelSelection.manufacturerList, false);	
						
						
				}
			}

			
			function loadHeight2() {
				var val = document.WheelSelection.heightList.value;

			 	document.WheelSelection.manufacturerList.disabled = true;
 				document.WheelSelection.manufacturerList.selectedIndex = 0;
				
				if (val != "-") {
					loadWheels2(document.WheelSelection.widthList.value, 
						val,  "$$SELECT$$",  
						"", false);

				
						
					loadWheels2(document.WheelSelection.widthList.value, 
						document.WheelSelection.heightList.value, 
						 "$$SELECT$$", 
						document.WheelSelection.manufacturerList, false);	
						
						
				}
			}			
			
			function loadSpeed() { 
				var val = document.WheelSelection.speedList.value;
				
		 		document.WheelSelection.manufacturerList.disabled = false;
			//	document.WheelSelection.manufacturerList.selectedIndex = 0;
				
				if (val != "-") {
					loadWheels(document.WheelSelection.widthList.value, 
						document.WheelSelection.heightList.value, 
						document.WheelSelection.dimensionList.value,  val, "$$SELECT$$", 
						document.WheelSelection.manufacturerList, false);
				}
			}
			
			function loadWheels(selectedWidth, selectedHeight, selectedDimension,
				selectedSpeed, selectedManufacturer, box, withReset) {
				
				var url = "typo3conf/ext/user_reifensuche2/pi1/LoadWheels.php"+
					"?sessionId="+document.WheelSelection.sessionId.value +
					"&dealerNumber="+document.WheelSelection.dealerNumber.value +
					"&branch="+document.WheelSelection.branch.value+
					"&materialGroup="+document.WheelSelection.materialGroup.value+
					"&selectedWidth="+selectedWidth+
					"&selectedHeight="+selectedHeight+
					"&selectedDimension="+selectedDimension+
					"&selectedSpeed="+selectedSpeed+
					"&selectedManufacturer="+selectedManufacturer;
			
				//$("output").innerHTML = url;
				new Ajax.Request(url+"&noCache="+new Date().getTime(), 
				{ 
					method:'get',   
					onSuccess: function(transport){
						var json = transport.responseText.evalJSON(); 
						var result = json.result;
						box.options.length = 0;
						
						var opt = new Option();
						opt.text = "- Bitte waehlen -";
						opt.value = "-";
						box.options[box.options.length] = opt;
							
						for (var i=0;i<result.length;i++) {
							var opt = new Option();
							opt.text = result[i].label; 
							opt.value = result[i].value;
							box.options[box.options.length] = opt;
						}
						
						box.disabled = false;
					}
				});
				
			}
			
			function loadWheels2(selectedWidth, selectedHeight, selectedManufacturer, box, withReset) {
				
				var url = "typo3conf/ext/user_reifensuche2/pi1/LoadWheels2.php"+
					"?sessionId="+document.WheelSelection.sessionId.value +
					"&dealerNumber="+document.WheelSelection.dealerNumber.value +
					"&branch="+document.WheelSelection.branch.value+
					"&materialGroup="+document.WheelSelection.materialGroup.value+
					"&selectedWidth="+selectedWidth+
					"&selectedHeight="+selectedHeight+
					"&selectedManufacturer="+selectedManufacturer;
			
				//$("output").innerHTML = url;
				new Ajax.Request(url+"&noCache="+new Date().getTime(), 
				{ 
					method:'get',   
					onSuccess: function(transport){
						var json = transport.responseText.evalJSON(); 
						var result = json.result;
						box.options.length = 0;
						
						var opt = new Option();
						opt.text = "- Bitte waehlen -";
						opt.value = "-";
						box.options[box.options.length] = opt;
							
						for (var i=0;i<result.length;i++) {
							var opt = new Option();
							opt.text = result[i].label; 
							opt.value = result[i].value;
							box.options[box.options.length] = opt;
						}
						
						box.disabled = false;
					}
				});
				
			}			
			
