

// ###################################
function zweipruefen (d){
  preisdarstellen ();
}


// ###################################
function preisdarstellen () {

var bestellnr=0;

var preis1=0;
var bestellsprache1="";
var downloadedition=0;

if (document.Formular.bestellsprache1)  bestellsprache1=document.Formular.bestellsprache1.value;

if (document.Formular.downloadedition) {
  if (document.Formular.downloadedition[1]) { if (document.Formular.downloadedition[1].checked) downloadedition=1; }
  if (document.Formular.downloadedition[0]) { if (document.Formular.downloadedition[0].checked) downloadedition=0; }
}

if (bestellsprache1 == "aegyptisch") { bestellnr=110; }
if (bestellsprache1 == "afrikaans") { bestellnr=109; }
if (bestellsprache1 == "amharisch") { bestellnr=111; }
if (bestellsprache1 == "albanisch") { bestellnr=133; }
if (bestellsprache1 == "amerikanisch") { bestellnr=136; }
if (bestellsprache1 == "arabisch") { bestellnr=112; }
if (bestellsprache1 == "armenisch") { bestellnr=113; }
if (bestellsprache1 == "aserbaidschanisch") { bestellnr=114; }
if (bestellsprache1 == "baskisch") { bestellnr=115; }
if (bestellsprache1 == "bengalisch") { bestellnr=116; }
if (bestellsprache1 == "birmanisch") { bestellnr=117; }
if (bestellsprache1 == "bosnisch") { bestellnr=118; }
if (bestellsprache1 == "brasilianisch") { bestellnr=156; }
if (bestellsprache1 == "bulgarisch") { bestellnr=143; }
if (bestellsprache1 == "chinesisch") { bestellnr=146; }
if (bestellsprache1 == "daenisch") { bestellnr=167; }
if (bestellsprache1 == "deutsch") { bestellnr=153; }
if (bestellsprache1 == "englisch") { bestellnr=160; }
if (bestellsprache1 == "esperanto") { bestellnr=197; }
if (bestellsprache1 == "estnisch") { bestellnr=130; }
if (bestellsprache1 == "finnisch") { bestellnr=168; }
if (bestellsprache1 == "filipino") { bestellnr=119; }
if (bestellsprache1 == "franzoesisch") { bestellnr=161; }
if (bestellsprache1 == "georgisch") { bestellnr=121; }
if (bestellsprache1 == "griechisch") { bestellnr=154; }
if (bestellsprache1 == "hebraeisch") { bestellnr=132; }
if (bestellsprache1 == "hindi") { bestellnr=137; }
if (bestellsprache1 == "indonesisch") { bestellnr=171; }
if (bestellsprache1 == "islaendisch") { bestellnr=140; }
if (bestellsprache1 == "italienisch") { bestellnr=163; }
if (bestellsprache1 == "irisch") { bestellnr=120; }
if (bestellsprache1 == "japanisch") { bestellnr=150; }
if (bestellsprache1 == "jordanisch") { bestellnr=106; }
if (bestellsprache1 == "kantonesisch") { bestellnr=122; }
if (bestellsprache1 == "kasachisch") { bestellnr=123; }
if (bestellsprache1 == "katalanisch") { bestellnr=141; }
if (bestellsprache1 == "khmer") { bestellnr=124; }
if (bestellsprache1 == "kirgisisch") { bestellnr=193; }
if (bestellsprache1 == "koreanisch") { bestellnr=138; }
if (bestellsprache1 == "kroatisch") { bestellnr=157; }
if (bestellsprache1 == "kurdisch") { bestellnr=126; }
if (bestellsprache1 == "laotisch") { bestellnr=127; }
if (bestellsprache1 == "lettisch") { bestellnr=135; }
if (bestellsprache1 == "libanesisch") { bestellnr=194; }
if (bestellsprache1 == "lingala") { bestellnr=128; }
if (bestellsprache1 == "litauisch") { bestellnr=134; }
if (bestellsprache1 == "madagassisch") { bestellnr=129; }
if (bestellsprache1 == "malayalam") { bestellnr=172; }
if (bestellsprache1 == "malaysisch") { bestellnr=139; }
if (bestellsprache1 == "mallorquinisch") { bestellnr=196; }
if (bestellsprache1 == "maltesisch") { bestellnr=173; }
if (bestellsprache1 == "marathi") { bestellnr=174; }
if (bestellsprache1 == "marokkanisch") { bestellnr=148; }
if (bestellsprache1 == "mazedonisch") { bestellnr=175; }
if (bestellsprache1 == "mexikanisch") { bestellnr=195; }
if (bestellsprache1 == "mongolisch") { bestellnr=176; }
if (bestellsprache1 == "nepali") { bestellnr=177; }
if (bestellsprache1 == "niederlaendisch") { bestellnr=166; }
if (bestellsprache1 == "norwegisch") { bestellnr=145; }
if (bestellsprache1 == "pashto") { bestellnr=178; }
if (bestellsprache1 == "persisch") { bestellnr=147; }
if (bestellsprache1 == "polnisch") { bestellnr=169; }
if (bestellsprache1 == "portugiesisch") { bestellnr=164; }
if (bestellsprache1 == "punjabi") { bestellnr=179; }
if (bestellsprache1 == "quechua") { bestellnr=180; }
if (bestellsprache1 == "rumaenisch") { bestellnr=144; }
if (bestellsprache1 == "russisch") { bestellnr=155; }
if (bestellsprache1 == "schottisch") { bestellnr=181; }
if (bestellsprache1 == "schwedisch") { bestellnr=165; }
if (bestellsprache1 == "serbisch") { bestellnr=158; }
if (bestellsprache1 == "shanghaichinesisch") { bestellnr=107; }
if (bestellsprache1 == "singhalesisch") { bestellnr=182; }
if (bestellsprache1 == "slowakisch") { bestellnr=142; }
if (bestellsprache1 == "slowenisch") { bestellnr=159; }
if (bestellsprache1 == "spanisch") { bestellnr=162; }
if (bestellsprache1 == "suedamerika") { bestellnr=184; }
if (bestellsprache1 == "suaheli") { bestellnr=131; }
if (bestellsprache1 == "suedamerikanisch") { bestellnr=100; }
if (bestellsprache1 == "syrisch") { bestellnr=183; }
if (bestellsprache1 == "tamil") { bestellnr=185; }
if (bestellsprache1 == "thai") { bestellnr=186; }
if (bestellsprache1 == "tschechisch") { bestellnr=170; }
if (bestellsprache1 == "tuerkisch") { bestellnr=152; }
if (bestellsprache1 == "tunesisch") { bestellnr=125; }
if (bestellsprache1 == "ungarisch") { bestellnr=151; }
if (bestellsprache1 == "ukrainisch") { bestellnr=187; }
if (bestellsprache1 == "urdu") { bestellnr=188; }
if (bestellsprache1 == "usbekisch") { bestellnr=189; }
if (bestellsprache1 == "vietnamesisch") { bestellnr=149; }
if (bestellsprache1 == "weissrussisch") { bestellnr=108; }
if (bestellsprache1 == "wolof") { bestellnr=190; }
if (bestellsprache1 == "kosovo-albanisch") { bestellnr=191; }
if (bestellsprache1 == "latein") { bestellnr=192; }


preis1= basiskurspreis[bestellnr]*1;

for (var temp9=0;temp9<20;temp9++){

 //if (document.Formular.bestellsprache2) { 
 if (document.Formular.bestellsprache2[temp9]) { 
   if (document.Formular.bestellsprache2[temp9].checked) {
     bestellnr= (bestellnr*1)+(document.Formular.bestellsprache2[temp9].value*1000);
   }
 }
 //}

 //if (document.Formular.bestellsprache2) { 
 if (document.Formular.bestellsprache2[temp9]) {
  if (document.Formular.bestellsprache2[temp9].checked) {
   if (document.Formular.bestellsprache2[temp9].value>30 && document.Formular.bestellsprache2[temp9].value<41) {
    bestellnr= document.Formular.bestellsprache2[temp9].value;
   }
  }
 }
 //}

}

if (nurexpress[bestellnr]==1) { bestellnr=(9000+(bestellnr*1))*1; }

  var a=0; var b=0; var c=0; var d=0; var e=0;
  if (document.Formular.bestellnr2) { a= document.Formular.bestellnr2.options[document.Formular.bestellnr2.selectedIndex].value;}
  if (document.Formular.bestellnr3) { b= document.Formular.bestellnr3.options[document.Formular.bestellnr3.selectedIndex].value;}
  if (document.Formular.bestellnr4) { c= document.Formular.bestellnr4.options[document.Formular.bestellnr4.selectedIndex].value;}
  if (document.Formular.bestellnr5) { d= document.Formular.bestellnr5.options[document.Formular.bestellnr5.selectedIndex].value;}
  if (document.Formular.bestellnr6) { e= document.Formular.bestellnr6.options[document.Formular.bestellnr6.selectedIndex].value;}

  var foto=0; var weltreisecd=0;
  if (document.Formular.fotokurs) { foto= document.Formular.fotokurs[1].checked; }
  if (document.Formular.weltreisecd) { weltreisecd= document.Formular.weltreisecd[1].checked; }

  // Berechnung Preis Produkt 1:
 



  if (bestellnr==31) preis1=49.95;
  if (bestellnr==32) preis1=49.95;
  if (bestellnr==33) preis1=49.95;
  if (bestellnr==34) preis1=49.95;
  if (bestellnr==35) preis1=49.95;
  if (bestellnr==36) preis1=49.95;
  if (bestellnr==37) preis1=49.95;
  if (bestellnr==38) preis1=49.95;
  if (bestellnr==39) preis1=49.95;
  if (bestellnr==40) preis1=49.95;
  if (bestellnr==41) preis1=49.95;


  if (bestellnr>0 && bestellnr<999)  {
    //if (document.Formular.rabatt98) {
      //if (document.Formular.rabatt98.value>3990) { preis1=39.95; } 
      //if (document.Formular.rabatt98.value>4990) { preis1=49.95; } 
    //}
    if (vpid=="upgrade01") { preis1=preis1-10; }  
  }

  if (bestellnr>2000 && bestellnr<2999)  { 
    preis1=39.95;
    if (document.Formular.rabatt99) {   

      if (document.Formular.rabatt99.value=="49,95") { preis1=49.95; } 
      if (document.Formular.rabatt99.value=="59,95") { preis1=59.95; } 
    }
    if (vpid=="upgrade01") { preis1=29.95; }
  }
  if (bestellnr>3000 && bestellnr<3999)  { 
    preis1=preis1+10;       
    if (vpid=="upgrade01") { preis1=preis1-10; }  
    //if (document.Formular.rabatt98.value>3990) { preis1=49.95; } 
    //if (document.Formular.rabatt98.value>4990) { preis1=59.95; } 
  }
  if (bestellnr>4000 && bestellnr<4999)  { preis1=19.95;}
  if (bestellnr>5000 && bestellnr<5999)  { preis1=12.95; }
  if (bestellnr>6000 && bestellnr<6999)  { preis1=preis1+10; }
  if (bestellnr>7000 && bestellnr<7999)  { preis1=preis1+20; }
  if (bestellnr>8000 && bestellnr<8999)  { preis1=19.95; }
  if (bestellnr>9000 && bestellnr<9999)  { 
	preis1=29.95; if (vpid=="upgrade01") { preis1=19.95; } 
    	if (document.Formular.rabatt99) { 
      		if (document.Formular.rabatt99.value=="express40") { preis1=19.95; } 
      		if (document.Formular.rabatt99.value=="express19") { preis1=19.95; } 
    	} 
  }
  if (bestellnr>10000 && bestellnr<10999)  { 
    preis1=preis1+30; 
   	if (document.Formular.rabatt99) { 
   		if (document.Formular.rabatt99.value>2990) { preis1=29.95; } 
    	} 
    	if (document.Formular.rabatt99) { 
      		if (document.Formular.rabatt99.value=="express40") { preis1=49.95; } 
      		if (document.Formular.rabatt99.value=="express19") { preis1=49.95; } 
    	} 
  }
  if (bestellnr>13000 && bestellnr<13999)  { 
    preis1=89.95; 
    	if (document.Formular.rabatt99) { 
		if (document.Formular.rabatt99.value>2990) { preis1=29.95; } 
    	} 
    	if (document.Formular.rabatt99) { 
      		if (document.Formular.rabatt99.value=="express40") { preis1=49.95; } 
      		if (document.Formular.rabatt99.value=="express19") { preis1=49.95; } 
    	} 
  }
  if (bestellnr>15000 && bestellnr<15999)  { preis1=29.95; }
  if (bestellnr>16000 && bestellnr<16999)  { preis1=49.95; }
  if (bestellnr>17000 && bestellnr<17999)  { preis1=39.95; }
  if (bestellnr>18000 && bestellnr<18999)  { preis1=preis1+20; }

  // am 20.7.2008 ändern:
  if (bestellnr>19000 && bestellnr<19999)  { 
    preis1=19.95; 
    if (document.Formular.rabatt99) { 
      if (document.Formular.rabatt99.value>0) { preis1=9.99; }
      if (document.Formular.rabatt99.value>1) { preis1=14.95; }
    } 
  }
  if (bestellnr>20000 && bestellnr<20999)  { 
    preis1=19.95; 
    if (document.Formular.rabatt99) { 
      if (document.Formular.rabatt99.value>0) { preis1=9.99; }
      if (document.Formular.rabatt99.value>1) { preis1=14.95; }
    } 
  }

  if (bestellnr>24000 && bestellnr<24999)  { 
    preis1=19.95; 
    if (document.Formular.rabatt99) { 
      if (document.Formular.rabatt99.value>1) { preis1=14.95; }
    } 
  }

  if (bestellnr>25000 && bestellnr<25999)  { 
	preis1=29.95; // Kindersprachkurs
	if (document.Formular.rabatt99) { 
		if (document.Formular.rabatt99.value>1990) { preis1=19.95; }
		if (document.Formular.rabatt99.value>2990) { preis1=29.95; } 
	} 
    	if (document.Formular.rabatt99) { 
      		if (document.Formular.rabatt99.value=="kinder40") { preis1=19.95; } 
      		if (document.Formular.rabatt99.value=="kinder19") { preis1=19.95; } 
    	} 
  }
  
  if (bestellnr>28000 && bestellnr<28999)  { preis1=29.95; }
  if (bestellnr>29000 && bestellnr<29999)  { 
	preis1=99.00; // Business
	if (document.Formular.rabatt99) { 
		if (document.Formular.rabatt99.value>2990) { preis1=29.95; } 
		if (document.Formular.rabatt99.value>3990) { preis1=39.95; } 
		if (document.Formular.rabatt99.value>4990) { preis1=49.95; } 
	} 
  }


  if (bestellnr>30000 && bestellnr<30999)  { 
    preis1=99.00; 
    if (document.Formular.rabatt99) { 
	if (document.Formular.rabatt99.value>2990) { preis1=29.95; } 
	if (document.Formular.rabatt99.value>4990) { preis1=49.95; } 
    	if (document.Formular.rabatt99) { 
      		if (document.Formular.rabatt99.value=="express40") { preis1=49.95; } 
      		if (document.Formular.rabatt99.value=="express19") { preis1=49.95; } 
    	} 
    } 
  }
  if (bestellnr>43000 && bestellnr<43999)  { preis1=29.95; }


  if (bestellnr>44000 && bestellnr<44999)  { 
	preis1=109.00; 
    	if (document.Formular.rabatt99) { 
      		if (document.Formular.rabatt99.value=="kinder40") { preis1=49.95; } 
      		if (document.Formular.rabatt99.value=="kinder19") { preis1=49.95; } 
    	} 
  }
  if (bestellnr>45000 && bestellnr<45999)  { 
	preis1=119.00; 
    	if (document.Formular.rabatt99) { 
      		if (document.Formular.rabatt99.value=="kinder40") { preis1=49.95; } 
      		if (document.Formular.rabatt99.value=="kinder19") { preis1=49.95; } 
    	} 
  }
  if (bestellnr>51000 && bestellnr<51999)  { preis1=99.00; }

  if (bestellnr>54000 && bestellnr<54999)  { 
	preis1=39.95; // reisepaket
    	if (document.Formular.rabatt99) { 
      		if (document.Formular.rabatt99.value=="express40") { preis1=29.95; } 
      		if (document.Formular.rabatt99.value=="express19") { preis1=29.95; } 
    	} 
  }

  if (bestellnr>56000 && bestellnr<56999)  { 
    preis1=99.00; 
    if (document.Formular.rabatt98) { 
      if (document.Formular.rabatt98.value>2990) { preis1=29.95; } 
      if (document.Formular.rabatt98.value>4990) { preis1=49.95; } 
      if (document.Formular.rabatt98.value>9600) { preis1=97.00; } 
    } 
  }
  if (bestellnr>57000 && bestellnr<57999)  { 
    preis1=147.00; 
    if (document.Formular.rabatt98) { 
      if (document.Formular.rabatt98.value>4990) { preis1=49.95; } 
      if (document.Formular.rabatt98.value>9800) { preis1=99.00; } 
      if (document.Formular.rabatt98.value>14800) { preis1=149.00; } 
    } 
  }
  if (bestellnr>58000 && bestellnr<58999)  { 
    preis1=197.00; 
  }
  if (bestellnr>59000 && bestellnr<59999)  { 
    preis1=99.00; 
    if (document.Formular.rabatt98) { 
      if (document.Formular.rabatt98.value>2990) { preis1=29.95; } 
      if (document.Formular.rabatt98.value>4990) { preis1=49.95; } 
    } 
  }

  if (bestellnr>80000 && bestellnr<80999)  { preis1=19.95; }
  if (bestellnr>81000 && bestellnr<81999)  { preis1=29.95; }
  if (bestellnr>82000 && bestellnr<82999)  { preis1=39.95; }
  if (bestellnr>83000 && bestellnr<83999)  { preis1=49.95; }
  if (bestellnr>84000 && bestellnr<84999)  { preis1=69.95; }
  

   
  if (bestellnr>85000 && bestellnr<99999)  { 
    preis1=29.95; 
    if (document.Formular.rabatt99) { 
      if (document.Formular.rabatt99.value>1990) { preis1=19.95; } 
    } 
  } // Alle Spezialwo


  if (bestellnr==10) { 
	// in homeofficebestellung.js eintragen!
  }

var mitbestellnr= new Array();

 mitbestellnr[1] =a;
 mitbestellnr[2] =b;
 mitbestellnr[3] =c;
 mitbestellnr[4] =d;
 mitbestellnr[5] =e;

for (ax=1;ax<6;ax+=1) {
  if (mitbestellnr[ax]>0 && mitbestellnr[ax]<1000) { preis1=(preis1*1) - 9.95 + basiskurspreis[mitbestellnr[ax]]*1; if (downloadedition==1) {preis1=(preis1*1);}}
  if (mitbestellnr[ax]>0 && mitbestellnr[ax]>2000 && mitbestellnr[ax]<2999) { preis1=(preis1*1) + 30; if (downloadedition==1) {preis1=(preis1*1);}}
  if (mitbestellnr[ax]>0 && mitbestellnr[ax]>3000 && mitbestellnr[ax]<3999) { preis1=(preis1*1) + basiskurspreis[mitbestellnr[ax]-3000]*1 - 9.95 + 10; if (downloadedition==1) {preis1=(preis1*1);}}
  if (mitbestellnr[ax]>0 && mitbestellnr[ax]>9000 && mitbestellnr[ax]<9999) { preis1=(preis1*1) + 20; if (downloadedition==1) {preis1=(preis1*1);}}
  if (mitbestellnr[ax]>0 && mitbestellnr[ax]>10000 && mitbestellnr[ax]<10999) { preis1=(preis1*1) + basiskurspreis[mitbestellnr[ax]-10000]*1 - 9.95 + 30;if (downloadedition==1) {preis1=(preis1*1);}}
  if (mitbestellnr[ax]>0 && mitbestellnr[ax]>13000 && mitbestellnr[ax]<13999) { preis1=(preis1*1) + basiskurspreis[mitbestellnr[ax]-13000]*1 - 9.95 + 60;if (downloadedition==1) {preis1=(preis1*1);}}
  if (mitbestellnr[ax]>0 && mitbestellnr[ax]>19000 && mitbestellnr[ax]<19999) { preis1=(preis1*1) + 9.99; }
  if (mitbestellnr[ax]>0 && mitbestellnr[ax]>20000 && mitbestellnr[ax]<20999) { preis1=(preis1*1) + 14.95; }
  if (mitbestellnr[ax]>0 && mitbestellnr[ax]>24000 && mitbestellnr[ax]<24999) { preis1=(preis1*1) + 14.95; }
  if (mitbestellnr[ax]>0 && mitbestellnr[ax]>25000 && mitbestellnr[ax]<25999) { preis1=(preis1*1) + 19.95; } // kinder

  if (mitbestellnr[ax]>0 && mitbestellnr[ax]>28000 && mitbestellnr[ax]<28999) { preis1=(preis1*1) + 20; }
  if (mitbestellnr[ax]>0 && mitbestellnr[ax]>29000 && mitbestellnr[ax]<29999) { preis1=(preis1*1) + 30; }
  if (mitbestellnr[ax]>0 && mitbestellnr[ax]>30000 && mitbestellnr[ax]<30999) { preis1=(preis1*1) + 90; }
  if (mitbestellnr[ax]>0 && mitbestellnr[ax]>31000 && mitbestellnr[ax]<31999) { preis1=(preis1*1) + 90; }
  if (mitbestellnr[ax]>0 && mitbestellnr[ax]>34000 && mitbestellnr[ax]<34999) { preis1=(preis1*1) + 30; }
  if (mitbestellnr[ax]>0 && mitbestellnr[ax]>91000 && mitbestellnr[ax]<99999) { preis1=(preis1*1) + 20; } // Alle Spezialwo
}

  //if (foto) { preis1=(preis1*1)+15; }
   
  var preism=preis1*1;
  var versand=0;
  var versandrabatt="";
  var versandrabatt1=0;
  if (downloadedition==0) {
    versand=3;
     if (document.Formular.land.options[document.Formular.land.selectedIndex].value.length>0) versand+=7;
     if (document.Formular.land.options[document.Formular.land.selectedIndex].value == "A-") versand-=4;
     if (document.Formular.land.options[document.Formular.land.selectedIndex].value == "B-") versand-=4;
     if (document.Formular.land.options[document.Formular.land.selectedIndex].value == "Bulgaria-") versand-=4;
     if (document.Formular.land.options[document.Formular.land.selectedIndex].value == "DK-") versand-=4;
     if (document.Formular.land.options[document.Formular.land.selectedIndex].value == "Estland-") versand-=4;
     if (document.Formular.land.options[document.Formular.land.selectedIndex].value == "FIN-") versand-=4;
     if (document.Formular.land.options[document.Formular.land.selectedIndex].value == "FR-") versand-=4;
     if (document.Formular.land.options[document.Formular.land.selectedIndex].value == "GR-") versand-=4;
     if (document.Formular.land.options[document.Formular.land.selectedIndex].value == "UK-") versand-=4;
     if (document.Formular.land.options[document.Formular.land.selectedIndex].value == "Ireland-") versand-=4;
     if (document.Formular.land.options[document.Formular.land.selectedIndex].value == "I-") versand-=4;
     if (document.Formular.land.options[document.Formular.land.selectedIndex].value == "Livland-") versand-=4;
     if (document.Formular.land.options[document.Formular.land.selectedIndex].value == "Litauen-") versand-=4;
     if (document.Formular.land.options[document.Formular.land.selectedIndex].value == "LUX-") versand-=4;
     if (document.Formular.land.options[document.Formular.land.selectedIndex].value == "Malta-") versand-=4;
     if (document.Formular.land.options[document.Formular.land.selectedIndex].value == "NL-") versand-=4;
     if (document.Formular.land.options[document.Formular.land.selectedIndex].value == "PL-") versand-=4;
     if (document.Formular.land.options[document.Formular.land.selectedIndex].value == "P-") versand-=4;
     if (document.Formular.land.options[document.Formular.land.selectedIndex].value == "Romania-") versand-=4;
     if (document.Formular.land.options[document.Formular.land.selectedIndex].value == "Sweden-") versand-=4;
     if (document.Formular.land.options[document.Formular.land.selectedIndex].value == "Slowakei-") versand-=4;
     if (document.Formular.land.options[document.Formular.land.selectedIndex].value == "Slowenien-") versand-=4;
     if (document.Formular.land.options[document.Formular.land.selectedIndex].value == "E-") versand-=4;
     if (document.Formular.land.options[document.Formular.land.selectedIndex].value == "CZ-") versand-=4;
     if (document.Formular.land.options[document.Formular.land.selectedIndex].value == "H-") versand-=4;
     if (document.Formular.land.options[document.Formular.land.selectedIndex].value == "Zypern (GR)-") versand-=4;
  } 
  else {
     // Rabatt bei Download-Edition:
     //if (bestellnr>0 && bestellnr<999)  preis1=preis1-10;          // Basis
  }




  var gutschein="";
  var vpid=omwid(1);
  if (vpid) {
    if (vpid.indexOf("tschein10")>0) { 
      //gutschein=" ("+preis1+" Euro minus 10 Euro)";
      preis1=(preis1*1)-10; 
    }
    if (vpid.indexOf("xmas8")>0) { 
      //gutschein=" ("+preis1+" Euro minus 10 Euro)";
      preis1=(preis1*1)-10; 
    }
    if (vpid.indexOf("neujahr9")>0) { 
      //gutschein=" ("+preis1+" Euro minus 10 Euro)";
      preis1=(preis1*1)-10; 
    }
  }  
  
  preis1=preis1+0.002;

  preis1=(preis1*1)+versandrabatt1;
  preis1=Math.floor(preis1*100)/100;

  preism=(preis1*1)+versand;
  preism=Math.floor(preism*100)/100;

  preis1=preis1+"";
  preism=preism+"";
  if (preis1.indexOf(".")==preis1.length-2) { preis1=preis1+"0"; }
  if (preism.indexOf(".")==preism.length-2) { preism=preism+"0"; }

  //preis1=(Math.floor(preis1)+0.95)*1;

  
  document.Formular.preis1.value=preis1+" Euro"+versandrabatt+gutschein; 
  document.Formular.preis2.value=preism+" Euro"; 
  document.Formular.versandkosten.value=versand+" Euro"; 
}

function ustidform2()
{
  if (ustidformular) 
  {
    ust_id();
  }
  zweipruefen(4);
}

