function getColors(p_MotorcycleManufacturer,p_MotorcycleBrand,p_MotorcycleYear,p_MotorcycleMSRP,p_MotorcycleColor,p_MotorcycleEngineType,p_MotorcycleEngineDisplacement,p_MotorcycleFuelCapacity,p_MotorcycleTransmission,p_MotorcycleCooling,p_MotorcycleCompression,p_MotorcycleFinalDrive,p_MotorcycleFrame,p_MotorcycleRake,p_MotorcycleTrail,p_MotorcycleLength,p_MotorcycleWidth,p_MotorcycleHeight,p_MotorcycleDryWeight,p_MotorcycleWheelbase,p_MotorcycleSeatHeight,p_MotorcycleGroundClearance) {

 // 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/motorcycle/interactiveResultsMotorcycle.php?p_MotorcycleManufacturer=' + encodeURIComponent(p_MotorcycleManufacturer) +
'&p_MotorcycleBrand=' + encodeURIComponent(p_MotorcycleBrand) +
'&p_MotorcycleYear=' + encodeURIComponent(p_MotorcycleYear) +
'&p_MotorcycleMSRP=' + encodeURIComponent(p_MotorcycleMSRP) + 
'&p_MotorcycleColor=' + encodeURIComponent(p_MotorcycleColor)  +
'&p_MotorcycleEngineType=' + encodeURIComponent(p_MotorcycleEngineType) +
'&p_MotorcycleEngineDisplacement=' + encodeURIComponent(p_MotorcycleEngineDisplacement) + 
'&p_MotorcycleFuelCapacity=' + encodeURIComponent(p_MotorcycleFuelCapacity) + 
'&p_MotorcycleTransmission=' + encodeURIComponent(p_MotorcycleTransmission) +
'&p_MotorcycleCooling=' + encodeURIComponent(p_MotorcycleCooling) + 
'&p_MotorcycleCompression=' + encodeURIComponent(p_MotorcycleCompression) + 
'&p_MotorcycleFinalDrive=' + encodeURIComponent(p_MotorcycleFinalDrive) +
'&p_MotorcycleFrame=' + encodeURIComponent(p_MotorcycleFrame) +
'&p_MotorcycleRake=' + encodeURIComponent(p_MotorcycleRake) +
'&p_MotorcycleTrail=' + encodeURIComponent(p_MotorcycleTrail) +
'&p_MotorcycleLength=' + encodeURIComponent(p_MotorcycleLength) +
'&p_MotorcycleWidth=' + encodeURIComponent(p_MotorcycleWidth) +
'&p_MotorcycleHeight=' + encodeURIComponent(p_MotorcycleHeight) + 
'&p_MotorcycleDryWeight=' + encodeURIComponent(p_MotorcycleDryWeight) +
'&p_MotorcycleWheelbase=' + encodeURIComponent(p_MotorcycleWheelbase) +
'&p_MotorcycleSeatHeight=' + encodeURIComponent(p_MotorcycleSeatHeight) + 
'&p_MotorcycleGroundClearance=' + encodeURIComponent(p_MotorcycleGroundClearance)


	 );



// 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.
