
  function getColors(p_ScrubsManufacturer,
p_ScrubsBrand,
p_ScrubsRange,
p_ScrubsArea,
p_ScrubsNoncomedogenic,
p_ScrubsHypoallergenic,
p_ScrubsLathering,
p_ScrubsUse,
p_ScrubsSkinType,
p_ScrubsGender,
p_ScrubsAcneIngredients,
p_ScrubsSmoother,
p_ScrubsVegan,
p_ScrubsAnimalTested
) {

 // 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', '/includes/Scrubs/interactiveResultsScrubs.php?p_ScrubsManufacturer=' + encodeURIComponent(p_ScrubsManufacturer) 
	+ '&p_ScrubsBrand=' + encodeURIComponent(p_ScrubsBrand)
	+ '&p_ScrubsRange=' + encodeURIComponent(p_ScrubsRange)
	+ '&p_ScrubsArea=' + encodeURIComponent(p_ScrubsArea)
	+ '&p_ScrubsNoncomedogenic=' + encodeURIComponent(p_ScrubsNoncomedogenic)
	+ '&p_ScrubsHypoallergenic=' + encodeURIComponent(p_ScrubsHypoallergenic)
	+ '&p_ScrubsLathering=' + encodeURIComponent(p_ScrubsLathering)
	+ '&p_ScrubsUse=' + encodeURIComponent(p_ScrubsUse)
	+ '&p_ScrubsSkinType=' + encodeURIComponent(p_ScrubsSkinType)
	+ '&p_ScrubsGender=' + encodeURIComponent(p_ScrubsGender)
	+ '&p_ScrubsAcneIngredients=' + encodeURIComponent(p_ScrubsAcneIngredients)
	+ '&p_ScrubsSmoother=' + encodeURIComponent(p_ScrubsSmoother)
	+ '&p_ScrubsVegan=' + encodeURIComponent(p_ScrubsVegan)
	+ '&p_ScrubsAnimalTested=' + encodeURIComponent(p_ScrubsAnimalTested)

		 );





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