
  function getColors(
p_YogaMatManufacturer,
p_YogaMatRange,
p_YogaMatType,
p_YogaMatShape,
p_YogaMatColor,
p_YogaMatLength,
p_YogaMatWidth,
p_YogaMatThickness,
p_YogaMatEcoFriendly,
p_YogaMatTravelFriendly





) {

 // 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/YogaMat/interactiveResultsYogaMat.php?	p_YogaMatManufacturer=' + encodeURIComponent(p_YogaMatManufacturer) 
	+ '&p_YogaMatRange=' + encodeURIComponent(p_YogaMatRange)
	+ '&p_YogaMatType=' + encodeURIComponent(p_YogaMatType)
	+ '&p_YogaMatShape=' + encodeURIComponent(p_YogaMatShape)
	+ '&p_YogaMatColor=' + encodeURIComponent(p_YogaMatColor)
	+ '&p_YogaMatLength=' + encodeURIComponent(p_YogaMatLength)
	+ '&p_YogaMatWidth=' + encodeURIComponent(p_YogaMatWidth)
	+ '&p_YogaMatThickness=' + encodeURIComponent(p_YogaMatThickness)
	+ '&p_YogaMatEcoFriendly=' + encodeURIComponent(p_YogaMatEcoFriendly)
	+ '&p_YogaMatTravelFriendly=' + encodeURIComponent(p_YogaMatTravelFriendly)

		 );





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