		function viewDetails(which)
		{
			carDetails = window.open('viewdetails.cfm?aid='+which,'carWindow','scrollbars=yes,status=no,width=600,height=200,left=1,top=1')
			carDetails.focus();
		}
	
		function chkWhat(which)
		{
			
			with (document.autoForm)
			{
				
				switch (which.name)
				{
					case 'fYear':
						break;
					
					case 'NewSearch':
						fPrice.selectedIndex = 0;
						ePrice.selectedIndex = 0;
						eYear.selectedIndex = 0;
						fYear.selectedIndex = 2;
						eMileage.selectedIndex=0;
						fMileage.selectedIndex = 0;
						kw.value = '';
						document.getElementById("MakeFrame").src='tools/GetInfo.cfm?urlAction=Make';
						document.getElementById("ModelFrame").src='tools/GetInfo.cfm?urlAction=Model';
						break;
						
					case 'fPrice':
						//ePrice.selectedIndex = eval(ePrice.length - which.selectedIndex)+1;
						break;
					
					case 'ePrice':
						if (parseInt(fPrice.options[fPrice.selectedIndex].value) > parseInt(ePrice.options[ePrice.selectedIndex].value))
						{
							//ePrice.selectedIndex = eval(ePrice.length - fPrice.selectedIndex)+1;
							ePrice.selectedIndex = 0;
						}
						break;
					
					case 'eYear':
						if (parseInt(fYear.options[fYear.selectedIndex].value) > parseInt(eYear.options[eYear.selectedIndex].value))
						{
							eYear.selectedIndex = 0;
						}
						break;
						
					case 'eMileage':
						if (parseInt(fMileage.options[fMileage.selectedIndex].value) > parseInt(eMileage.options[eMileage.selectedIndex].value))
						{
							eMileage.selectedIndex = 0;
						}
						break;
						
					case 'fMileage':
						if (parseInt(fMileage.options[fMileage.selectedIndex].value) > parseInt(eMileage.options[eMileage.selectedIndex].value))
						{
							eMileage.selectedIndex = 0;
							
							//fMileage.value = eMileage.value;
							
						}
						break;
						
					default:
						FindModel.value = unescape(window.ModelFrame.document.ModelForm.SelectModel.value);
						FindMake.value = unescape(window.MakeFrame.document.MakeForm.SelectMake.value);
						//alert(FindMake.value);
						submit();
						break;
				}
			}
		}
	