
  function getColors(
p_PregnancyTestBrand,
p_PregnancyTestRange,
p_PregnancyTestType,
p_PregnancyTestEarliestResultsIn,
p_PregnancyTestSensitivity,
p_PregnancyTestResultsWait,
p_PregnancyTestResultsPresentation
) {

 // 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/PregnancyTest/interactiveResultsPregnancyTest.php?p_PregnancyTestBrand=' + encodeURIComponent(p_PregnancyTestBrand)
	+ '&p_PregnancyTestRange=' + encodeURIComponent(p_PregnancyTestRange)
	+ '&p_PregnancyTestType=' + encodeURIComponent(p_PregnancyTestType)
	+ '&p_PregnancyTestEarliestResultsIn=' + encodeURIComponent(p_PregnancyTestEarliestResultsIn)
	+ '&p_PregnancyTestResultsWait=' + encodeURIComponent(p_PregnancyTestResultsWait)
	+ '&p_PregnancyTestResultsPresentation=' + encodeURIComponent(p_PregnancyTestResultsPresentation)
		 );





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