<!--

  /*
  ' 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,bestelcode,naamproduct,categorie,prijsineuros,sorteerprijs) 
  {
    // default values for attributes
    aantal = 1;
    
    // variables for the fields in the basket

    var objpageid = new byrefVariable();
    var objaantal = new byrefVariable();
    var objbestelcode = new byrefVariable();
    var objnaamproduct = new byrefVariable();
    var objcategorie = new byrefVariable();
    var objprijsineuros = new byrefVariable();
    var objsorteerprijs = new byrefVariable();

/************************** :editable **************************/

    var iUniqueInternalID = 0;
    do
    {
      iUniqueInternalID++;
/************************** editable: **************************/
      winkelwagentje.geefProductGegevens(iUniqueInternalID, objpageid, objaantal, objbestelcode, objnaamproduct, objcategorie, objprijsineuros,objsorteerprijs);
    } while (objaantal.value != null);
/************************** :editable **************************/
	
/************************** editable: **************************/
    winkelwagentje.voegProductToe(iUniqueInternalID, pageid, aantal, bestelcode, naamproduct, categorie, prijsineuros, sorteerprijs);
/************************** :editable **************************/

  }
//-->



