function getColors(p_CarManufacturer,p_CarBrand,p_CarYear,p_CarMSRP,p_CarBodyStyle,p_CarColor,p_CarInteriorColor,p_CarMPGHighway,p_CarMPGCity,p_CarNavigation,p_CarDriveType,p_CarEngineType,p_CarTransmission,p_CarSeats,p_CarFrontSeatWarmers,p_CarAntiLockBrakes,p_CarWheelbase,p_CarLength,p_CarWidth,p_CarHeight,p_CarHeadRoom,p_CarLegRoom,p_CarType) {

 // 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/car/interactiveResultsCar.php?p_CarManufacturer=' + encodeURIComponent(p_CarManufacturer) +
'&p_CarBrand=' + encodeURIComponent(p_CarBrand) +
'&p_CarYear=' + encodeURIComponent(p_CarYear) +
'&p_CarMSRP=' + encodeURIComponent(p_CarMSRP) + 
'&p_CarBodyStyle=' + encodeURIComponent(p_CarBodyStyle) + 
'&p_CarColor=' + encodeURIComponent(p_CarColor)  +
'&p_CarInteriorColor=' + encodeURIComponent(p_CarInteriorColor)  +
'&p_CarMPGHighway=' + encodeURIComponent(p_CarMPGHighway)  +
'&p_CarMPGCity=' + encodeURIComponent(p_CarMPGCity)  +
'&p_CarNavigation=' + encodeURIComponent(p_CarNavigation)  +
'&p_CarDriveType=' + encodeURIComponent(p_CarDriveType)  +
'&p_CarEngineType=' + encodeURIComponent(p_CarEngineType) +
'&p_CarTransmission=' + encodeURIComponent(p_CarTransmission) +
'&p_CarSeats=' + encodeURIComponent(p_CarSeats) +
'&p_CarFrontSeatWarmers=' + encodeURIComponent(p_CarFrontSeatWarmers) +
'&p_CarAntiLockBrakes=' + encodeURIComponent(p_CarAntiLockBrakes) +
'&p_CarWheelbase=' + encodeURIComponent(p_CarWheelbase) +
'&p_CarLength=' + encodeURIComponent(p_CarLength) +
'&p_CarWidth=' + encodeURIComponent(p_CarWidth) +
'&p_CarHeight=' + encodeURIComponent(p_CarHeight) +
'&p_CarHeadRoom=' + encodeURIComponent(p_CarHeadRoom) +
'&p_CarLegRoom=' + encodeURIComponent(p_CarLegRoom) +
'&p_CarType=' + encodeURIComponent(p_CarType)






	 );



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