function getColors(p_ATVManufacturer,p_ATVBrand,p_ATVYear,p_ATVMSRP,p_ATVColor,p_ATVVehicleType,p_ATVEngineType,p_ATVEngineDisplacement,p_ATVRiders,p_ATVFuelCapacity,p_ATVFuelInjection,p_ATVFinalDrive,p_ATVFrontBrake,p_ATVRearBrake,p_ATVLength,p_ATVWidth,p_ATVHeight,p_ATVDryWeight,p_ATVWheelbase,p_ATVSeatHeight,p_ATVGroundClearance) {

 // Confirm that the object is usable:
 if (ajax) {

 // Call the PHP script.
 // Use the GET method.
 // Pass the username in the URL.
 ajax.open('get', 'http://www.buyersguide.com/includes/atv/interactiveResultsATV.php?p_ATVManufacturer=' + encodeURIComponent(p_ATVManufacturer) +
'&p_ATVBrand=' + encodeURIComponent(p_ATVBrand) +
'&p_ATVYear=' + encodeURIComponent(p_ATVYear) +
'&p_ATVMSRP=' + encodeURIComponent(p_ATVMSRP) + 
'&p_ATVColor=' + encodeURIComponent(p_ATVColor) +
'&p_ATVVehicleType=' + encodeURIComponent(p_ATVVehicleType) +
'&p_ATVEngineType=' + encodeURIComponent(p_ATVEngineType) +
'&p_ATVEngineDisplacement=' + encodeURIComponent(p_ATVEngineDisplacement) + 
'&p_ATVRiders=' + encodeURIComponent(p_ATVRiders) + 
'&p_ATVFuelCapacity=' + encodeURIComponent(p_ATVFuelCapacity) + 
'&p_ATVFuelInjection=' + encodeURIComponent(p_ATVFuelInjection) +
'&p_ATVFinalDrive=' + encodeURIComponent(p_ATVFinalDrive) +
'&p_ATVFrontBrake=' + encodeURIComponent(p_ATVFrontBrake) +
'&p_ATVRearBrake=' + encodeURIComponent(p_ATVRearBrake) +
'&p_ATVLength=' + encodeURIComponent(p_ATVLength) +
'&p_ATVWidth=' + encodeURIComponent(p_ATVWidth) +
'&p_ATVHeight=' + encodeURIComponent(p_ATVHeight) + 
'&p_ATVDryWeight=' + encodeURIComponent(p_ATVDryWeight) +
'&p_ATVWheelbase=' + encodeURIComponent(p_ATVWheelbase) +
'&p_ATVSeatHeight=' + encodeURIComponent(p_ATVSeatHeight) + 
'&p_ATVGroundClearance=' + encodeURIComponent(p_ATVGroundClearance)



	 );



// Function that handles the response:
 ajax.onreadystatechange = handle_check;

 // Send the request:
 ajax.send(null);

 } else { // Can't use Ajax!
 document.getElementById('targetDiv').innerHTML = 'The results will be returned upon submitting this form.';
 }

 }
 
 
 // Function that handles the response from the PHP script:
 function handle_check() {

 // If everything's OK:
 if ( (ajax.readyState == 4) && (ajax.status == 200) ) {

 // Assign the returned value to a document element:
 document.getElementById('targetDiv').innerHTML = ajax.responseText;

 }

 } // End of handle_check() function.
