/* *********************************************************************************
   tracking which products have si codes
********************************************************************************** */

var SIOrder = function(){
  this.siArray = [];
  var thisObject;
  this.siOnOrder = function(){
    thisObject = this;
    var returnValue = false;
    for(i=0; i < thisObject.siArray.length; i++){
      var theQty = document.getElementById(thisObject.siArray[i]).value;
      if(!isNaN(theQty)){
        if(theQty > 0){
          returnValue = true;
        }
      }
    }
    return returnValue;
  }
  this.Add = function(qtyId){
    thisObject = this;
    var thePos = thisObject.siArray.indexOf(qtyId);
    if(thePos < 0){
    thisObject.siArray.push(qtyId);
  }
  }
}

var objSIOrder = new SIOrder();