<!-- 
//Browser Support Code
var ajaxRequest; // The variable that makes Ajax possible!

function ajaxFunction()
{
ajaxRequest=GetXmlHttpObject();
if (ajaxRequest==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  }
  
var prodref = document.getElementById('prodref').value;
var color = document.getElementById('color').value;
var packaging = document.getElementById('packaging').value;

var rn = Math.floor(Math.random()*99999);

var url = "/includes/php/ajax_shopping_update.php?prodref=" + prodref + "&att1=" + color + "&att2=" + packaging + "&sid=" + rn;
ajaxRequest.onreadystatechange=ajaxShoppingFunction;
ajaxRequest.open("GET", url, true);
ajaxRequest.send(null); 
//alert(queryString);
}

function ajaxShoppingFunction()
{
if(ajaxRequest.readyState == 4 || ajaxRequest.readyState== 200)
	{
	var s = ajaxRequest.responseText;
	var s = s.split('[JS]');
	
	document.myform.prodid.value =s[0];
	document.myform.prodref.value =s[1];
	document.myform.description.value =s[2];
	document.myform.att1.value =s[3];
	document.myform.att2.value =s[4];
	document.myform.prod_code.value =s[11];
	//document.myform.price.value =s[5];
	
	//document.getElementById("priceDIV").innerHTML =s[5];
	document.getElementById("imageDIV").innerHTML =s[8];
	document.getElementById("submitDIV").innerHTML =s[9];
	//document.getElementById("descriptionDIV").innerHTML =s[10];

	}
}


function GetXmlHttpObject()
{
var ajaxRequest=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  ajaxRequest=new XMLHttpRequest();
  }
catch (e)
  {
  //Internet Explorer
  try
    {
    ajaxRequest=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    ajaxRequest=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return ajaxRequest;
}



//-->
