  product_stock = [ ];  
  function update_stock_info(PrID,SuID,PrLink)
  {
    var stockUnits = product_stock[PrID];
    var SU = null;
    for(var x = 0; x < stockUnits.length; x++)
    {
      if(SuID == stockUnits[x].SuID)
      {
        // Found 
        var price = document.getElementById('suprice' + PrID);
        var avail = document.getElementById('suavailability' + PrID);
        var rewards = document.getElementById('surewards' + PrID);        
        // var link  = document.getElementById('sulink' + PrID);
        var qty     = document.getElementById('suqty' + PrID);
        var sunotify   = document.getElementById('sunotify' + PrID);
        
        if(rewards)
        {
          if(!stockUnits[x].SuPossibleRewards)
          {
            rewards.style.display = 'none';
          }
          else
          {          
            rewards.style.display = '';
            rewards.innerHTML = '$' + stockUnits[x].SuPossibleRewards.toFixed(2);
          }
        }
        
        if(price)
        {
          if(stockUnits[x].SuSalePrice)
          {
            price.innerHTML = '<span class="oldPrice">$' + stockUnits[x].SuPrice.toFixed(2) +'</span> / <span class="salePrice">Sale Price: $'+stockUnits[x].SuSalePrice.toFixed(2)+'</span>' ;
          }
          else
          {
            price.innerHTML = '$' + stockUnits[x].SuPrice.toFixed(2);
          }
        }
        
        if(avail)
        {
          if(stockUnits[x].SuQuantityInStock == null || stockUnits[x].SuQuantityInStock > 0)
          {
            avail.innerHTML = 'IN STOCK';
          }
          else if(stockUnits[x].SuMoreStockDue && stockUnits[x].SuMoreStockDue != 'in stock')
          {
            avail.innerHTML = stockUnits[x].SuMoreStockDue;
          }
          else
          {
            avail.innerHTML = 'NEXT SEASON';
          }
          
        }
        
        if(stockUnits[x].SuQuantityInStock == null || stockUnits[x].SuQuantityInStock > 0)
        {
          //link.innerHTML = '<a href="' + PrLink + '?SelectSuID=' + SuID + '">Order Now</a>';
          if(qty) qty.style.display = '';
          if(sunotify) sunotify.style.display = 'none';
        }
        else
        {
          //link.innerHTML = '<a href="' + PrLink + '?SelectSuID=' + SuID + '">Notify when available</a>';
          if(qty) qty.style.display = 'none';
          if(sunotify) sunotify.style.display = '';
        }
        return;
      }
    }
  }
