

// ###################################
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 == "sprachae01") { bestellnr=sprachbestellnr01; }
//if (bestellsprache1 == "deutsch-sprachae01") { bestellnr=sprachbestellnr02; }

if (bestellsprache1 == "afrikaans") { bestellnr=109; }
if (bestellsprache1 == "deutsch-afrikaans") { bestellnr=309; }
if (bestellsprache1 == "albanisch") { bestellnr=133; }
if (bestellsprache1 == "deutsch-albanisch") { bestellnr=333; }
if (bestellsprache1 == "aegyptisch") { bestellnr=110; }
if (bestellsprache1 == "deutsch-aegyptisch") { bestellnr=310; }
if (bestellsprache1 == "amerikanisch") { bestellnr=136; }
if (bestellsprache1 == "deutsch-amerikanisch") { bestellnr=336; }
if (bestellsprache1 == "amharisch") { bestellnr=111; }
if (bestellsprache1 == "deutsch-amharisch") { bestellnr=311; }
if (bestellsprache1 == "arabisch") { bestellnr=112; }
if (bestellsprache1 == "deutsch-arabisch") { bestellnr=312; }
if (bestellsprache1 == "armenisch") { bestellnr=113; }
if (bestellsprache1 == "deutsch-armenisch") { bestellnr=313; }
if (bestellsprache1 == "aserbaidschanisch") { bestellnr=114; }
if (bestellsprache1 == "deutsch-aserbaidschanisch") { bestellnr=314; }
if (bestellsprache1 == "baskisch") { bestellnr=115; }
if (bestellsprache1 == "deutsch-baskisch") { bestellnr=315; }
if (bestellsprache1 == "bengalisch") { bestellnr=116; }
if (bestellsprache1 == "deutsch-bengalisch") { bestellnr=316; }
if (bestellsprache1 == "birmanisch") { bestellnr=117; }
if (bestellsprache1 == "deutsch-birmanisch") { bestellnr=317; }
if (bestellsprache1 == "bosnisch") { bestellnr=118; }
if (bestellsprache1 == "deutsch-bosnisch") { bestellnr=318; }
if (bestellsprache1 == "brasilianisch") { bestellnr=156; }
if (bestellsprache1 == "deutsch-brasilianisch") { bestellnr=356; }
if (bestellsprache1 == "bulgarisch") { bestellnr=143; }
if (bestellsprache1 == "deutsch-bulgarisch") { bestellnr=343; }
if (bestellsprache1 == "chinesisch") { bestellnr=146; }
if (bestellsprache1 == "deutsch-chinesisch") { bestellnr=346; }
if (bestellsprache1 == "daenisch") { bestellnr=167; }
if (bestellsprache1 == "deutsch-daenisch") { bestellnr=367; }
if (bestellsprache1 == "deutsch") { bestellnr=153; }
if (bestellsprache1 == "deutsch-deutsch") { bestellnr=353; }
if (bestellsprache1 == "englisch") { bestellnr=160; }
if (bestellsprache1 == "deutsch-englisch") { bestellnr=360; }
if (bestellsprache1 == "esperanto") { bestellnr=197; }
if (bestellsprache1 == "deutsch-esperanto") { bestellnr=397; }
if (bestellsprache1 == "estnisch") { bestellnr=130; }
if (bestellsprache1 == "deutsch-estnisch") { bestellnr=330; }
if (bestellsprache1 == "filipino") { bestellnr=119; }
if (bestellsprache1 == "deutsch-filipino") { bestellnr=319; }
if (bestellsprache1 == "finnisch") { bestellnr=168; }
if (bestellsprache1 == "deutsch-finnisch") { bestellnr=368; }
if (bestellsprache1 == "franzoesisch") { bestellnr=161; }
if (bestellsprache1 == "deutsch-franzoesisch") { bestellnr=361; }
if (bestellsprache1 == "georgisch") { bestellnr=121; }
if (bestellsprache1 == "deutsch-georgisch") { bestellnr=321; }
if (bestellsprache1 == "griechisch") { bestellnr=154; }
if (bestellsprache1 == "deutsch-griechisch") { bestellnr=354; }
if (bestellsprache1 == "hebraeisch") { bestellnr=132; }
if (bestellsprache1 == "deutsch-hebraeisch") { bestellnr=332; }
if (bestellsprache1 == "hindi") { bestellnr=137; }
if (bestellsprache1 == "deutsch-hindi") { bestellnr=337; }
if (bestellsprache1 == "indonesisch") { bestellnr=171; }
if (bestellsprache1 == "deutsch-indonesisch") { bestellnr=371; }
if (bestellsprache1 == "islaendisch") { bestellnr=140; }
if (bestellsprache1 == "deutsch-islaendisch") { bestellnr=340; }
if (bestellsprache1 == "italienisch") { bestellnr=163; }
if (bestellsprache1 == "deutsch-italienisch") { bestellnr=363; }
if (bestellsprache1 == "irisch") { bestellnr=120; }
if (bestellsprache1 == "deutsch-irisch") { bestellnr=320; }
if (bestellsprache1 == "japanisch") { bestellnr=150; }
if (bestellsprache1 == "deutsch-japanisch") { bestellnr=350; }
if (bestellsprache1 == "jordanisch") { bestellnr=106; }
if (bestellsprache1 == "deutsch-jordanisch") { bestellnr=306; }
if (bestellsprache1 == "kantonesisch") { bestellnr=122; }
if (bestellsprache1 == "deutsch-kantonesisch") { bestellnr=322; }
if (bestellsprache1 == "kasachisch") { bestellnr=123; }
if (bestellsprache1 == "deutsch-kasachisch") { bestellnr=323; }
if (bestellsprache1 == "katalanisch") { bestellnr=141; }
if (bestellsprache1 == "deutsch-katalanisch") { bestellnr=341; }
if (bestellsprache1 == "khmer") { bestellnr=124; }
if (bestellsprache1 == "deutsch-khmer") { bestellnr=324; }
if (bestellsprache1 == "kirgisisch") { bestellnr=193; }
if (bestellsprache1 == "deutsch-kirgisisch") { bestellnr=393; }
if (bestellsprache1 == "koreanisch") { bestellnr=138; }
if (bestellsprache1 == "deutsch-koreanisch") { bestellnr=338; }
if (bestellsprache1 == "kroatisch") { bestellnr=157; }
if (bestellsprache1 == "deutsch-kroatisch") { bestellnr=357; }
if (bestellsprache1 == "kurdisch") { bestellnr=126; }
if (bestellsprache1 == "deutsch-kurdisch") { bestellnr=326; }
if (bestellsprache1 == "laotisch") { bestellnr=127; }
if (bestellsprache1 == "deutsch-laotisch") { bestellnr=327; }
if (bestellsprache1 == "latein") { bestellnr=192; }
if (bestellsprache1 == "deutsch-latein") { bestellnr=392; }
if (bestellsprache1 == "lettisch") { bestellnr=135; }
if (bestellsprache1 == "deutsch-lettisch") { bestellnr=335; }
if (bestellsprache1 == "libanesisch") { bestellnr=194; }
if (bestellsprache1 == "deutsch-libanesisch") { bestellnr=394; }
if (bestellsprache1 == "lingala") { bestellnr=128; }
if (bestellsprache1 == "deutsch-lingala") { bestellnr=328; }
if (bestellsprache1 == "litauisch") { bestellnr=134; }
if (bestellsprache1 == "deutsch-litauisch") { bestellnr=334; }
if (bestellsprache1 == "madagassisch") { bestellnr=129; }
if (bestellsprache1 == "deutsch-madagassisch") { bestellnr=329; }
if (bestellsprache1 == "malayalam") { bestellnr=172; }
if (bestellsprache1 == "deutsch-malayalam") { bestellnr=372; }
if (bestellsprache1 == "malaysisch") { bestellnr=139; }
if (bestellsprache1 == "deutsch-malaysisch") { bestellnr=339; }
if (bestellsprache1 == "mallorquinisch") { bestellnr=196; }
if (bestellsprache1 == "deutsch-mallorquinisch") { bestellnr=396; }
if (bestellsprache1 == "maltesisch") { bestellnr=173; }
if (bestellsprache1 == "deutsch-maltesisch") { bestellnr=373; }
if (bestellsprache1 == "marathi") { bestellnr=174; }
if (bestellsprache1 == "deutsch-marathi") { bestellnr=374; }
if (bestellsprache1 == "marokkanisch") { bestellnr=148; }
if (bestellsprache1 == "deutsch-marokkanisch") { bestellnr=348; }
if (bestellsprache1 == "mazedonisch") { bestellnr=175; }
if (bestellsprache1 == "deutsch-mazedonisch") { bestellnr=375; }
if (bestellsprache1 == "mexikanisch") { bestellnr=195; }
if (bestellsprache1 == "deutsch-mexikanisch") { bestellnr=395; }
if (bestellsprache1 == "mongolisch") { bestellnr=176; }
if (bestellsprache1 == "deutsch-mongolisch") { bestellnr=376; }
if (bestellsprache1 == "nepali") { bestellnr=177; }
if (bestellsprache1 == "deutsch-nepali") { bestellnr=377; }
if (bestellsprache1 == "niederlaendisch") { bestellnr=166; }
if (bestellsprache1 == "deutsch-niederlaendisch") { bestellnr=366; }
if (bestellsprache1 == "norwegisch") { bestellnr=145; }
if (bestellsprache1 == "deutsch-norwegisch") { bestellnr=345; }
if (bestellsprache1 == "pashto") { bestellnr=178; }
if (bestellsprache1 == "deutsch-pashto") { bestellnr=378; }
if (bestellsprache1 == "persisch") { bestellnr=147; }
if (bestellsprache1 == "deutsch-persisch") { bestellnr=347; }
if (bestellsprache1 == "polnisch") { bestellnr=169; }
if (bestellsprache1 == "deutsch-polnisch") { bestellnr=369; }
if (bestellsprache1 == "portugiesisch") { bestellnr=164; }
if (bestellsprache1 == "deutsch-portugiesisch") { bestellnr=364; }
if (bestellsprache1 == "punjabi") { bestellnr=179; }
if (bestellsprache1 == "deutsch-punjabi") { bestellnr=379; }
if (bestellsprache1 == "quechua") { bestellnr=180; }
if (bestellsprache1 == "deutsch-quechua") { bestellnr=380; }
if (bestellsprache1 == "rumaenisch") { bestellnr=144; }
if (bestellsprache1 == "deutsch-rumaenisch") { bestellnr=344; }
if (bestellsprache1 == "russisch") { bestellnr=155; }
if (bestellsprache1 == "deutsch-russisch") { bestellnr=355; }
if (bestellsprache1 == "schottisch") { bestellnr=181; }
if (bestellsprache1 == "deutsch-schottisch") { bestellnr=381; }
if (bestellsprache1 == "schwedisch") { bestellnr=165; }
if (bestellsprache1 == "deutsch-schwedisch") { bestellnr=365; }
if (bestellsprache1 == "serbisch") { bestellnr=158; }
if (bestellsprache1 == "deutsch-serbisch") { bestellnr=358; }
if (bestellsprache1 == "shanghaichinesisch") { bestellnr=107; }
if (bestellsprache1 == "deutsch-shanghaichinesisch") { bestellnr=307; }
if (bestellsprache1 == "singhalesisch") { bestellnr=182; }
if (bestellsprache1 == "deutsch-singhalesisch") { bestellnr=382; }
if (bestellsprache1 == "slowakisch") { bestellnr=142; }
if (bestellsprache1 == "deutsch-slowakisch") { bestellnr=342; }
if (bestellsprache1 == "slowenisch") { bestellnr=159; }
if (bestellsprache1 == "deutsch-slowenisch") { bestellnr=359; }
if (bestellsprache1 == "spanisch") { bestellnr=162; }
if (bestellsprache1 == "deutsch-spanisch") { bestellnr=362; }
if (bestellsprache1 == "suedamerika") { bestellnr=184; }
if (bestellsprache1 == "deutsch-suedamerika") { bestellnr=384; }
if (bestellsprache1 == "suaheli") { bestellnr=131; }
if (bestellsprache1 == "deutsch-suaheli") { bestellnr=331; }
if (bestellsprache1 == "syrisch") { bestellnr=183; }
if (bestellsprache1 == "deutsch-syrisch") { bestellnr=383; }
if (bestellsprache1 == "tamil") { bestellnr=185; }
if (bestellsprache1 == "deutsch-tamil") { bestellnr=385; }
if (bestellsprache1 == "thai") { bestellnr=186; }
if (bestellsprache1 == "deutsch-thai") { bestellnr=386; }
if (bestellsprache1 == "tschechisch") { bestellnr=170; }
if (bestellsprache1 == "deutsch-tschechisch") { bestellnr=370; }
if (bestellsprache1 == "tuerkisch") { bestellnr=152; }
if (bestellsprache1 == "deutsch-tuerkisch") { bestellnr=352; }
if (bestellsprache1 == "tunesisch") { bestellnr=125; }
if (bestellsprache1 == "deutsch-tunesisch") { bestellnr=325; }
if (bestellsprache1 == "ukrainisch") { bestellnr=187; }
if (bestellsprache1 == "deutsch-ukrainisch") { bestellnr=387; }
if (bestellsprache1 == "ungarisch") { bestellnr=151; }
if (bestellsprache1 == "deutsch-ungarisch") { bestellnr=351; }
if (bestellsprache1 == "urdu") { bestellnr=188; }
if (bestellsprache1 == "deutsch-urdu") { bestellnr=388; }
if (bestellsprache1 == "usbekisch") { bestellnr=189; }
if (bestellsprache1 == "deutsch-usbekisch") { bestellnr=389; }
if (bestellsprache1 == "vietnamesisch") { bestellnr=149; }
if (bestellsprache1 == "deutsch-vietnamesisch") { bestellnr=349; }
if (bestellsprache1 == "weissrussisch") { bestellnr=108; }
if (bestellsprache1 == "deutsch-weissrussisch") { bestellnr=308; }
if (bestellsprache1 == "wolof") { bestellnr=190; }
if (bestellsprache1 == "deutsch-wolof") { bestellnr=390; }




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; var f=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;}
  if (document.Formular.bestellnr7) { if (document.Formular.bestellnr7[1].checked) { f= document.Formular.bestellnr7[1].value; }} // Business zum Mitbestellen


  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)  { // Basis
	if (vpid=="upgrade01") { preis1=preis1-10; }  
	if (document.Formular.rabattsystem) {   
		if (document.Formular.rabattsystem.value=="minus10") { preis1=preis1-10; } 
	}
  }

  if (bestellnr>2000 && bestellnr<2999)  { // Aufbau
	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 (document.Formular.rabattsystem) {   
		if (document.Formular.rabattsystem.value=="minus10") { preis1=29.95; } 
	}
  }
  if (bestellnr>3000 && bestellnr<3999)  { // Basis+mp3
	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 (document.Formular.rabattsystem) {   
		if (document.Formular.rabattsystem.value=="minus10") { preis1=preis1-10; } 
	}
  }
  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)  { // Express
	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 (document.Formular.rabattsystem) {   
		if (document.Formular.rabattsystem.value=="minus10") { preis1=19.95; } 
	}
  }
  if (bestellnr>10000 && bestellnr<10999)  { // XL
    preis1=preis1+30-2.95; 
   	if (document.Formular.rabatt99) { 
   		if (document.Formular.rabatt99.value>2990) { preis1=29.95; } 
      		if (document.Formular.rabatt99.value=="express40") { preis1=47.00; } 
      		if (document.Formular.rabatt99.value=="express19") { preis1=47.00; } 
    	} 
	if (document.Formular.rabattsystem) {   
		if (document.Formular.rabattsystem.value=="minus10") { preis1=47.00; } 
	}
  }
  if (bestellnr>13000 && bestellnr<13999)  { // XXL
    preis1=87.00; 
    	if (document.Formular.rabatt99) { 
		if (document.Formular.rabatt99.value>2990) { preis1=29.95; } 
      		if (document.Formular.rabatt99.value=="express40") { preis1=47.00; } 
      		if (document.Formular.rabatt99.value=="express19") { preis1=47.00; } 
    	} 
	if (document.Formular.rabattsystem) {   
		if (document.Formular.rabattsystem.value=="minus10") { preis1=47.00; } 
	}
  }
  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; }

  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)  { // Wörterbuch
	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 (document.Formular.rabattsystem) {   
		if (document.Formular.rabattsystem.value=="minus10") { 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.value=="kinder40") { preis1=19.95; } 
      		if (document.Formular.rabatt99.value=="kinder19") { preis1=19.95; } 
    	} 
	if (document.Formular.rabattsystem) {   
		if (document.Formular.rabattsystem.value=="minus10") { preis1=19.95; } 
	}
  }
  
  if (bestellnr>28000 && bestellnr<28999)  { // Fachwo
	preis1=49.95; 
	if (document.Formular.rabattsystem) {   
		if (document.Formular.rabattsystem.value=="minus10") { preis1=39.95; } 
	}
  } 
  if (bestellnr>29000 && bestellnr<29999)  { // Business
	preis1=97.00; 
	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=47.00; } 
		if (document.Formular.rabatt99.value>9600) { preis1=97.00; } 
		if (document.Formular.rabatt99.value>9800) { preis1=97.00; } 
	} 
	if (document.Formular.rabattsystem) {   
		if (document.Formular.rabattsystem.value=="minus10") { preis1=47.00; } 
	}
  }


  if (bestellnr>30000 && bestellnr<30999)  { // Komplett
	preis1=97.00; 
	if (document.Formular.rabatt99) { 
		if (document.Formular.rabatt99.value>2990) { preis1=47.00; } 
		if (document.Formular.rabatt99.value>4990) { preis1=47.00; } 
      		if (document.Formular.rabatt99.value=="express40") { preis1=47.00; } 
      		if (document.Formular.rabatt99.value=="express19") { preis1=47.00; } 
	} 
	if (document.Formular.rabattsystem) {   
		if (document.Formular.rabattsystem.value=="minus10") { preis1=47.00; } 
	}
  }
  if (bestellnr>43000 && bestellnr<43999)  { preis1=29.95; }


  if (bestellnr>44000 && bestellnr<44999)  { // Familienpaket XXL
	preis1=107.00; 
    	if (document.Formular.rabatt99) { 
      		if (document.Formular.rabatt99.value=="kinder40") { preis1=67.00; } 
      		if (document.Formular.rabatt99.value=="kinder19") { preis1=67.00; } 
    	} 
	if (document.Formular.rabattsystem) {   
		if (document.Formular.rabattsystem.value=="minus10") { preis1=67.00; } 
	}
  }
  if (bestellnr>45000 && bestellnr<45999)  { // Familienpaket Komplett
	preis1=117.00; 
    	if (document.Formular.rabatt99) { 
      		if (document.Formular.rabatt99.value=="kinder40") { preis1=67.00; } 
      		if (document.Formular.rabatt99.value=="kinder19") { preis1=67.00; } 
    	}
	if (document.Formular.rabattsystem) {   
		if (document.Formular.rabattsystem.value=="minus10") { preis1=69.95; } 
	}
  }
  if (bestellnr>51000 && bestellnr<51999)  { preis1=97.00; }

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

  if (bestellnr>56000 && bestellnr<56999)  { 
    preis1=97.00; 
    if (document.Formular.rabatt98) { 
      if (document.Formular.rabatt98.value>2990) { preis1=29.95; } 
      if (document.Formular.rabatt98.value>4990) { preis1=47.00; } 
      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=47.00; } 
      if (document.Formular.rabatt98.value>9800) { preis1=97.00; } 
      if (document.Formular.rabatt98.value>14800) { preis1=147.00; } 
    } 
  }
  if (bestellnr>58000 && bestellnr<58999)  { // Das gesamte Sortiment
	preis1=197.00; 
	if (document.Formular.rabatt99) { 
		if (document.Formular.rabatt99.value==2995) { preis1=97.00; }
	} 
	if (document.Formular.rabattsystem) {   
		if (document.Formular.rabattsystem.value=="minus10") { preis1=97.00; } 
	}
  }
  if (bestellnr>59000 && bestellnr<59999)  { 
    preis1=97.00; 
    if (document.Formular.rabatt98) { 
      if (document.Formular.rabatt98.value>2990) { preis1=29.95; } 
      if (document.Formular.rabatt98.value>3990) { preis1=39.95; } 
      if (document.Formular.rabatt98.value>4990) { preis1=47.00; } 
      if (document.Formular.rabatt98.value>9600) { preis1=97.00; } 
      if (document.Formular.rabatt98.value>9800) { preis1=97.00; }
    } 
    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=47.00; } 
      if (document.Formular.rabatt99.value>9600) { preis1=97.00; } 
      if (document.Formular.rabatt99.value>9800) { preis1=97.00; }
    } 
  }

  if (bestellnr>61000 && bestellnr<61999)  { // Grammatiktrainer
	preis1=29.95; 
	if (document.Formular.rabatt99) { 
		if (document.Formular.rabatt99.value==1995) { preis1=19.95; }
		if (document.Formular.rabatt99.value==2995) { preis1=29.95; }
		if (document.Formular.rabatt99.value==3995) { preis1=39.95; }
		if (document.Formular.rabatt99.value==4995) { preis1=49.95; }
	} 
	if (document.Formular.rabattsystem) {   
		if (document.Formular.rabattsystem.value=="minus10") { preis1=19.95; } 
	}
  }

  if (bestellnr>62000 && bestellnr<62999)  { // 365
	preis1=297; 
  }

  if (bestellnr>63000 && bestellnr<63999)  { // 30t
	preis1=99; 
	if (document.Formular.rabatt99) { 

		if (document.Formular.rabatt99.value==27) { preis1=27; }
		if (document.Formular.rabatt99.value==37) { preis1=37; }
		if (document.Formular.rabatt99.value==47) { preis1=47; }
		if (document.Formular.rabatt99.value==57) { preis1=57; }
		if (document.Formular.rabatt99.value==67) { preis1=67; }
		if (document.Formular.rabatt99.value==77) { preis1=77; }
		if (document.Formular.rabatt99.value==87) { preis1=87; }
		if (document.Formular.rabatt99.value==97) { preis1=97; }

		if (document.Formular.rabatt99.value==2995) { preis1=29.95; }
		if (document.Formular.rabatt99.value==3995) { preis1=39.95; }
		if (document.Formular.rabatt99.value==4995) { preis1=49.95; }
		if (document.Formular.rabatt99.value==5995) { preis1=59.95; }
		if (document.Formular.rabatt99.value==6995) { preis1=69.95; }
		if (document.Formular.rabatt99.value==7995) { preis1=79.95; }
		if (document.Formular.rabatt99.value==8995) { preis1=89.95; }
		if (document.Formular.rabatt99.value==9900) { preis1=99.00; }
		if (document.Formular.rabatt99.value==9995) { preis1=99.95; }
	}
  }

  if (bestellnr>64000 && bestellnr<64999)  { // B365
	preis1=497; 
	if (document.Formular.rabatt99) { 
		if (document.Formular.rabatt99.value==297) { preis1=297; }
		if (document.Formular.rabatt99.value==397) { preis1=397; }
		if (document.Formular.rabatt99.value==397) { preis1=497; }
		if (document.Formular.rabatt99.value==299) { preis1=299; }
		if (document.Formular.rabatt99.value==399) { preis1=399; }
		if (document.Formular.rabatt99.value==499) { preis1=499; }
	}
  }


  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=49.95; 
    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.value>3990) { preis1=39.95; } 
      if (document.Formular.rabatt99.value>4990) { preis1=49.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;
 mitbestellnr[6] =f;

for (ax=1;ax<7;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) + 40; } // Fach
  if (mitbestellnr[ax]>0 && mitbestellnr[ax]>29000 && mitbestellnr[ax]<29999) { preis1=(preis1*1) + 47; } // Business
  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]>61000 && mitbestellnr[ax]<61999) { preis1=(preis1*1) + 20; } // Grammatiktrainer
  if (mitbestellnr[ax]>0 && mitbestellnr[ax]>85000 && mitbestellnr[ax]<99999) { preis1=(preis1*1) + 40; } // 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; 
    }
  }  

  if (document.Formular.deutschmitbestellenbestellnr) { 
	if (document.Formular.deutschmitbestellenbestellnr[1].checked) { 
		preis1=(preis1*1) + document.Formular.deutschmitbestellenpreis.value*1; 
  	}
  } // Deutschkurse zum Mitbestellen

  
  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);
}


