
  function getColors(
p_GPSManufacturer,
p_GPSRange,
p_GPSType,
p_GPSColor,
p_GPSScreenSize,
p_GPSWeight,
p_GPSBatteryLife,
p_GPSWaterproof,
p_GPSMapSource,
p_GPSLocationCoverage,
p_GPSRoutingOptions,
p_GPSFeatures





) {

 // 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/GPS/interactiveResultsGPS.php?	p_GPSManufacturer=' + encodeURIComponent(p_GPSManufacturer) 
	+ '&p_GPSRange=' + encodeURIComponent(p_GPSRange)
	+ '&p_GPSType=' + encodeURIComponent(p_GPSType)
	+ '&p_GPSColor=' + encodeURIComponent(p_GPSColor)
	+ '&p_GPSScreenSize=' + encodeURIComponent(p_GPSScreenSize)
	+ '&p_GPSWeight=' + encodeURIComponent(p_GPSWeight)
	+ '&p_GPSBatteryLife=' + encodeURIComponent(p_GPSBatteryLife)
	+ '&p_GPSWaterproof=' + encodeURIComponent(p_GPSWaterproof)
	+ '&p_GPSMapSource=' + encodeURIComponent(p_GPSMapSource)
	+ '&p_GPSLocationCoverage=' + encodeURIComponent(p_GPSLocationCoverage)
	+ '&p_GPSRoutingOptions=' + encodeURIComponent(p_GPSRoutingOptions)
	+ '&p_GPSFeatures=' + encodeURIComponent(p_GPSFeatures)


		 );





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