function getColors(p_GreaseManufacturer, p_GreaseBrand,p_GreaseComplex,p_GreaseNLGI,p_GreaseApplication,p_GreaseViscosity,p_GreaseViscosityLg,p_GreaseDroppingPoint,p_GreaseMaxTemp,p_GreaseMinTemp,p_GreaseColor,p_GreaseWorkedPen,p_GreaseTimken,p_GreaseEP,p_GreaseNSF) {

 // 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.lubricants.com/includes/Grease/interactiveResultsGrease.php?p_GreaseManufacturer=' + encodeURIComponent(p_GreaseManufacturer) +
'&p_GreaseBrand=' + encodeURIComponent(p_GreaseBrand ) +
'&p_GreaseComplex=' + encodeURIComponent(p_GreaseComplex ) +
'&p_GreaseNLGI=' + encodeURIComponent(p_GreaseNLGI ) +
'&p_GreaseApplication=' + encodeURIComponent(p_GreaseApplication ) +
'&p_GreaseViscosity=' + encodeURIComponent(p_GreaseViscosity ) +
'&p_GreaseViscosityLg=' + encodeURIComponent(p_GreaseViscosityLg ) +
'&p_GreaseDroppingPoint=' + encodeURIComponent(p_GreaseDroppingPoint ) +
'&p_GreaseMaxTemp=' + encodeURIComponent(p_GreaseMaxTemp ) +
'&p_GreaseMinTemp=' + encodeURIComponent(p_GreaseMinTemp ) +
'&p_GreaseColor='+ encodeURIComponent(p_GreaseColor)  +
'&p_GreaseWorkedPen='+ encodeURIComponent(p_GreaseWorkedPen)   +
'&p_GreaseTimken='+ encodeURIComponent(p_GreaseTimken)   +
'&p_GreaseEP='+ encodeURIComponent(p_GreaseEP) +
'&p_GreaseNSF='+ encodeURIComponent(p_GreaseNSF) 
	 );



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

