//BITTE IN DREAMWEAVER NICHT MIT 2 ZEILENABSTAND �FFNEN!!!!!!!!!

function bifocal_enable(auge)
{
 if (auge=="Rechts")
 {
  if (document.Formular.BiR.checked==true) document.Formular.BiR1.disabled=false;
  else document.Formular.BiR1.disabled=true;
 }
 if (auge=="Links")
 {
  if (document.Formular.BiL.checked==true) document.Formular.BiL1.disabled=false;
  else document.Formular.BiL1.disabled=true;
 }
}

	/**
	 * Returns the bifocal price addtion for the spheric glass. If there is no valid spheric data, this function returns 0.
	 *
	 * @param float fSphericValue -> value of the spheric glass
	 * @return int
	 */
	function getSphericalPriceAddition(fSphericValue) {
		//differentiating of the spheric value for the addition
		if ((fSphericValue >= -2.00) && (fSphericValue <= 2))        return 130-59;
		else if ((fSphericValue >= -4.00) && (fSphericValue <= 4))   return 140-59;
		else if ((fSphericValue >= -6.00) && (fSphericValue <= 6))   return 150-67;
		else if ((fSphericValue >= -8.00) && (fSphericValue <= 8))   return 165-77;
		else if ((fSphericValue >= -10.00) && (fSphericValue <= 10)) return 180-87;
		else return 0;//end - differentiating of the spheric value for the addition
	}//end - function getSphericalPriceAddition(fSphericValue)

	/**
	 * returns the combined value of cylinder and spheric as the spheric value for the rest of the calculation
	 *
	 * @param float fCylinderValue     -> value of the cylinder
	 * @param float fSphericValue      -> spheric value
	 * @return float;
	 */
	function getSphericValue(fCylinderValue,  fSphericValue) {
		if (((fCylinderValue < 0) && (fSphericValue > 0)) || ((fCylinderValue > 0) && (fSphericValue < 0))) {
			fSphericValue = fSphericValue * 1 + fCylinderValue;
		}
		return fSphericValue;
	}//end - function getSphericValue(fCylinderValue, fSphericValue)

	/**
	 * function getShippingCosts(iPrice, iValueId)
	 *
	 * Get shipping costs relative to the price and the shipping id. If the price is bigger than 150, this function will return 0.
	 *
	 * @param int iPrice
	 * @param int iValueId -> Id of the Shipping
	 * @return int
	 */
	function getShippingCosts(iPrice, iValueId) {
		if (iPrice) {
			if (iValueId == 1) return 12.90;
			else if (iValueId == 2) {
/**
 * kundenwunsch vom 18.04.2008
				if (iPrice < 150) {
					return 5.95;
				}
				return 0;
*/
				return 5.95;
			}
			else {
				alert('Bitte benutzen Sie das vorgegebene Men&uuml;.');
				return 0;
			}
		} else return 0;
	}//end - function getShippingCosts(iPrice, iValueId)

function Check_Input()
{
 if (document.Formular.augabs.value=="")
 {
  alert("Bitte �berpr�fen Sie Ihre Eingabe auf Vollst�ndigkeit.");
  document.Formular.augabs.focus();
  return false;
 }
 else if (document.Formular.name.value=="")
 {
  alert("Bitte �berpr�fen Sie Ihre Eingabe auf Vollst�ndigkeit.");
  document.Formular.name.focus();
  return false;
 }
 else if (document.Formular.strasse.value=="")
 {
  alert("Bitte �berpr�fen Sie Ihre Eingabe auf Vollst�ndigkeit.");
  document.Formular.strasse.focus();
  return false;
 }
 else if (document.Formular.plz.value=="")
 {
  alert("Bitte �berpr�fen Sie Ihre Eingabe auf Vollst�ndigkeit.");
  document.Formular.plz.focus();
  return false;
 }
 else if (document.Formular.tel.value=="")
 {
  alert("Bitte �berpr�fen Sie Ihre Eingabe auf Vollst�ndigkeit.");
  document.Formular.tel.focus();
  return false;
 }
 else return true;
}

function show_tauchm(idx)
{
 document.getElementById("tauchmaske").firstChild.data=document.Formular.Tauchbrille[idx].value;

 if (document.Formular.Tauchbrille[0].checked==true)
 {
  document.Formular.PreisTb.value=0;
 }
 // Splendive II von Tusa
 else if (document.Formular.Tauchbrille[9].checked==true)
 {
  document.Formular.PreisTb.value=65;
 }
 // Splendive IV von Tusa
 else if (document.Formular.Tauchbrille[1].checked==true)
 {
  document.Formular.PreisTb.value=66;
 }
 // Liberator+ von Tusa
 else if (document.Formular.Tauchbrille[2].checked==true)
 {
  document.Formular.PreisTb.value=60;
 }
 // TM 6000 von Tusa
 else if (document.Formular.Tauchbrille[3].checked==true)
 {
  document.Formular.PreisTb.value=65;
 }
 // Platina von Tusa
 else if (document.Formular.Tauchbrille[4].checked==true)
 {
  document.Formular.PreisTb.value=62;
 }
 // Big Eyes von Cressi-su
 else if (document.Formular.Tauchbrille[5].checked==true)
 {
  document.Formular.PreisTb.value=65;
 }
 // Focus von Cressi-sub
 else if (document.Formular.Tauchbrille[6].checked==true)
 {
  document.Formular.PreisTb.value=55;
 }
 // Minima von Cressi-sub
 else if (document.Formular.Tauchbrille[7].checked==true)
 {
  document.Formular.PreisTb.value=55;
 }
 // Selene von Tusa
 else if (document.Formular.Tauchbrille[8].checked==true)
 {
  document.Formular.PreisTb.value=65;
 }
 // Eigene Maske
 else if (document.Formular.Tauchbrille[10].checked==true)
 {
  document.Formular.PreisTb.value=65;
 }

 //VISIO TRI-EX - 11
 else if (document.Formular.Tauchbrille[11].checked == true) {
 	document.Formular.PreisTb.value = 65;
 }

 //Cressi Matrix - 12
 else if (document.Formular.Tauchbrille[12].checked == true) {
 	document.Formular.PreisTb.value = 60;
 }

 //Cressi Penta - 13
 else if (document.Formular.Tauchbrille[13].checked == true) {
 	document.Formular.PreisTb.value = 60;
 }

 //Cressi Superacchio - 14
 else if (document.Formular.Tauchbrille[14].checked == true) {
 	document.Formular.PreisTb.value = 55;
 }

 //Atomic Aquatics SubFrame - 15
 else if (document.Formular.Tauchbrille[15].checked == true) {
 	document.Formular.PreisTb.value = 95;
 }

 //Atomic Aquatics Frameless - 16
 else if (document.Formular.Tauchbrille[16].checked == true) {
 	document.Formular.PreisTb.value = 89;
 }
}

