// Get the HTTP Object
	function getHTTPObject()
	{
      	if (window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP");

      	else if (window.XMLHttpRequest) return new XMLHttpRequest();

      	else {

      			alert("Your browser does not support AJAX.");

      	return null;

      		}

	}

       

      // Change the value of the outputText field

      function setColorOutput(){

      if(httpObject.readyState == 4){
		var out = httpObject.responseText;
		//alert(out);
      }
      }


      function getColor(id){
		  
		  
//		  alert(id);
		  document.getElementById('getColorId').innerHTML = id;
	/*	  alert(pid);
		  var selectedContinent = id;
		//alert('test get color function');
      httpObject = getHTTPObject();

      if (httpObject != null) {
	//	  alert(document.checkout.coupon.value);

      httpObject.open("GET", "get_product_color.php?cid=" + encodeURIComponent(selectedContinent) + "&pid=" + encodeURIComponent(pid), true);
	
      httpObject.send(null);

      httpObject.onreadystatechange = setOutput;

      }
*/
      }
	  
		  
	  
      var httpObject = null;
      //-->
