
function getPriceData(price_points, product_id, custom_price_point, disable_links, types) {
   var price_points_param = '';

   if (price_points.length > 0) {
      price_points_param = price_points.join("||", price_points);
   }

   if (types.length > 0) {
      types_param = types.join('||', types);
   }

   var error_field = 'error_msg_' + product_id;
   document.getElementById(error_field).innerHTML = "";

   //alert ('price_points_param: ' + price_points_param + ' cust: ' + custom_price_point + ' prod id: ' + product_id);

   var URL = "/custom/get_price.php?" +
             "price_points=" + price_points_param +
             "&product_id="  + product_id +
             "&custom_price_point=" +  custom_price_point +
             "&disable_links="  + disable_links +
             "&types=" + types_param +
             "&type=eval";

   //alert ('URL: ' + URL);

   // dojo.io.bind({
   //    url: URL,
   //    error: function(type, error){ assignError(error, product_id); },
   //    mimetype: "text/javascript"
   // });

	dojo.xhrGet({
		url: URL,
		handleAs: "javascript",
		load: function(response, ioArgs) {
			//alert(response);
			return response;
		},
		error: function(response, ioArgs) {
			assignNewLineItemError(response.message);
			return response;
		}, 
		preventCache: true,
		timeout: 20000
	});
}

function assignError(error, product_id) {
   var error_field = 'error_msg_' + product_id;
   document.getElementById(error_field).innerHTML = "Error: " + error;
}

