
  function getColors(
p_SkinLotionBrand,
p_SkinLotionRange,
p_SkinLotionSkinType,
p_SkinLotionType,
p_SkinLotionScent,
p_SkinLotionHypo,
p_SkinLotionNoncomedogenic,
p_SkinLotionNonGreasy,
p_SkinLotionSPF,
p_SkinLotionAnimalTested,
p_SkinLotionMoisturizingIngredients,
p_SkinLotionFragranceIngredients) {

 // 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.skinlotion.com/includes/SkinLotion/interactiveResultsSkinLotion.php?	p_SkinLotionBrand=' + encodeURIComponent(p_SkinLotionBrand) 

	+ '&p_SkinLotionRange=' + encodeURIComponent(p_SkinLotionRange)
	+ '&p_SkinLotionSkinType=' + encodeURIComponent(p_SkinLotionSkinType)
	+ '&p_SkinLotionType=' + encodeURIComponent(p_SkinLotionType)
	+ '&p_SkinLotionScent=' + encodeURIComponent(p_SkinLotionScent)
	+ '&p_SkinLotionHypo=' + encodeURIComponent(p_SkinLotionHypo)
	+ '&p_SkinLotionNoncomedogenic=' + encodeURIComponent(p_SkinLotionNoncomedogenic)
	+ '&p_SkinLotionNonGreasy=' + encodeURIComponent(p_SkinLotionNonGreasy)
	+ '&p_SkinLotionSPF=' + encodeURIComponent(p_SkinLotionSPF)
	+ '&p_SkinLotionAnimalTested=' + encodeURIComponent(p_SkinLotionAnimalTested)
	+ '&p_SkinLotionMoisturizingIngredients=' + encodeURIComponent(p_SkinLotionMoisturizingIngredients)
	+ '&p_SkinLotionFragranceIngredients=' + encodeURIComponent(p_SkinLotionFragranceIngredients)


		 );





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