
  function getColors(
p_ScarManufacturer,
p_ScarBrand,
p_ScarRange,
p_ScarConcern,
p_ScarType,
p_ScarNoncomedogenic,
p_ScarOilFree,
p_ScarAntiOxidants,
p_ScarScarIngredients,
p_ScarSoothing

) {

 // 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/Scar/interactiveResultsScar.php?	p_ScarManufacturer=' + encodeURIComponent(p_ScarManufacturer) 
	+ '&p_ScarBrand=' + encodeURIComponent(p_ScarBrand)
	+ '&p_ScarRange=' + encodeURIComponent(p_ScarRange)
	+ '&p_ScarConcern=' + encodeURIComponent(p_ScarConcern)
	+ '&p_ScarType=' + encodeURIComponent(p_ScarType)
	+ '&p_ScarNoncomedogenic=' + encodeURIComponent(p_ScarNoncomedogenic)
	+ '&p_ScarOilFree=' + encodeURIComponent(p_ScarOilFree)
	+ '&p_ScarAntiOxidants=' + encodeURIComponent(p_ScarAntiOxidants)
	+ '&p_ScarScarIngredients=' + encodeURIComponent(p_ScarScarIngredients)
	+ '&p_ScarSoothing=' + encodeURIComponent(p_ScarSoothing)


		 );





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