<!--

  /*
  ' function  : firstValueInTildeList
  ' overview  : returns the first value in the tilde separated list
  ' arguments : [in] sList, a string which represents a list. the values
  '                  in the list are separated by a tilde ~.
  ' return    : the first value in the specified list
  ' example   : firstValueInTildeList('red~green~orange') returns 'red'
  ' note      :
  */
  function firstValueInTildeList(sList)
  {
    var saValues = sList.split('~');
    return saValues[0];
  }

  /*
  ' function  : addItemToBasket
  ' overview  : adds a product item to the basket
  ' arguments :
  ' return    :
  ' example   :
  ' note      :
  */
/************************** editable: **************************/
  function addItemToBasket(pageid,aantal,productcode,naamvandewijn,kleur,inhoudperfles,producent,oogstjaar,prijsineuros,sorteerprijs) {
    // default values for attributes
    aantal = 1;
    
    // variables for the fields in the basket
    var objpageid = new byrefVariable();
    var objproductcode = new byrefVariable();
    var objaantal = new byrefVariable();
    var objproductcode = new byrefVariable();
    var objnaamvandewijn = new byrefVariable();
    var objkleur = new byrefVariable();
    var objinhoudperfles = new byrefVariable();
    var objproducent = new byrefVariable();
    var objoogstjaar = new byrefVariable();
    var objprijsineuros = new byrefVariable();
    var objsorteerprijs = new byrefVariable();

/************************** :editable **************************/



    var iUniqueInternalID = 0;
    do
    {
      iUniqueInternalID++;
/************************** editable: **************************/
      winkelwagentje.geefProductGegevens(iUniqueInternalID, objpageid, objaantal, objproductcode, objproductcode, objnaamvandewijn, objkleur, objinhoudperfles, objproducent, objoogstjaar, objprijsineuros,objsorteerprijs);
    } while (objaantal.value != null);
/************************** :editable **************************/

/************************** editable: **************************/
    winkelwagentje.voegProductToe(iUniqueInternalID, pageid, aantal, productcode, naamvandewijn, kleur, inhoudperfles, producent, oogstjaar, prijsineuros,sorteerprijs);
/************************** :editable **************************/

  }
//-->



