function getColors(p_AutoEngineOilManufacturer,p_AutoEngineOilBrand,p_AutoEngineOilSAEGrade,p_AutoEngineOilVehicleType,p_AutoEngineOilEngineType,p_AutoEngineOilFluidType,p_AutoEngineOilViscosity,p_AutoEngineOilViscosity100,p_AutoEngineOilViscosityIndex,p_AutoEngineOilSpecificGravity,p_AutoEngineOilFlash,p_AutoEngineOilPour,p_AutoEngineOilAPIRating,p_AutoEngineOilDensity,p_AutoEngineOilTotalBase) {

 // 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.lubricants.com/includes/AutomotiveEngineOil/interactiveResultsAutoEngineOil.php?p_AutoEngineOilManufacturer=' + encodeURIComponent(p_AutoEngineOilManufacturer) +
'&p_AutoEngineOilBrand=' + encodeURIComponent(p_AutoEngineOilBrand ) +
'&p_AutoEngineOilSAEGrade=' + encodeURIComponent(p_AutoEngineOilSAEGrade ) +
'&p_AutoEngineOilVehicleType=' + encodeURIComponent(p_AutoEngineOilVehicleType ) +
'&p_AutoEngineOilEngineType=' + encodeURIComponent(p_AutoEngineOilEngineType ) +
'&p_AutoEngineOilFluidType=' + encodeURIComponent(p_AutoEngineOilFluidType ) +
'&p_AutoEngineOilViscosity=' + encodeURIComponent(p_AutoEngineOilViscosity ) +
'&p_AutoEngineOilViscosity100=' + encodeURIComponent(p_AutoEngineOilViscosity100 ) +
'&p_AutoEngineOilViscosityIndex=' + encodeURIComponent(p_AutoEngineOilViscosityIndex ) +
'&p_AutoEngineOilSpecificGravity=' + encodeURIComponent(p_AutoEngineOilSpecificGravity ) +
'&p_AutoEngineOilFlash=' + encodeURIComponent(p_AutoEngineOilFlash ) +
'&p_AutoEngineOilPour=' + encodeURIComponent(p_AutoEngineOilPour )  +
'&p_AutoEngineOilAPIRating=' + encodeURIComponent(p_AutoEngineOilAPIRating ) +
'&p_AutoEngineOilDensity=' + encodeURIComponent(p_AutoEngineOilDensity ) +
'&p_AutoEngineOilTotalBase=' + encodeURIComponent(p_AutoEngineOilTotalBase ) 
	 );



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

