
  function getColors(
p_FaceMaskBrand,
p_FaceMaskRange,
p_FaceMaskType,
p_FaceMaskSkinType,
p_FaceMaskBenefits,
p_FaceMaskRecommendedUse,
p_FaceMaskDryingTime,
p_FaceMaskScent,
p_FaceMaskNatural,
p_FaceMaskVegan,
p_FaceMaskAnimalTesting,
p_FaceMaskSkinFirmers,
p_FaceMaskWrinkleRemovers,
p_FaceMaskAntiOxidants,
p_FaceMaskFragrance
) {

 // 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.face-mask.com/includes/FaceMask/Skincare/interactiveResultsFaceMask.php?p_FaceMaskBrand=' + encodeURIComponent(p_FaceMaskBrand)
	+ '&p_FaceMaskRange=' + encodeURIComponent(p_FaceMaskRange)
	+ '&p_FaceMaskType=' + encodeURIComponent(p_FaceMaskType)
	+ '&p_FaceMaskSkinType=' + encodeURIComponent(p_FaceMaskSkinType)
	+ '&p_FaceMaskBenefits=' + encodeURIComponent(p_FaceMaskBenefits)
	+ '&p_FaceMaskRecommendedUse=' + encodeURIComponent(p_FaceMaskRecommendedUse)
	+ '&p_FaceMaskDryingTime=' + encodeURIComponent(p_FaceMaskDryingTime)
	+ '&p_FaceMaskScent=' + encodeURIComponent(p_FaceMaskScent)
	+ '&p_FaceMaskNatural=' + encodeURIComponent(p_FaceMaskNatural)
	+ '&p_FaceMaskVegan=' + encodeURIComponent(p_FaceMaskVegan)
	+ '&p_FaceMaskAnimalTesting=' + encodeURIComponent(p_FaceMaskAnimalTesting)
	+ '&p_FaceMaskSkinFirmers=' + encodeURIComponent(p_FaceMaskSkinFirmers)
	+ '&p_FaceMaskWrinkleRemovers=' + encodeURIComponent(p_FaceMaskWrinkleRemovers)
	+ '&p_FaceMaskAntiOxidants=' + encodeURIComponent(p_FaceMaskAntiOxidants)
	+ '&p_FaceMaskFragrance=' + encodeURIComponent(p_FaceMaskFragrance)

		 );





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