// JavaScript Document
function sFr_Euro()
{
var pruefung = true;
if(document.Formular.sFr.value.length==0)
pruefung=true;
var EU = (document.Formular.sFr.value)/1.2223;
EU=parseInt(EU*10000+0.50)/10000;
document.Formular.Euro.value=EU;
}

function Euro_sFr()
{
var pruefung = true;
if(document.Formulare.Euro2.value.length==0)
pruefung=true;
var sFr = (document.Formulare.Euro2.value)*1.1903; 
sfr=parseInt(sFr*100+0.50)/100;
document.Formulare.sFr2.value=sFr; 
}



 function Ergebnis() 
 {   
   var x = 0;
   x = eval(window.document.Rechner.Display.value);
   window.document.Rechner.Display.value = x;    
 } 
 function Hinzufuegen(Zeichen) 
 {   
  window.document.Rechner.Display.value = 
  window.document.Rechner.Display.value + Zeichen;    
 }
 function Sonderfunktion(Funktion) 
 {   
  if(Funktion == "sqrt")    
   {
     var x = 0;     
     x = eval(window.document.Rechner.Display.value);
     window.document.Rechner.Display.value = Math.sqrt(x);   	
   }
   if(Funktion == "pow")    
   {     
     var x = 0;
     x = eval(window.document.Rechner.Display.value);
     window.document.Rechner.Display.value = x * x;   	
   }   
   if(Funktion == "log")
   {     
     var x = 0;     
     x = eval(window.document.Rechner.Display.value);
     window.document.Rechner.Display.value = Math.log(x);   	
   } 
}
