
  function getColors(
p_MineralMakeupManufacturer,
p_MineralMakeupBrand,
p_MineralMakeupRange,
p_MineralMakeupType,
p_MineralMakeupNoncomedogenic,
p_MineralMakeupOilFree,
p_MineralMakeupBismuthFree,
p_MineralMakeupWaterproof,
p_MineralMakeupSPF,
p_MineralMakeupVegan,
p_MineralMakeupAntiOxidants,
p_MineralMakeupMineralMakeupIngredients,
p_MineralMakeupSmoother

) {

 // 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.buyersguide.com/includes/MineralMakeup/interactiveResultsMineralMakeup.php?	p_MineralMakeupManufacturer=' + encodeURIComponent(p_MineralMakeupManufacturer) 
	+ '&p_MineralMakeupBrand=' + encodeURIComponent(p_MineralMakeupBrand)
	+ '&p_MineralMakeupRange=' + encodeURIComponent(p_MineralMakeupRange)
	+ '&p_MineralMakeupType=' + encodeURIComponent(p_MineralMakeupType)
	+ '&p_MineralMakeupNoncomedogenic=' + encodeURIComponent(p_MineralMakeupNoncomedogenic)
	+ '&p_MineralMakeupOilFree=' + encodeURIComponent(p_MineralMakeupOilFree)
	+ '&p_MineralMakeupBismuthFree=' + encodeURIComponent(p_MineralMakeupBismuthFree)
	+ '&p_MineralMakeupWaterproof=' + encodeURIComponent(p_MineralMakeupWaterproof)
	+ '&p_MineralMakeupSPF=' + encodeURIComponent(p_MineralMakeupSPF)
	+ '&p_MineralMakeupVegan=' + encodeURIComponent(p_MineralMakeupVegan)
	+ '&p_MineralMakeupAntiOxidants=' + encodeURIComponent(p_MineralMakeupAntiOxidants)
	+ '&p_MineralMakeupMineralMakeupIngredients=' + encodeURIComponent(p_MineralMakeupMineralMakeupIngredients)
	+ '&p_MineralMakeupSmoother=' + encodeURIComponent(p_MineralMakeupSmoother)


		 );





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