
  function getColors(p_DiaperCreamManufacturer,p_DiaperCreamBrand,p_DiaperCreamIndications,p_DiaperCreamType,p_DiaperCreamIngredients,p_DiaperCreamAvailableSizes,p_DiaperCreamColor,p_DiaperCreamFragranceFree,p_DiaperCreamHypoallergenic,p_DiaperCreamMedicated,p_DiaperCreamPreservativeFree,p_DiaperCreamOrganic) {

 // 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.diapercream.com/includes/diaperCream/interactiveResultsDiaperCream.php?	p_DiaperCreamManufacturer=' + encodeURIComponent(p_DiaperCreamManufacturer) 
	+ '&p_DiaperCreamBrand=' + encodeURIComponent(p_DiaperCreamBrand)
	+ '&p_DiaperCreamIndications=' + encodeURIComponent(p_DiaperCreamIndications)
	+ '&p_DiaperCreamType=' + encodeURIComponent(p_DiaperCreamType)
	+ '&p_DiaperCreamIngredients=' + encodeURIComponent(p_DiaperCreamIngredients)	
	+ '&p_DiaperCreamAvailableSizes=' + encodeURIComponent(p_DiaperCreamAvailableSizes)
	+ '&p_DiaperCreamColor=' + encodeURIComponent(p_DiaperCreamColor)	
	+ '&p_DiaperCreamFragranceFree=' + encodeURIComponent(p_DiaperCreamFragranceFree)
	+ '&p_DiaperCreamHypoallergenic=' + encodeURIComponent(p_DiaperCreamHypoallergenic)
	+ '&p_DiaperCreamMedicated=' + encodeURIComponent(p_DiaperCreamMedicated)
	+ '&p_DiaperCreamPreservativeFree=' + encodeURIComponent(p_DiaperCreamPreservativeFree)
	+ '&p_DiaperCreamOrganic=' + encodeURIComponent(p_DiaperCreamOrganic)



		 );





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