
  function getColors(
p_FacialCleanserBrand,
p_FacialCleanserRange,
p_FacialCleanserManufacturer,
p_FacialCleanserNoncomedogenic,
p_FacialCleanserHypoallergenic,
p_FacialCleanserExfoliating,
p_FacialCleanserLathering,
p_FacialCleanserRemovesMakeup,
p_FacialCleanserSkinType,
p_FacialCleanserGender,
p_FacialCleanserType,
p_FacialCleanserAcneIngredients,
p_FacialCleanserSmoother,
p_FacialCleanserRequiresRinsing,
p_FacialCleanserVegan,
p_FacialCleanserAnimalTesting,
p_FacialCleanserOilFree

) {

 // 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.facialcleanser.com/includes/FacialCleanser/interactiveResultsFacialCleanser.php?p_FacialCleanserBrand=' + encodeURIComponent(p_FacialCleanserBrand)
	+ '&p_FacialCleanserRange=' + encodeURIComponent(p_FacialCleanserRange)
	+ '&p_FacialCleanserManufacturer=' + encodeURIComponent(p_FacialCleanserManufacturer)
	+ '&p_FacialCleanserNoncomedogenic=' + encodeURIComponent(p_FacialCleanserNoncomedogenic)
	+ '&p_FacialCleanserHypoallergenic=' + encodeURIComponent(p_FacialCleanserHypoallergenic)
	+ '&p_FacialCleanserExfoliating=' + encodeURIComponent(p_FacialCleanserExfoliating)
	+ '&p_FacialCleanserLathering=' + encodeURIComponent(p_FacialCleanserLathering)
	+ '&p_FacialCleanserRemovesMakeup=' + encodeURIComponent(p_FacialCleanserRemovesMakeup)
	+ '&p_FacialCleanserSkinType=' + encodeURIComponent(p_FacialCleanserSkinType)
	+ '&p_FacialCleanserGender=' + encodeURIComponent(p_FacialCleanserGender)
	+ '&p_FacialCleanserType=' + encodeURIComponent(p_FacialCleanserType)
	+ '&p_FacialCleanserAcneIngredients=' + encodeURIComponent(p_FacialCleanserAcneIngredients)
	+ '&p_FacialCleanserSmoother=' + encodeURIComponent(p_FacialCleanserSmoother)
	+ '&p_FacialCleanserRequiresRinsing=' + encodeURIComponent(p_FacialCleanserRequiresRinsing)
	+ '&p_FacialCleanserVegan=' + encodeURIComponent(p_FacialCleanserVegan)
	+ '&p_FacialCleanserAnimalTesting=' + encodeURIComponent(p_FacialCleanserAnimalTesting)
	+ '&p_FacialCleanserOilFree=' + encodeURIComponent(p_FacialCleanserOilFree)
		 );





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