
  function getColors(
p_SunHatManufacturer,
p_SunHatBrimWidthInches,
p_SunHatSPF,
p_SunHatRange,
p_SunHatType,
p_SunHatColor,
p_SunHatStyle,
p_SunHatMaterial,
p_SunHatSize,
p_SunHatWash,
p_SunHatMadeIn,
p_SunHatDrawcord,
p_SunHatChinstring,
p_SunHatSweatBand,
p_SunHatShapeable) {

 // 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.sunhat.com/includes/SunHat/interactiveResultsSunHat.php?	p_SunHatManufacturer=' + encodeURIComponent(p_SunHatManufacturer) 
	+ '&p_SunHatBrimWidthInches=' + encodeURIComponent(p_SunHatBrimWidthInches)
	+ '&p_SunHatSPF=' + encodeURIComponent(p_SunHatSPF)
	+ '&p_SunHatRange=' + encodeURIComponent(p_SunHatRange)
	+ '&p_SunHatType=' + encodeURIComponent(p_SunHatType)
	+ '&p_SunHatColor=' + encodeURIComponent(p_SunHatColor)
	+ '&p_SunHatStyle=' + encodeURIComponent(p_SunHatStyle)
	+ '&p_SunHatMaterial=' + encodeURIComponent(p_SunHatMaterial)
	+ '&p_SunHatSize=' + encodeURIComponent(p_SunHatSize)
	+ '&p_SunHatWash=' + encodeURIComponent(p_SunHatWash)
	+ '&p_SunHatMadeIn=' + encodeURIComponent(p_SunHatMadeIn)
	+ '&p_SunHatDrawcord=' + encodeURIComponent(p_SunHatDrawcord)
	+ '&p_SunHatChinstring=' + encodeURIComponent(p_SunHatChinstring)
	+ '&p_SunHatSweatBand=' + encodeURIComponent(p_SunHatSweatBand)
	+ '&p_SunHatShapeable=' + encodeURIComponent(p_SunHatShapeable)


		 );





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