
  function getColors(
p_TVManufacturer,
p_TVRange,
p_TVType,
p_TVScreenSize,
p_TVResolution,
p_TVFeatures,
p_TVInputOutput,
p_TVContrastRatio,
p_TVScreenRefresh,
p_TVDepth,
p_TVWidth,
p_TVHeight,
p_TVHeightWithStand,
p_TVDepthWithStand,
p_TVWeightWithStand,
p_TVSpeakers,
p_TVPowerConsumption

) {

 // 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/TV/interactiveResultsTV.php?	p_TVManufacturer=' + encodeURIComponent(p_TVManufacturer) 
	+ '&p_TVRange=' + encodeURIComponent(p_TVRange)
	+ '&p_TVType=' + encodeURIComponent(p_TVType)
	+ '&p_TVScreenSize=' + encodeURIComponent(p_TVScreenSize)
	+ '&p_TVResolution=' + encodeURIComponent(p_TVResolution)
	+ '&p_TVFeatures=' + encodeURIComponent(p_TVFeatures)
	+ '&p_TVInputOutput=' + encodeURIComponent(p_TVInputOutput)
	+ '&p_TVContrastRatio=' + encodeURIComponent(p_TVContrastRatio)
	+ '&p_TVScreenRefresh=' + encodeURIComponent(p_TVScreenRefresh)
	+ '&p_TVDepth=' + encodeURIComponent(p_TVDepth)
	+ '&p_TVWidth=' + encodeURIComponent(p_TVWidth)
	+ '&p_TVHeight=' + encodeURIComponent(p_TVHeight)
	+ '&p_TVHeightWithStand=' + encodeURIComponent(p_TVHeightWithStand)
	+ '&p_TVDepthWithStand=' + encodeURIComponent(p_TVDepthWithStand)
	+ '&p_TVWeightWithStand=' + encodeURIComponent(p_TVWeightWithStand)
	+ '&p_TVSpeakers=' + encodeURIComponent(p_TVSpeakers)
	+ '&p_TVPowerConsumption=' + encodeURIComponent(p_TVPowerConsumption)

		 );





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