
  function getColors(
p_FiberBrand,
p_FiberRange,
p_FiberType,
p_FiberTreatmentDuration,
p_FiberAllNatural,
p_FiberAgeRange,
p_FiberBenefits,
p_FiberIngredients
) {

 // 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.naturaltreatment.com/includes/Fiber/interactiveResultsFiber.php?p_FiberBrand=' + encodeURIComponent(p_FiberBrand)
	+ '&p_FiberRange=' + encodeURIComponent(p_FiberRange)
	+ '&p_FiberType=' + encodeURIComponent(p_FiberType)
	+ '&p_FiberTreatmentDuration=' + encodeURIComponent(p_FiberTreatmentDuration)
	+ '&p_FiberAllNatural=' + encodeURIComponent(p_FiberAllNatural)
	+ '&p_FiberAgeRange=' + encodeURIComponent(p_FiberAgeRange)
	+ '&p_FiberBenefits=' + encodeURIComponent(p_FiberBenefits)
	+ '&p_FiberIngredients=' + encodeURIComponent(p_FiberIngredients)

		 );





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