cash       = true;
prepay     = true;
collection = false;
debit      = false;
bill       = false;
creditcard = false;
cashprice      = 4;
cashpricewotax = 3.4482758;
prepayprice      = 0;
prepaypricewotax = 0;
collectionprice      = 0;
collectionpricewotax = 0;
debitprice      = 0;
debitpricewotax = 0;
billprice      = 0;
billpricewotax = 0;
creditcardprice      = 0;
creditcardpricewotax = 0;
payment = 0;
discount = "0.00,,,///0.00,,,";
extratotal = "Größen,,,Farbe,,,,,,,,,";
paymentprice = 0;
paymentpricewotax = 0;
paymentname = "Vorkasse";
shownet        = "0"
showpage       = "1";
itemcount      = "10";
itemstart      = "0";
detailindex    = "0";
basket         = "";
dbtitel        = "";
dbase          = "";
dbasename      = "";
minprice       = "10";
postfreewotax  = "8620.68965517241";
minpricewotax  = "8.62068965517241";
postfree       = "75";
keyword        = "";
sbaseindex     = "";
sbaseresult    = "";
currency       = "€";
dispatch       = "1,,,///0,,,///0,,,///0,,,5,,,8,,,12,,,15,,,20,,,31.5,,,///5.00,,,6.50,,,7.50,,,8.50,,,9.50,,,15,,,25,,,///2.58620689655172,,,5.17241379310345,,,6.03448275862069,,,6.89655172413793,,,7.75862068965517,,,12.93103";
dispatchindex  = "3";
sum               = 0.00;
sumwotax          = 0.00;
sum_discount      = 0.00;
sum_discountwotax = 0.00;
sum_payment       = 0.00;
sumwotax_payment  = 0.00;
sum_dispatch      = 0.00;
sumwotax_dispatch = 0.00;
topay             = 0.00;
topaywotax        = 0.00;

function link(x,y,z,v) {
  itemstart = "0";
  titel     = y;
  dbasename = x;
  if (z==1) {dbase = x+"na.js";}
  if (z==2) {dbase = x+"no.js";}
  if (z==3) {dbase = x+"pr.js";}
  dataFrame.location = "data.php?Kat_Name="+x; 
}

function verweis(ziel) {
  dataFrame.location = ziel; 
}

function m_verweis(ziel) {
  menuFrame.location = ziel; 
}


function round(z){
  t = z;
  t = Math.round(t * 100) / 100 + '';
  s = t.indexOf(".");
  if (s == -1) 
    t = t + '.00';
  else {
    pos1 = t.length;
    pos2 = t.indexOf(".");
    if (pos1 * 1 - pos2 * 1 == 2) 
      t = t + '0'; }
  r = t;
  s1 = r.indexOf(".");
  s2 = r.indexOf("-");
  if (s1 == 0) {
    r = '0'+r; }
  if (s2 == 0 && s1 == 1) {
    r = r.substr(2,r.length);
    r = '-0.' + r; }
  return r;
}

