function Punkte()
{ var a1=0;
  var b1=0; 
  var c1=0;
  var d1=0; 
  var e1=0;
  var f1=0; 
  var g1=0;
  var h1=0; 
  var k1=0;
  var m1=0;
   
  a=parseFloat(window.document.wert[0].value.replace(/,/,"."));
  b=parseFloat(window.document.wert[1].value.replace(/,/,"."));
  c=parseFloat(window.document.wert[2].value.replace(/,/,"."));
  d=parseFloat(window.document.wert[3].value.replace(/,/,"."));
  e=parseFloat(window.document.wert[4].value.replace(/,/,"."));

  pointt(25.4348,18,1.81,a)
  a1=punkte; 
  pointf(90.5674,2.2,1.4,b)
  b1=punkte; 
  pointf(51.39,1.5,1.05,c)
  c1=punkte; 
  pointf(585.65,0.75,1.42,d)
  d1=punkte; 
  pointt(1.53775,82,1.81,e)
  e1=punkte; 

  if (a==0) 
    a1=0;
  if (b==0) 
    b1=0;
  if (c==0) 
    c1=0;
  if (d==0) 
    d1=0;
  if (e==0) 
    e1=0;

  if (a>18) 
    a1=0;
  if (b<2.2) 
    b1=0;
  if (c<1.5) 
    c1=0;
  if (d<0.75) 
    d1=0;
  if (e>82) 
    e1=0;

  tag1=a1+b1+c1+d1+e1;
 
  window.document.wert.erst.value=tag1;

  f=parseFloat(window.document.wert[5].value.replace(/,/,"."));
  g=parseFloat(window.document.wert[6].value.replace(/,/,"."));
  h=parseFloat(window.document.wert[7].value.replace(/,/,"."));
  k=parseFloat(window.document.wert[8].value.replace(/,/,"."));
  m=parseFloat(window.document.wert[9].value.replace(/,/,"."));
  m2=parseFloat(window.document.wert[10].value.replace(/,/,"."));
  m3=parseFloat(window.document.wert[11].value.replace(/,/,"."));

  pointt(5.74354,28.5,1.92,f)
  f1=punkte; 
  pointf(12.91,4,1.1,g)
  g1=punkte; 
  pointf(140.182,1,1.35,h)
  h1=punkte; 
  pointf(10.14,7,1.08,k)
  k1=punkte;
  em=m*60+m2+(m3/100);
  pointt(0.03768,480,1.85,em)
  m1=punkte; 

  if (f==0) 
    f1=0;
  if (g==0) 
    g1=0;
  if (h==0) 
    h1=0;
  if (k==0) 
    k1=0;
  if (m==0) 
    m1=0;

  if (f>28.5) 
    f1=0;
  if (g<4) 
    g1=0;
  if (h<1) 
    h1=0;
  if (k<10.14) 
    k1=0;
  if (em>480) 
    m1=0;

  tag2=parseInt(f1+g1+h1+k1+m1);

  window.document.wert.zwei.value=tag2;

  window.document.wert.gesamt.value=tag2+tag1

 }

function checkinput() 
 
{x=0;
while (x<12) 
{
if  (window.document.wert[x].value=="")
    {(window.document.wert[x].value=0)}
x=x+1;}
}

function pointt (ah,be,ce,m)
{
punkte= parseInt( ah*Math.exp(ce*Math.log(be-m)) );
}

function pointf (ah,be,ce,m)
{
punkte= parseInt( ah*Math.exp(ce*Math.log(m-be)) );
}