function calc()
{
 //Alle Preise
 //Preis Sph�re Links
 var preis_SpL=0;
 //Preis Sph�re Rechts
 var preis_SpR=0;
 //Preis Bifocal Links
 var preis_BiL=0;
 //Preis Bifocal Rechts
 var preis_BiR=0;
 //Preis Sattelschliff L
 var preis_SattL=36;
 //Preis Sattelschliff R
 var preis_SattR=36;
 var preis_SpL_CyL=0;
 var preis_SpR_CyR=0;

 //Sp�riche Gl�ser Links
 if ((document.Formular.SpL.value==0) && (document.Formular.SpL.value==0) && (document.Formular.CyL.value==0)) preis_SpL=0;
 if (((document.Formular.SpL.value<=2) && (document.Formular.SpL.value!=0)&& (document.Formular.CyL.value==0)) || ((document.Formular.SpL.value>=(-2)) && (document.Formular.SpL.value!=0) && (document.Formular.CyL.value==0))) preis_SpL = (document.Formular.BiL.checked) ? 130 : 59;
 if (((document.Formular.SpL.value>2) && (document.Formular.SpL.value<=4) && (document.Formular.CyL.value==0)) || ((document.Formular.SpL.value<(-2)) && (document.Formular.SpL.value>=(-4)) && (document.Formular.CyL.value==0))) preis_SpL = (document.Formular.BiL.checked) ? 140 : 59;
 if (((document.Formular.SpL.value>4) && (document.Formular.SpL.value<=6) && (document.Formular.CyL.value==0)) || ((document.Formular.SpL.value<(-4)) && (document.Formular.SpL.value>=(-6)) && (document.Formular.CyL.value==0))) preis_SpL = (document.Formular.BiL.checked) ? 150 : 67;
 if (((document.Formular.SpL.value>6) && (document.Formular.SpL.value<=8) && (document.Formular.CyL.value==0)) || ((document.Formular.SpL.value<(-6)) && (document.Formular.SpL.value>=(-8)) && (document.Formular.CyL.value==0))) preis_SpL = (document.Formular.BiL.checked) ? 165 : 77;
 if (((document.Formular.SpL.value>8) && (document.Formular.SpL.value<=10) && (document.Formular.CyL.value==0)) || ((document.Formular.SpL.value<(-8)) && (document.Formular.SpL.value>=(-10)) && (document.Formular.CyL.value==0))) preis_SpL = (document.Formular.BiL.checked) ? 180 : 87;

 //Sp�riche Gl�ser Rechts
 if ((document.Formular.SpL.value==0) && (document.Formular.SpR.value==0) && (document.Formular.CyR.value==0))  preis_SpR=0;
 if (((document.Formular.SpR.value<=2) && (document.Formular.SpR.value!=0) && (document.Formular.CyR.value==0)) || ((document.Formular.SpR.value>=(-2)) && (document.Formular.SpR.value!=0) && (document.Formular.CyR.value==0))) preis_SpR = (document.Formular.BiR.checked) ? 130 : 59;
 if (((document.Formular.SpR.value>2) && (document.Formular.SpR.value<=4) && (document.Formular.CyR.value==0)) || ((document.Formular.SpR.value<(-2)) && (document.Formular.SpR.value>=(-4)) && (document.Formular.CyR.value==0))) preis_SpR = (document.Formular.BiR.checked) ? 140 : 59;
 if (((document.Formular.SpR.value>4) && (document.Formular.SpR.value<=6) && (document.Formular.CyR.value==0)) || ((document.Formular.SpR.value<(-4)) && (document.Formular.SpR.value>=(-6)) && (document.Formular.CyR.value==0))) preis_SpR = (document.Formular.BiR.checked) ? 150 : 67;
 if (((document.Formular.SpR.value>6) && (document.Formular.SpR.value<=8) && (document.Formular.CyR.value==0)) || ((document.Formular.SpR.value<(-6)) && (document.Formular.SpR.value>=(-8)) && (document.Formular.CyR.value==0))) preis_SpR = (document.Formular.BiR.checked) ? 165 : 77;
 if (((document.Formular.SpR.value>8) && (document.Formular.SpR.value<=10) && (document.Formular.CyR.value==0)) || ((document.Formular.SpR.value<(-8)) && (document.Formular.SpR.value>=(-10)) && (document.Formular.CyR.value==0))) preis_SpR = (document.Formular.BiR.checked) ? 180 : 87;

 //Sp�riche Gl�ser und Cylinder Links
 //Beide Positive
 if ((document.Formular.SpL.value>=0) && (document.Formular.CyL.value>0))
 {
  //Sph�re +2
  if ((document.Formular.SpL.value>=0) && (document.Formular.SpL.value<=2) && (document.Formular.CyL.value>0) && (document.Formular.CyL.value<=2)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 150 : 69;
  if ((document.Formular.SpL.value>2) && (document.Formular.SpL.value<=4) && (document.Formular.CyL.value>0) && (document.Formular.CyL.value<=2)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 165 : 74;
  if ((document.Formular.SpL.value>4) && (document.Formular.SpL.value<=6) && (document.Formular.CyL.value>0) && (document.Formular.CyL.value<=2)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 180 : 85;
  if ((document.Formular.SpL.value>6) && (document.Formular.SpL.value<=8) && (document.Formular.CyL.value>0) && (document.Formular.CyL.value<=2)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 195 : 99;
  if ((document.Formular.SpL.value>8) && (document.Formular.SpL.value<=10) && (document.Formular.CyL.value>0) && (document.Formular.CyL.value<=2)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 205 : 125;

  //Sph�re +4
  if ((document.Formular.SpL.value>=0) && (document.Formular.SpL.value<=2) && (document.Formular.CyL.value>2) && (document.Formular.CyL.value<=4)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 165 : 82;
  if ((document.Formular.SpL.value>2) && (document.Formular.SpL.value<=4) && (document.Formular.CyL.value>2) && (document.Formular.CyL.value<=4)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 180 : 87;
  if ((document.Formular.SpL.value>4) && (document.Formular.SpL.value<=6) && (document.Formular.CyL.value>2) && (document.Formular.CyL.value<=4)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 195 : 105;
  if ((document.Formular.SpL.value>6) && (document.Formular.CyL.value>2) && (document.Formular.CyL.value<=4))
  {
   alert("Ung�ltige Eingabe");
   preis_SpL_CyL=0;
  }
 }

 //Beide Nagative
 if ((document.Formular.SpL.value<=0) && (document.Formular.CyL.value<0))
 {
  var CyL_SpL=eval(document.Formular.SpL.value+document.Formular.CyL.value);

  if ((document.Formular.CyL.value>=-2) && (document.Formular.CyL.value<0))
  {
   if (CyL_SpL>10)
   {
    alert("Linkes Glas auf Anfrage!\nE-Mail an info@pingel-optik.de");
   }
   else
   {
    if ((CyL_SpL>0) && (CyL_SpL<=2)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 150 : 69;
    if ((CyL_SpL>2) && (CyL_SpL<=4)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 165 : 74;
    if ((CyL_SpL>4) && (CyL_SpL<=6)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 180 : 85;
    if ((CyL_SpL>6) && (CyL_SpL<=8)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 195 : 99;
    if ((CyL_SpL>8) && (CyL_SpL<=10)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 205 : 125;

	if ((CyL_SpL>=-2) && (CyL_SpL<0)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 150 : 69;
    if ((CyL_SpL>=-4) && (CyL_SpL<-2)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 165 : 74;
    if ((CyL_SpL>=-6) && (CyL_SpL<-4)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 180 : 85;
    if ((CyL_SpL>=-8) && (CyL_SpL<-6)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 195 : 99;
    if ((CyL_SpL>=-10) && (CyL_SpL<-8)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 205 : 125;
   }
  }
  if ((document.Formular.CyL.value>=-4) && (document.Formular.CyL.value<-2))
  {
   if (CyL_SpL>6)
   {
    alert("Linkes Glas auf Anfrage!\nE-Mail an info@pingel-optik.de");
   }
   else
   {
    if ((CyL_SpL>0) && (CyL_SpL<=2)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 165 : 82;
    if ((CyL_SpL>2) && (CyL_SpL<=4)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 180 : 87;
    if ((CyL_SpL>4) && (CyL_SpL<=6)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 195 : 105;

	if ((CyL_SpL>=-2) && (CyL_SpL<0)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 165 : 82;
    if ((CyL_SpL>=-4) && (CyL_SpL<-2)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 180 : 87;
    if ((CyL_SpL>=-6) && (CyL_SpL<-4)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 195 : 105;
   }
  }
 }

 //Cylinder positive, Sph�re negative
 if ((document.Formular.SpL.value<0) && (document.Formular.CyL.value>0))
 {
  if (Math.abs(document.Formular.SpL.value)>=document.Formular.CyL.value)
  {
   //Sph�re +2
   if ((document.Formular.SpL.value>=-2) && (document.Formular.SpL.value<0) && (document.Formular.CyL.value>0) && (document.Formular.CyL.value<=2)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 150 : 69;
   if ((document.Formular.SpL.value>=-4) && (document.Formular.SpL.value<-2) && (document.Formular.CyL.value>0) && (document.Formular.CyL.value<=2)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 165 : 74;
   if ((document.Formular.SpL.value>=-6) && (document.Formular.SpL.value<-4) && (document.Formular.CyL.value>0) && (document.Formular.CyL.value<=2)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 180 : 85;
   if ((document.Formular.SpL.value>=-8) && (document.Formular.SpL.value<-6) && (document.Formular.CyL.value>0) && (document.Formular.CyL.value<=2)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 195 : 99;
   if ((document.Formular.SpL.value>=-10) && (document.Formular.SpL.value<-8) && (document.Formular.CyL.value>0) && (document.Formular.CyL.value<=2)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 205 : 125;

   //Sph�re +4
   if ((document.Formular.SpL.value>=-2) && (document.Formular.SpL.value<0) && (document.Formular.CyL.value>2) && (document.Formular.CyL.value<=4)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 165 : 82;
   if ((document.Formular.SpL.value>=-4) && (document.Formular.SpL.value<-2) && (document.Formular.CyL.value>2) && (document.Formular.CyL.value<=4)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 180 : 87;
   if ((document.Formular.SpL.value>=-6) && (document.Formular.SpL.value<-4) && (document.Formular.CyL.value>2) && (document.Formular.CyL.value<=4)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 195 : 105;
   if ((document.Formular.SpL.value<-6) && (document.Formular.CyL.value>2) && (document.Formular.CyL.value<=4))
   {
    alert("Ung�ltige Eingabe");
    preis_SpL_CyL=0;
   }
  }
  if (Math.abs(document.Formular.SpL.value)<document.Formular.CyL.value)
  {
   //Sph�re +2
   if ((document.Formular.SpL.value>=-2) && (document.Formular.SpL.value<0) && (document.Formular.CyL.value>0) && (document.Formular.CyL.value<=2)) preis_SpL_CyL = eval(preis_SattL + (document.Formular.BiL.checked) ? 150 : 69);
   if ((document.Formular.SpL.value>=-4) && (document.Formular.SpL.value<-2) && (document.Formular.CyL.value>0) && (document.Formular.CyL.value<=2)) preis_SpL_CyL = eval(preis_SattL + (document.Formular.BiL.checked) ? 165 : 74);
   if ((document.Formular.SpL.value>=-6) && (document.Formular.SpL.value<-4) && (document.Formular.CyL.value>0) && (document.Formular.CyL.value<=2)) preis_SpL_CyL = eval(preis_SattL + (document.Formular.BiL.checked) ? 180 : 85);
   if ((document.Formular.SpL.value>=-8) && (document.Formular.SpL.value<-6) && (document.Formular.CyL.value>0) && (document.Formular.CyL.value<=2)) preis_SpL_CyL = eval(preis_SattL + (document.Formular.BiL.checked) ? 195 : 99);
   if ((document.Formular.SpL.value>=-10) && (document.Formular.SpL.value<-8) && (document.Formular.CyL.value>0) && (document.Formular.CyL.value<=2)) preis_SpL_CyL = eval(preis_SattL + (document.Formular.BiL.checked) ? 205 : 125);

   //Sph�re +4
   if ((document.Formular.SpL.value>=-2) && (document.Formular.SpL.value<0) && (document.Formular.CyL.value>2) && (document.Formular.CyL.value<=4)) preis_SpL_CyL = eval(preis_SattL + (document.Formular.BiL.checked) ? 165 : 82);
   if ((document.Formular.SpL.value>=-4) && (document.Formular.SpL.value<-2) && (document.Formular.CyL.value>2) && (document.Formular.CyL.value<=4)) preis_SpL_CyL = eval(preis_SattL + (document.Formular.BiL.checked) ? 180 : 87);
   if ((document.Formular.SpL.value>=-6) && (document.Formular.SpL.value<-4) && (document.Formular.CyL.value>2) && (document.Formular.CyL.value<=4)) preis_SpL_CyL = eval(preis_SattL + (document.Formular.BiL.checked) ? 195 : 105);
   if ((document.Formular.SpL.value<-6) && (document.Formular.CyL.value>2) && (document.Formular.CyL.value<=4))
   {
    alert("Ung�ltige Eingabe");
    preis_SpL_CyL=0;
   }
  }
 }

 //Cylinder negative, Sph�re positive
 if ((document.Formular.SpL.value>0) && (document.Formular.CyL.value<0))
 {
  var CyL_SpL=eval(document.Formular.SpL.value+document.Formular.CyL.value);

  if (document.Formular.SpL.value>Math.abs(document.Formular.CyL.value))
  {
   if ((document.Formular.CyL.value>=-2) && (document.Formular.CyL.value<0))
   {
    if (CyL_SpL>10)
	{
	 alert("Linkes Glas auf Anfrage!\nE-Mail an info@pingel-optik.de");
	}
    else
    {
	 if ((CyL_SpL>0) && (CyL_SpL<=2)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 150 : 69;
     if ((CyL_SpL>2) && (CyL_SpL<=4)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 165 : 74;
     if ((CyL_SpL>4) && (CyL_SpL<=6)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 180 : 85;
     if ((CyL_SpL>6) && (CyL_SpL<=8)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 195 : 99;
     if ((CyL_SpL>8) && (CyL_SpL<=10)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 205 : 125;

	 if ((CyL_SpL>=-2) && (CyL_SpL<0)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 150 : 69;
     if ((CyL_SpL>=-4) && (CyL_SpL<-2)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 165 : 74;
     if ((CyL_SpL>=-6) && (CyL_SpL<-4)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 180 : 85;
     if ((CyL_SpL>=-8) && (CyL_SpL<-6)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 195 : 99;
     if ((CyL_SpL>=-10) && (CyL_SpL<-8)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 205 : 125;
	}
   }
   if ((document.Formular.CyL.value>=-4) && (document.Formular.CyL.value<-2))
   {
    if (CyL_SpL>6)
	{
	 alert("Linkes Glas auf Anfrage!\nE-Mail an info@pingel-optik.de");
	}
    else
    {
	 if ((CyL_SpL>0) && (CyL_SpL<=2)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 165 : 82;
     if ((CyL_SpL>2) && (CyL_SpL<=4)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 180 : 87;
     if ((CyL_SpL>4) && (CyL_SpL<=6)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 195 : 105;

	 if ((CyL_SpL>=-2) && (CyL_SpL<0)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 165 : 82;
     if ((CyL_SpL>=-4) && (CyL_SpL<-2)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 180 : 87;
     if ((CyL_SpL>=-6) && (CyL_SpL<-4)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 195 : 105;
	}
   }
  }
  //???
  if (document.Formular.SpL.value==Math.abs(document.Formular.CyL.value))
  {
   if ((document.Formular.CyL.value>=-2) && (document.Formular.CyL.value<0)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 150 : 67;

   if ((document.Formular.CyL.value>=-4) && (document.Formular.CyL.value<-2)) preis_SpL_CyL = (document.Formular.BiL.checked) ? 165 : 77;
  }

  if (document.Formular.SpL.value<Math.abs(document.Formular.CyL.value))
  {
   if ((document.Formular.CyL.value>=-2) && (document.Formular.CyL.value<0))
   {
    if (CyL_SpL>10)
    {
     alert("Linkes Glas auf Anfrage!\nE-Mail an info@pingel-optik.de");
    }
    else
    {
	 if ((CyL_SpL>0) && (CyL_SpL<=2)) preis_SpL_CyL = eval(preis_SattL + (document.Formular.BiL.checked) ? 150 : 69);
     if ((CyL_SpL>2) && (CyL_SpL<=4)) preis_SpL_CyL = eval(preis_SattL + (document.Formular.BiL.checked) ? 165 : 74);
     if ((CyL_SpL>4) && (CyL_SpL<=6)) preis_SpL_CyL = eval(preis_SattL + (document.Formular.BiL.checked) ? 180 : 85);
     if ((CyL_SpL>6) && (CyL_SpL<=8)) preis_SpL_CyL = eval(preis_SattL + (document.Formular.BiL.checked) ? 195 : 99);
     if ((CyL_SpL>8) && (CyL_SpL<=10)) preis_SpL_CyL = eval(preis_SattL + (document.Formular.BiL.checked) ? 205 : 125);

	 if ((CyL_SpL>=-2) && (CyL_SpL<0)) preis_SpL_CyL = eval(preis_SattL + (document.Formular.BiL.checked) ? 150 : 69);
     if ((CyL_SpL>=-4) && (CyL_SpL<-2)) preis_SpL_CyL = eval(preis_SattL + (document.Formular.BiL.checked) ? 165 : 74);
     if ((CyL_SpL>=-6) && (CyL_SpL<-4)) preis_SpL_CyL = eval(preis_SattL + (document.Formular.BiL.checked) ? 180 : 85);
     if ((CyL_SpL>=-8) && (CyL_SpL<-6)) preis_SpL_CyL = eval(preis_SattL + (document.Formular.BiL.checked) ? 195 : 99);
     if ((CyL_SpL>=-10) && (CyL_SpL<-8)) preis_SpL_CyL = eval(preis_SattL + (document.Formular.BiL.checked) ? 205 : 125);
	}
   }
   if ((document.Formular.CyL.value>=-4) && (document.Formular.CyL.value<-2))
   {
    if (CyL_SpL>6)
    {
     alert("Linkes Glas auf Anfrage!\nE-Mail an info@pingel-optik.de");
    }
    else
    {
	 if ((CyL_SpL>0) && (CyL_SpL<=2)) preis_SpL_CyL = eval(preis_SattL + (document.Formular.BiL.checked) ? 165 : 82);
     if ((CyL_SpL>2) && (CyL_SpL<=4)) preis_SpL_CyL = eval(preis_SattL + (document.Formular.BiL.checked) ? 180 : 87);
     if ((CyL_SpL>4) && (CyL_SpL<=6)) preis_SpL_CyL = eval(preis_SattL + (document.Formular.BiL.checked) ? 195 : 105);

	 if ((CyL_SpL>=-2) && (CyL_SpL<0)) preis_SpL_CyL = eval(preis_SattL + (document.Formular.BiL.checked) ? 165 : 82);
     if ((CyL_SpL>=-4) && (CyL_SpL<-2)) preis_SpL_CyL = eval(preis_SattL + (document.Formular.BiL.checked) ? 180 : 87);
     if ((CyL_SpL>=-6) && (CyL_SpL<-4)) preis_SpL_CyL = eval(preis_SattL + (document.Formular.BiL.checked) ? 195 : 105);
	}
   }
  }
 }
 //------------------------------------------------------------------

 //Sp�riche Gl�ser und Cylinder Rechts
 //Beide Positive
 if ((document.Formular.SpR.value>=0) && (document.Formular.CyR.value>0))
 {
  //Sph�re +2
  if ((document.Formular.SpR.value>=0) && (document.Formular.SpR.value<=2) && (document.Formular.CyR.value>0) && (document.Formular.CyR.value<=2)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 150 : 69;
  if ((document.Formular.SpR.value>2) && (document.Formular.SpR.value<=4) && (document.Formular.CyR.value>0) && (document.Formular.CyR.value<=2)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 165 : 74;
  if ((document.Formular.SpR.value>4) && (document.Formular.SpR.value<=6) && (document.Formular.CyR.value>0) && (document.Formular.CyR.value<=2)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 180 : 85;
  if ((document.Formular.SpR.value>6) && (document.Formular.SpR.value<=8) && (document.Formular.CyR.value>0) && (document.Formular.CyR.value<=2)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 195 : 99;
  if ((document.Formular.SpR.value>8) && (document.Formular.SpR.value<=10) && (document.Formular.CyR.value>0) && (document.Formular.CyR.value<=2)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 205 : 125;

  //Sph�re +4
  if ((document.Formular.SpR.value>=0) && (document.Formular.SpR.value<=2) && (document.Formular.CyR.value>2) && (document.Formular.CyR.value<=4)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 165 : 82;
  if ((document.Formular.SpR.value>2) && (document.Formular.SpR.value<=4) && (document.Formular.CyR.value>2) && (document.Formular.CyR.value<=4)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 180 : 87;
  if ((document.Formular.SpR.value>4) && (document.Formular.SpR.value<=6) && (document.Formular.CyR.value>2) && (document.Formular.CyR.value<=4)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 195 : 105;
  if ((document.Formular.SpR.value>6) && (document.Formular.CyR.value>2) && (document.Formular.CyR.value<=4))
  {
   alert("Ung�ltige Eingabe");
   preis_SpR_CyR=0;
  }
 }

 //Beide Nagative
 if ((document.Formular.SpR.value<=0) && (document.Formular.CyR.value<0))
 {
  var CyR_SpR=eval(document.Formular.SpR.value+document.Formular.CyR.value);

  if ((document.Formular.CyR.value>=-2) && (document.Formular.CyR.value<0))
  {
   if (CyR_SpR>10)
   {
    alert("Rechtes Glas auf Anfrage!\nE-Mail an info@pingel-optik.de");
   }
   else
   {
    if ((CyR_SpR>0) && (CyR_SpR<=2)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 150 : 69;
    if ((CyR_SpR>2) && (CyR_SpR<=4)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 165 : 74;
    if ((CyR_SpR>4) && (CyR_SpR<=6)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 180 : 85;
    if ((CyR_SpR>6) && (CyR_SpR<=8)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 195 : 99;
    if ((CyR_SpR>8) && (CyR_SpR<=10)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 205 : 125;

	if ((CyR_SpR>=-2) && (CyR_SpR<0)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 150 : 69;
    if ((CyR_SpR>=-4) && (CyR_SpR<-2)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 165 : 74;
    if ((CyR_SpR>=-6) && (CyR_SpR<-4)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 180 : 85;
    if ((CyR_SpR>=-8) && (CyR_SpR<-6)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 195 : 99;
    if ((CyR_SpR>=-10) && (CyR_SpR<-8)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 205 : 125;
   }
  }
  if ((document.Formular.CyR.value>=-4) && (document.Formular.CyR.value<-2))
  {
   if (CyR_SpR>6)
   {
    alert("Rechtes Glas auf Anfrage!\nE-Mail an info@pingel-optik.de");
   }
   else
   {
    if ((CyR_SpR>0) && (CyR_SpR<=2)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 165 : 82;
    if ((CyR_SpR>2) && (CyR_SpR<=4)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 180 : 87;
    if ((CyR_SpR>4) && (CyR_SpR<=6)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 195 : 105;

	if ((CyR_SpR>=-2) && (CyR_SpR<0)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 165 : 82;
    if ((CyR_SpR>=-4) && (CyR_SpR<-2)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 180 : 87;
    if ((CyR_SpR>=-6) && (CyR_SpR<-4)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 195 : 105;
   }
  }
 }

 //CyRinder positive, Sph�re negative
 if ((document.Formular.SpR.value<0) && (document.Formular.CyR.value>0))
 {
  if (Math.abs(document.Formular.SpR.value)>=document.Formular.CyR.value)
  {
   //Sph�re +2
   if ((document.Formular.SpR.value>=-2) && (document.Formular.SpR.value<0) && (document.Formular.CyR.value>0) && (document.Formular.CyR.value<=2)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 150 : 69;
   if ((document.Formular.SpR.value>=-4) && (document.Formular.SpR.value<-2) && (document.Formular.CyR.value>0) && (document.Formular.CyR.value<=2)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 165 : 74;
   if ((document.Formular.SpR.value>=-6) && (document.Formular.SpR.value<-4) && (document.Formular.CyR.value>0) && (document.Formular.CyR.value<=2)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 180 : 85;
   if ((document.Formular.SpR.value>=-8) && (document.Formular.SpR.value<-6) && (document.Formular.CyR.value>0) && (document.Formular.CyR.value<=2)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 195 : 99;
   if ((document.Formular.SpR.value>=-10) && (document.Formular.SpR.value<-8) && (document.Formular.CyR.value>0) && (document.Formular.CyR.value<=2)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 205 : 125;

   //Sph�re +4
   if ((document.Formular.SpR.value>=-2) && (document.Formular.SpR.value<0) && (document.Formular.CyR.value>2) && (document.Formular.CyR.value<=4)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 165 : 82;
   if ((document.Formular.SpR.value>=-4) && (document.Formular.SpR.value<-2) && (document.Formular.CyR.value>2) && (document.Formular.CyR.value<=4)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 180 : 87;
   if ((document.Formular.SpR.value>=-6) && (document.Formular.SpR.value<-4) && (document.Formular.CyR.value>2) && (document.Formular.CyR.value<=4)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 195 : 105;
   if ((document.Formular.SpR.value<-6) && (document.Formular.CyR.value>2) && (document.Formular.CyR.value<=4))
   {
    alert("Ung�ltige Eingabe");
    preis_SpR_CyR=0;
   }
  }
  if (Math.abs(document.Formular.SpR.value)<document.Formular.CyR.value)
  {
   //Sph�re +2
   if ((document.Formular.SpR.value>=-2) && (document.Formular.SpR.value<0) && (document.Formular.CyR.value>0) && (document.Formular.CyR.value<=2)) preis_SpR_CyR = eval(preis_SattR + (document.Formular.BiR.checked) ? 150 : 69);
   if ((document.Formular.SpR.value>=-4) && (document.Formular.SpR.value<-2) && (document.Formular.CyR.value>0) && (document.Formular.CyR.value<=2)) preis_SpR_CyR = eval(preis_SattR + (document.Formular.BiR.checked) ? 165 : 74);
   if ((document.Formular.SpR.value>=-6) && (document.Formular.SpR.value<-4) && (document.Formular.CyR.value>0) && (document.Formular.CyR.value<=2)) preis_SpR_CyR = eval(preis_SattR + (document.Formular.BiR.checked) ? 180 : 85);
   if ((document.Formular.SpR.value>=-8) && (document.Formular.SpR.value<-6) && (document.Formular.CyR.value>0) && (document.Formular.CyR.value<=2)) preis_SpR_CyR = eval(preis_SattR + (document.Formular.BiR.checked) ? 195 : 99);
   if ((document.Formular.SpR.value>=-10) && (document.Formular.SpR.value<-8) && (document.Formular.CyR.value>0) && (document.Formular.CyR.value<=2)) preis_SpR_CyR = eval(preis_SattR + (document.Formular.BiR.checked) ? 205 : 125);

   //Sph�re +4
   if ((document.Formular.SpR.value>=-2) && (document.Formular.SpR.value<0) && (document.Formular.CyR.value>2) && (document.Formular.CyR.value<=4)) preis_SpR_CyR = eval(preis_SattR + (document.Formular.BiR.checked) ? 165 : 82);
   if ((document.Formular.SpR.value>=-4) && (document.Formular.SpR.value<-2) && (document.Formular.CyR.value>2) && (document.Formular.CyR.value<=4)) preis_SpR_CyR = eval(preis_SattR + (document.Formular.BiR.checked) ? 180 : 87);
   if ((document.Formular.SpR.value>=-6) && (document.Formular.SpR.value<-4) && (document.Formular.CyR.value>2) && (document.Formular.CyR.value<=4)) preis_SpR_CyR = eval(preis_SattR + (document.Formular.BiR.checked) ? 195 : 105);
   if ((document.Formular.SpR.value<-6) && (document.Formular.CyR.value>2) && (document.Formular.CyR.value<=4))
   {
    alert("Ung�ltige Eingabe");
    preis_SpR_CyR=0;
   }
  }
 }

 //CyRinder negative, Sph�re positive
 if ((document.Formular.SpR.value>0) && (document.Formular.CyR.value<0))
 {
  var CyR_SpR=eval(document.Formular.SpR.value+document.Formular.CyR.value);

  if (document.Formular.SpR.value>Math.abs(document.Formular.CyR.value))
  {
   if ((document.Formular.CyR.value>=-2) && (document.Formular.CyR.value<0))
   {
    if (CyR_SpR>10)
	{
	 alert("Rechtes Glas auf Anfrage!\nE-Mail an info@pingel-optik.de");
	}
    else
    {
	 if ((CyR_SpR>0) && (CyR_SpR<=2)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 150 : 69;
     if ((CyR_SpR>2) && (CyR_SpR<=4)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 165 : 74;
     if ((CyR_SpR>4) && (CyR_SpR<=6)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 180 : 85;
     if ((CyR_SpR>6) && (CyR_SpR<=8)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 195 : 99;
     if ((CyR_SpR>8) && (CyR_SpR<=10)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 205 : 125;

	 if ((CyR_SpR>=-2) && (CyR_SpR<0)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 150 : 69;
     if ((CyR_SpR>=-4) && (CyR_SpR<-2)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 165 : 74;
     if ((CyR_SpR>=-6) && (CyR_SpR<-4)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 180 : 85;
     if ((CyR_SpR>=-8) && (CyR_SpR<-6)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 195 : 99;
     if ((CyR_SpR>=-10) && (CyR_SpR<-8)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 205 : 125;
	}
   }
   if ((document.Formular.CyR.value>=-4) && (document.Formular.CyR.value<-2))
   {
    if (CyR_SpR>6)
	{
	 alert("Rechtes Glas auf Anfrage!\nE-Mail an info@pingel-optik.de");
	}
    else
    {
	 if ((CyR_SpR>0) && (CyR_SpR<=2)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 165 : 82;
     if ((CyR_SpR>2) && (CyR_SpR<=4)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 180 : 87;
     if ((CyR_SpR>4) && (CyR_SpR<=6)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 195 : 105;

	 if ((CyR_SpR>=-2) && (CyR_SpR<0)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 165 : 82;
     if ((CyR_SpR>=-4) && (CyR_SpR<-2)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 180 : 87;
     if ((CyR_SpR>=-6) && (CyR_SpR<-4)) preis_SpR_CyR = (document.Formular.BiR.checked) ? 195 : 105;
	}
   }
  }
  //???
  if (document.Formular.SpR.value==Math.abs(document.Formular.CyR.value))
  {
   if ((document.Formular.CyR.value>=-2) && (document.Formular.CyR.value<0)) preis_SpR_CyR=67;

   if ((document.Formular.CyR.value>=-4) && (document.Formular.CyR.value<-2)) preis_SpR_CyR=77;
  }

  if (document.Formular.SpR.value<Math.abs(document.Formular.CyR.value))
  {
   if ((document.Formular.CyR.value>=-2) && (document.Formular.CyR.value<0))
   {
    if (CyR_SpR>10)
    {
     alert("Rechtes Glas auf Anfrage!\nE-Mail an info@pingel-optik.de");
    }
    else
    {
	 if ((CyR_SpR>0) && (CyR_SpR<=2)) preis_SpR_CyR = eval(preis_SattR + (document.Formular.BiR.checked) ? 150 : 69);
     if ((CyR_SpR>2) && (CyR_SpR<=4)) preis_SpR_CyR = eval(preis_SattR + (document.Formular.BiR.checked) ? 165 : 74);
     if ((CyR_SpR>4) && (CyR_SpR<=6)) preis_SpR_CyR = eval(preis_SattR + (document.Formular.BiR.checked) ? 180 : 85);
     if ((CyR_SpR>6) && (CyR_SpR<=8)) preis_SpR_CyR = eval(preis_SattR + (document.Formular.BiR.checked) ? 195 : 99);
     if ((CyR_SpR>8) && (CyR_SpR<=10)) preis_SpR_CyR = eval(preis_SattR + (document.Formular.BiR.checked) ? 205 : 125);

	 if ((CyR_SpR>=-2) && (CyR_SpR<0)) preis_SpR_CyR = eval(preis_SattR + (document.Formular.BiR.checked) ? 150 : 69);
     if ((CyR_SpR>=-4) && (CyR_SpR<-2)) preis_SpR_CyR = eval(preis_SattR + (document.Formular.BiR.checked) ? 165 : 74);
     if ((CyR_SpR>=-6) && (CyR_SpR<-4)) preis_SpR_CyR = eval(preis_SattR + (document.Formular.BiR.checked) ? 180 : 85);
     if ((CyR_SpR>=-8) && (CyR_SpR<-6)) preis_SpR_CyR = eval(preis_SattR + (document.Formular.BiR.checked) ? 195 : 99);
     if ((CyR_SpR>=-10) && (CyR_SpR<-8)) preis_SpR_CyR = eval(preis_SattR + (document.Formular.BiR.checked) ? 205 : 125);
	}
   }
   if ((document.Formular.CyR.value>=-4) && (document.Formular.CyR.value<-2))
   {
    if (CyR_SpR>6)
    {
     alert("Rechtes Glas auf Anfrage!\nE-Mail an info@pingel-optik.de");
    }
    else
    {
	 if ((CyR_SpR>0) && (CyR_SpR<=2)) preis_SpR_CyR = eval(preis_SattR + (document.Formular.BiR.checked) ? 165 : 82);
     if ((CyR_SpR>2) && (CyR_SpR<=4)) preis_SpR_CyR = eval(preis_SattR + (document.Formular.BiR.checked) ? 180 : 87);
     if ((CyR_SpR>4) && (CyR_SpR<=6)) preis_SpR_CyR = eval(preis_SattR + (document.Formular.BiR.checked) ? 195 : 105);

	 if ((CyR_SpR>=-2) && (CyR_SpR<0)) preis_SpR_CyR = eval(preis_SattR + (document.Formular.BiR.checked) ? 165 : 82);
     if ((CyR_SpR>=-4) && (CyR_SpR<-2)) preis_SpR_CyR = eval(preis_SattR + (document.Formular.BiR.checked) ? 180 : 87);
     if ((CyR_SpR>=-6) && (CyR_SpR<-4)) preis_SpR_CyR = eval(preis_SattR + (document.Formular.BiR.checked) ? 195 : 105);
	}
   }
  }
 }
 //------------------------------------------------------------------

//preis_BiR = getBifocalAddition(document.Formular.BiR.checked, document.Formular.CyR.value, getSphericValue(document.Formular.CyR.value, document.Formular.SpR.value));
//preis_BiL = getBifocalAddition(document.Formular.BiL.checked, document.Formular.CyL.value, getSphericValue(document.Formular.CyL.value, document.Formular.SpL.value));

 document.Formular.PreisL.value=eval(preis_SpL+preis_SpL_CyL+preis_BiL);
 document.Formular.PreisR.value=eval(preis_SpR+preis_SpR_CyR+preis_BiR);

 //Tauchbrille, wenn irgenwelche Tauchbrille dazu kommt, hier eintragen und Index nicht vergessen, sonst kaka
 // Look von Technisub
 if (document.Formular.Tauchbrille[0].checked==true)
 {
  preis_Brille=0;
  document.Formular.Tauchbrille_Preis.value=0;
 }
 // Splendive II von Tusa
 else if (document.Formular.Tauchbrille[9].checked==true)
 {
  preis_Brille=65;
  document.Formular.Tauchbrille_Preis.value=65;
 }
 // Splendive IV von Tusa
 else if (document.Formular.Tauchbrille[1].checked==true)
 {
  preis_Brille=66;
  document.Formular.Tauchbrille_Preis.value=66;
 }
 // Liberator+ von Tusa
 else if (document.Formular.Tauchbrille[2].checked==true)
 {
  preis_Brille=60;
  document.Formular.Tauchbrille_Preis.value=60;
 }
 // TM 6000 von Tusa
 else if (document.Formular.Tauchbrille[3].checked==true)
 {
  preis_Brille=65;
  document.Formular.Tauchbrille_Preis.value=65;
 }
 // Platina von Tusa
 else if (document.Formular.Tauchbrille[4].checked==true)
 {
  preis_Brille=62;
  document.Formular.Tauchbrille_Preis.value=62;
 }
 // Big Eyes von Cressi-su
 else if (document.Formular.Tauchbrille[5].checked==true)
 {
  preis_Brille=65;
  document.Formular.Tauchbrille_Preis.value=65;
 }
 // Focus von Cressi-sub
 else if (document.Formular.Tauchbrille[6].checked==true)
 {
  preis_Brille=55;
  document.Formular.Tauchbrille_Preis.value=55;
 }
 // Minima von Cressi-sub
 else if (document.Formular.Tauchbrille[7].checked==true)
 {
  preis_Brille=55;
  document.Formular.Tauchbrille_Preis.value=55;
 }
 // Selene von Tusa
 else if (document.Formular.Tauchbrille[8].checked==true)
 {
  preis_Brille=65;
  document.Formular.Tauchbrille_Preis.value=65;
 }
 // Eigene Maske
 else if (document.Formular.Tauchbrille[10].checked==true)
 {
  preis_Brille=65;
  document.Formular.Tauchbrille_Preis.value=65;
 }

  //VISIO TRI-EX - 11
 else if (document.Formular.Tauchbrille[11].checked==true)
 {
  preis_Brille=65;
  document.Formular.Tauchbrille_Preis.value=65;
 }

 //Cressi Matrix - 12
 else if (document.Formular.Tauchbrille[12].checked==true)
 {
  preis_Brille=60;
  document.Formular.Tauchbrille_Preis.value=60;
 }

 //Cressi Penta - 13
 else if (document.Formular.Tauchbrille[13].checked==true)
 {
  preis_Brille=60;
  document.Formular.Tauchbrille_Preis.value=60;
 }

 //Cressi Superacchio - 14
 else if (document.Formular.Tauchbrille[14].checked==true)
 {
  preis_Brille=55;
  document.Formular.Tauchbrille_Preis.value=55;
 }

 //Atomic Aquatics SubFrame - 15
 else if (document.Formular.Tauchbrille[15].checked==true)
 {
  preis_Brille=95;
  document.Formular.Tauchbrille_Preis.value=95;
 }

 //Atomic Aquatics Frameless - 16
 else if (document.Formular.Tauchbrille[16].checked==true)
 {
  preis_Brille=89;
  document.Formular.Tauchbrille_Preis.value=89;
 }

 if ((document.Formular.PreisL.value==0) && (document.Formular.PreisR.value==0))
 {
  document.Formular.preis.value=eval(preis_Brille + getShippingCosts(preis_Brille, 														document.Formular.iShipping.options[document.Formular.iShipping.selectedIndex].value));
 }
 else
 {
  var iCompletePriceWithoutShip = eval(preis_SpL+preis_SpL_CyL+preis_BiL+preis_SpR+preis_SpR_CyR+preis_BiR+preis_Brille);
  document.Formular.preis.value = iCompletePriceWithoutShip + getShippingCosts(iCompletePriceWithoutShip, 														document.Formular.iShipping.options[document.Formular.iShipping.selectedIndex].value);
 }
}