// TYRE-SEARCH.js (JAVASCRIPT)

	//*************************
	//tyreSizeInfo(thisclass)
	function tyreSizeInfo(thisclass){
		document.getElementById("TyreSizeInfo").className = "tyreSizeInfo" + thisclass;
	}	
	//*************************


	//*************************
	//loadAspectRatio()
	//function to load the aspect ratio options into the select
	function loadAspectRatio(){
		
		//reset the remaining selects!
		$('TyreSizeAsp').options.length = 1;
		$('TyreSizeRim').options.length = 1;
		$('TyreSizeSpd').options.length = 1;
		$('TyreSizeAsp').selectedIndex = 0;
		$('TyreSizeRim').selectedIndex = 0;
		$('TyreSizeSpd').selectedIndex = 0;
		
		//get the options!
		if($F('TyreSizeSec') != ''){
			tyreSizeAsp = new swzSelectOptions({
				id			:	'TyreSizeAsp',
				url			:	'ajax/tyre-search/tyre-size-asp.asp',
				loading		:	'',
				parameters	:	$('TyreSizeSec').serialize(true),
				preserve	:	true
			});
		} 
	}
	//*************************


	//*************************
	//loadRimDiameter()
	//function to load the rim diameter options into the select
	function loadRimDiameter(){
		
		//reset the remaining selects!
		$('TyreSizeRim').options.length = 1;
		$('TyreSizeSpd').options.length = 1;
		$('TyreSizeRim').selectedIndex = 0;
		$('TyreSizeSpd').selectedIndex = 0;
	
	
	//get the options!
		if($F('TyreSizeSec') != '' && $F('TyreSizeAsp') != ''){
			var tyreSizeRim = new swzSelectOptions({
				id			:	'TyreSizeRim',
				url			:	'ajax/tyre-search/tyre-size-rim.asp',
				loading		:	'',
				parameters	:	$('TyreSizeSec').serialize(true) + '&' + $('TyreSizeAsp').serialize(true),
				preserve	:	true
			});
		} 
	}
	//*************************

	
	//*************************
	//loadSpeedRating()
	//function to load the speed rating options into the select
	function loadSpeedRating(){

		//reset the remaining selects!
		$('TyreSizeSpd').options.length = 1;
		$('TyreSizeSpd').selectedIndex = 0;

		//get the options!
		if($F('TyreSizeSec') != '' && $F('TyreSizeAsp') != '' && $F('TyreSizeRim') != ''){
			tyreSizeSpd = new swzSelectOptions({
				id			:	'TyreSizeSpd',
				url			:	'ajax/tyre-search/tyre-size-spd.asp',
				loading		:	'',
				parameters	:	$('TyreSizeSec').serialize(true) + '&' + $('TyreSizeAsp').serialize(true) + '&' + $('TyreSizeRim').serialize(true),
				preserve	:	true
			});
		} 
	}
	//*************************

