function artikelInit (gruppe1, gruppe2, gruppe3, gruppe4, artikel, bestellnr,
                      bezeichnung1, zusatz1, bezeichnung2, zusatz2, bezeichnung3, zusatz3,
                      preis, mwst, staffel1, staffelpreis1, staffel2, staffelpreis2,
                      staffel3, staffelpreis3, staffel4, staffelpreis4, staffel5, staffelpreis5,
                      bild, bild_x, bild_y, bildtext, thumbnail, tn_x, tn_y, kurzbeschreibung,
                      beschreibung, eigenschaft1, eigenschaft2, eigenschaft3, sonderpreis,
                      SPDatumVon, SPDatumBis, lagerbestand, lieferzeit, versandkosten, artikelsperren )
{
  this.gruppe1 = gruppe1;
  this.gruppe2 = gruppe2;
  this.gruppe3 = gruppe3;
  this.gruppe4 = gruppe4;
  this.artikel = artikel;
  this.bestellnr = bestellnr;
  this.bezeichnung1 = bezeichnung1;
  this.zusatz1 = zusatz1;
  this.bezeichnung2 = bezeichnung2;
  this.zusatz2 = zusatz2;
  this.bezeichnung3 = bezeichnung3;
  this.zusatz3 = zusatz3;
  this.preis = preis;
  this.mwst = mwst;
  this.staffel1 = staffel1;
  this.staffelpreis1 = staffelpreis1;
  this.staffel2 = staffel2;
  this.staffelpreis2 = staffelpreis2;
  this.staffel3 = staffel3;
  this.staffelpreis3 = staffelpreis3;
  this.staffel4 = staffel4;
  this.staffelpreis4 = staffelpreis4;
  this.staffel5 = staffel5;
  this.staffelpreis5 = staffelpreis5;
  this.bild = bild;
  this.bildtext = bildtext;
  this.thumbnail = thumbnail;
  this.kurzbeschreibung = kurzbeschreibung;
  this.beschreibung = beschreibung;
  this.eigenschaft1 = eigenschaft1;
  this.eigenschaft2 = eigenschaft2;
  this.eigenschaft3 = eigenschaft3;
  this.sonderpreis = sonderpreis;
  this.SPDatumVon = SPDatumVon;
  this.SPDatumBis = SPDatumBis;
  this.lagerbestand = lagerbestand;
  this.lieferzeit = lieferzeit;
  this.versandkosten = versandkosten;
  this.artikelsperren = artikelsperren;

}

// Warenkorbzeile
function wareInit (anzahl, artikel, bestellnr, preis, mwst, summe, versandkosten, zusatz1, bezeichnung_1, zusatz2, bezeichnung2, zusatz3, bezeichnung3, lagerbestand, lieferzeit, waehrung, staffel1, staffelpreis1, staffel2, staffelpreis2, staffel3, staffelpreis3, staffel4, staffelpreis4, staffel5, staffelpreis5, sonderpreis, artikelpreis )
{
  this.anzahl = anzahl;
  this.artikel = artikel;
  this.bestellnr = bestellnr;
  this.preis = preis;
  this.mwst = mwst;
  this.summe = summe;
  this.versandkosten = versandkosten;
  this.zusatz1 = zusatz1;
  this.bezeichnung1 = bezeichnung_1;
  this.zusatz2 = zusatz2;
  this.bezeichnung2 = bezeichnung2;
  this.zusatz3 = zusatz3;
  this.bezeichnung3 = bezeichnung3;
  this.lagerbestand = lagerbestand;
  this.lieferzeit = lieferzeit;
  this.waehrung = waehrung;

  this.staffel1 = staffel1;
  this.staffelpreis1 = staffelpreis1;
  this.staffel2 = staffel2;
  this.staffelpreis2 = staffelpreis2;
  this.staffel3 = staffel3;
  this.staffelpreis3 = staffelpreis3;
  this.staffel4 = staffel4;
  this.staffelpreis4 = staffelpreis4;
  this.staffel5 = staffel5;
  this.staffelpreis5 = staffelpreis5;
  this.sonderpreis = sonderpreis;
  this.artikelpreis = artikelpreis;
}

function kaufm(x)
{
  var l = (Math.round(x * 100) / 100).toString();
  l += (l.indexOf('.') == -1)? '.00' : '00';

  if (l.indexOf('.') == 0)
  {
    l = "0" + l;
  }

  return l.substring(0, l.indexOf('.') + 3);
}
