// requests prices and populates the screen with the result


function ajaxfunction() {
  getXHttp();
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
theprices = xmlHttp.responseText.split('*');
for (x=0; x<theprices.length-1; ++x) {
 thisprice = theprices[x].split('=');
 theID = thisprice[0];
 dolls = thisprice[1].split('_');
 thisdisplayprice = dolls[0];
 thispricedetails = dolls[1];
 eval("document.itemtable.PriceList" + theID + ".value='" + thispricedetails + "'");
 eval("myprice = document.getElementById('unitprice" + theID + "')");
 myprice.innerHTML = thisdisplayprice;
 document.itemtable.hasprices.value = 1;
}
      }
    }
  xmlHttp.open("GET","/ajax_price.asp?ig_id="+document.itemtable.GroupID.value,true);
  xmlHttp.send(null);
}
