
  function getColors(p_SunscreenManufacturer,p_SunscreenBrand,p_SunscreenSPF,p_SunscreenRange,p_SunscreenType,p_SunscreenUse,p_SunscreenApplicationArea,p_SunscreenWaterResistance,p_SunscreenSweatResistance,p_SunscreenScent,p_SunscreenTearFree,p_SunscreenHypo,p_SunscreenNoncomedogenic,p_SunscreenOilFree,p_SunscreenSunIngredients) {

 // 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.suncream.com/includes/sunscreen/interactiveResultsSunscreen.php?	p_SunscreenManufacturer=' + encodeURIComponent(p_SunscreenManufacturer) 
	+ '&p_SunscreenBrand=' + encodeURIComponent(p_SunscreenBrand)
	+ '&p_SunscreenSPF=' + encodeURIComponent(p_SunscreenSPF)
	+ '&p_SunscreenRange=' + encodeURIComponent(p_SunscreenRange)	
	+ '&p_SunscreenType=' + encodeURIComponent(p_SunscreenType)
	+ '&p_SunscreenUse=' + encodeURIComponent(p_SunscreenUse)	
	+ '&p_SunscreenApplicationArea=' + encodeURIComponent(p_SunscreenApplicationArea)
	+ '&p_SunscreenWaterResistance=' + encodeURIComponent(p_SunscreenWaterResistance)
	+ '&p_SunscreenSweatResistance=' + encodeURIComponent(p_SunscreenSweatResistance)
	+ '&p_SunscreenScent=' + encodeURIComponent(p_SunscreenScent)
	+ '&p_SunscreenTearFree=' + encodeURIComponent(p_SunscreenTearFree)
	+ '&p_SunscreenHypo=' + encodeURIComponent(p_SunscreenHypo)
	+ '&p_SunscreenNoncomedogenic=' + encodeURIComponent(p_SunscreenNoncomedogenic)
	+ '&p_SunscreenOilFree=' + encodeURIComponent(p_SunscreenOilFree)
	+ '&p_SunscreenSunIngredients=' + encodeURIComponent(p_SunscreenSunIngredients)


		 );





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