function getColors(p_OffRoadMotorcycleManufacturer,p_OffRoadMotorcycleBrand,p_OffRoadMotorcycleYear,p_OffRoadMotorcycleMSRP,p_OffRoadMotorcycleColor,p_OffRoadMotorcycleVehicleType,p_OffRoadMotorcycleEngineType,p_OffRoadMotorcycleEngineDisplacement,p_OffRoadMotorcycleFuelCapacity,p_OffRoadMotorcycleTransmission,p_OffRoadMotorcycleCooling,p_OffRoadMotorcycleCompression,p_OffRoadMotorcycleStarting,p_OffRoadMotorcycleSeatHeight,p_OffRoadMotorcycleFuelInjection,p_OffRoadMotorcycleWheelbase,p_OffRoadMotorcycleDryWeight,p_OffRoadMotorcycleWetWeight,p_OffRoadMotorcycleGroundClearance) {

 // 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/offRoadMotorcycle/interactiveResultsOffRoadMotorcycle.php?p_OffRoadMotorcycleManufacturer=' + encodeURIComponent(p_OffRoadMotorcycleManufacturer) +
'&p_OffRoadMotorcycleBrand=' + encodeURIComponent(p_OffRoadMotorcycleBrand) +
'&p_OffRoadMotorcycleYear=' + encodeURIComponent(p_OffRoadMotorcycleYear) +
'&p_OffRoadMotorcycleMSRP=' + encodeURIComponent(p_OffRoadMotorcycleMSRP) + 
'&p_OffRoadMotorcycleColor=' + encodeURIComponent(p_OffRoadMotorcycleColor)  +
'&p_OffRoadMotorcycleVehicleType=' + encodeURIComponent(p_OffRoadMotorcycleVehicleType) +
'&p_OffRoadMotorcycleEngineType=' + encodeURIComponent(p_OffRoadMotorcycleEngineType) +
'&p_OffRoadMotorcycleEngineDisplacement=' + encodeURIComponent(p_OffRoadMotorcycleEngineDisplacement) + 
'&p_OffRoadMotorcycleFuelCapacity=' + encodeURIComponent(p_OffRoadMotorcycleFuelCapacity) + 
'&p_OffRoadMotorcycleTransmission=' + encodeURIComponent(p_OffRoadMotorcycleTransmission) +
'&p_OffRoadMotorcycleCooling=' + encodeURIComponent(p_OffRoadMotorcycleCooling) + 
'&p_OffRoadMotorcycleCompression=' + encodeURIComponent(p_OffRoadMotorcycleCompression) + 
'&p_OffRoadMotorcycleStarting=' + encodeURIComponent(p_OffRoadMotorcycleStarting) + 
'&p_OffRoadMotorcycleSeatHeight=' + encodeURIComponent(p_OffRoadMotorcycleSeatHeight) +
'&p_OffRoadMotorcycleFuelInjection=' + encodeURIComponent(p_OffRoadMotorcycleFuelInjection) +
'&p_OffRoadMotorcycleWheelbase=' + encodeURIComponent(p_OffRoadMotorcycleWheelbase) +
'&p_OffRoadMotorcycleDryWeight=' + encodeURIComponent(p_OffRoadMotorcycleDryWeight) +
'&p_OffRoadMotorcycleWetWeight=' + encodeURIComponent(p_OffRoadMotorcycleWetWeight) +
'&p_OffRoadMotorcycleGroundClearance=' + encodeURIComponent(p_OffRoadMotorcycleGroundClearance) 


	 );



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