
  function getColors(p_AgeSpotManufacturer,
p_AgeSpotBrand,
p_AgeSpotDayNight,
p_AgeSpotFragranceFree,
p_AgeSpotAreaOfApplication,
p_AgeSpotSize,
p_AgeSpotRange,
p_AgeSpotType,
p_AgeSpotAnimalTested,
p_AgeSpotIngredients,
p_AgeSpotAntiOxidants,
p_AgeSpotSunscreen) {

 // 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/agespot/interactiveResultsAgeSpot.php?p_AgeSpotManufacturer=' + encodeURIComponent(p_AgeSpotManufacturer) 
	+ '&p_AgeSpotBrand=' + encodeURIComponent(p_AgeSpotBrand)
	+ '&p_AgeSpotDayNight=' + encodeURIComponent(p_AgeSpotDayNight)
	+ '&p_AgeSpotFragranceFree=' + encodeURIComponent(p_AgeSpotFragranceFree)
	+ '&p_AgeSpotAreaOfApplication=' + encodeURIComponent(p_AgeSpotAreaOfApplication)
	+ '&p_AgeSpotSize=' + encodeURIComponent(p_AgeSpotSize)
	+ '&p_AgeSpotRange=' + encodeURIComponent(p_AgeSpotRange)
	+ '&p_AgeSpotType=' + encodeURIComponent(p_AgeSpotType)
	+ '&p_AgeSpotAnimalTested=' + encodeURIComponent(p_AgeSpotAnimalTested)
	+ '&p_AgeSpotIngredients=' + encodeURIComponent(p_AgeSpotIngredients)
	+ '&p_AgeSpotAntiOxidants=' + encodeURIComponent(p_AgeSpotAntiOxidants)
	+ '&p_AgeSpotSunscreen=' + encodeURIComponent(p_AgeSpotSunscreen)
		 );





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