function getColors(p_SnowmobileManufacturer,p_SnowmobileYear,p_SnowmobileColor,p_SnowmobileMSRP,p_SnowmobileEngineType,p_SnowmobileModelType,p_SnowmobileStance,p_SnowmobileFuelCapacity,p_SnowmobileSeats,p_SnowmobileRearRack,p_SnowmobileEngineDisplacement,p_SnowmobileTurbo,p_SnowmobileFuelSystem,p_SnowmobileCylinders,p_SnowmobileHorsepower,p_SnowmobileLength,p_SnowmobileWidth,p_SnowmobileHeight,p_SnowmobileDryWeight) {

 // 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/snowmobile/interactiveResultsSnowmobile.php?p_SnowmobileManufacturer=' + encodeURIComponent(p_SnowmobileManufacturer) +
'&p_SnowmobileYear=' + encodeURIComponent(p_SnowmobileYear) +
'&p_SnowmobileColor=' + encodeURIComponent(p_SnowmobileColor) +
'&p_SnowmobileMSRP=' + encodeURIComponent(p_SnowmobileMSRP) + 
'&p_SnowmobileEngineType=' + encodeURIComponent(p_SnowmobileEngineType) +
'&p_SnowmobileModelType=' + encodeURIComponent(p_SnowmobileModelType) + 
'&p_SnowmobileStance=' + encodeURIComponent(p_SnowmobileStance) + 
'&p_SnowmobileFuelCapacity=' + encodeURIComponent(p_SnowmobileFuelCapacity) +
'&p_SnowmobileSeats=' + encodeURIComponent(p_SnowmobileSeats) + 
'&p_SnowmobileRearRack=' + encodeURIComponent(p_SnowmobileRearRack) + 
'&p_SnowmobileEngineDisplacement=' + encodeURIComponent(p_SnowmobileEngineDisplacement) +
'&p_SnowmobileTurbo=' + encodeURIComponent(p_SnowmobileTurbo) + 
'&p_SnowmobileFuelSystem=' + encodeURIComponent(p_SnowmobileFuelSystem) + 
'&p_SnowmobileCylinders=' + encodeURIComponent(p_SnowmobileCylinders) + 
'&p_SnowmobileHorsepower=' + encodeURIComponent(p_SnowmobileHorsepower) +
'&p_SnowmobileLength=' + encodeURIComponent(p_SnowmobileLength) +
'&p_SnowmobileWidth=' + encodeURIComponent(p_SnowmobileWidth) +
'&p_SnowmobileHeight=' + encodeURIComponent(p_SnowmobileHeight) + 
'&p_SnowmobileDryWeight=' + encodeURIComponent(p_SnowmobileDryWeight)
	 );



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