		function sM(theId){
			
			aktMeta=document.getElementById("mM" + theId)
			
			document.getElementById("content").innerHTML=""
			if(document.getElementById("content2"))document.getElementById("content2").innerHTML=""
			document.getElementById("extra").innerHTML=""
			
			if(aktMeta.style.display=="")aktMeta.style.display="none"
			else aktMeta.style.display=""
			
			if(theId==1)document.getElementById("mM2").style.display="none"
			else document.getElementById("mM1").style.display="none"
		
		}
		
		
		function openPU(theUrl, theWidth, theHeight){
	 		shaWindow=window.open(theUrl,'mediawindow', 'width=' + theWidth + ', height=' + theHeight + ', topmargin=0, scrollbars=no')
		}
		
		function calcIt(){
			aktFrm=document.calcFrm
			strError=""
			
			
			
			
			aktAlphaliege=0
			aktBetriebskosten=0
			anzBen=0
			anzOef=0
			anzGeb=0
			if(aktFrm.alpha[0].checked==false && aktFrm.alpha[1].checked==false && aktFrm.alpha[2].checked==false)strError+="Bitte eine AlphaShere auswählen!\n"
			
			
			// update currency
			if(aktFrm.alpha[0].checked==true){
				aktAlphaliege=Math.round(16500*aktCurrValue)
				aktBetriebskosten=Math.round(500*aktCurrValue)
			}
			if(aktFrm.alpha[1].checked==true){
				aktAlphaliege=Math.round(29000*aktCurrValue)
				aktBetriebskosten=Math.round(1000*aktCurrValue)
			}
			if(aktFrm.alpha[2].checked==true){
				aktAlphaliege=Math.round(57000*aktCurrValue)
				aktBetriebskosten=Math.round(2000*aktCurrValue)
			}
			// update currency
			
			
			
			
			anzBen=aktFrm.anzBen.value
			anzOef=aktFrm.anzOef.value
			anzGeb=aktFrm.anzGeb.value
			
			if(anzBen=="" || anzBen<0 || (anzBen/anzBen!=1 && anzBen!=0))strError+="Bitte eine gültige tägliche Benutzeranzahl angeben!\n"
			if(anzOef=="" || anzOef<0 || (anzOef/anzOef!=1 && anzOef!=0))strError+="Bitte eine gültige Anzhal an Öffnungstagen angeben!\n"
			if(anzGeb=="" || anzGeb<0 || (anzGeb/anzGeb!=1 && anzGeb!=0))strError+="Bitte eine gültige Gebühr (€) angeben!\n"
			
			if (strError==""){
				document.getElementById('einMon').innerHTML=anzBen*anzOef*anzGeb
				document.getElementById('betrMon').innerHTML=aktBetriebskosten
				document.getElementById('reinMon').innerHTML=(anzBen*anzOef*anzGeb)-aktBetriebskosten
				document.getElementById('amMon').innerHTML=Math.round(aktAlphaliege/((anzBen*anzOef*anzGeb)-aktBetriebskosten))
				document.getElementById('rein1Jahr').innerHTML=((anzBen*anzOef*anzGeb)-aktBetriebskosten)*12-aktAlphaliege
				document.getElementById('rein2Jahr').innerHTML=((anzBen*anzOef*anzGeb)-aktBetriebskosten)*24-aktAlphaliege
				document.getElementById('rein3Jahr').innerHTML=((anzBen*anzOef*anzGeb)-aktBetriebskosten)*36-aktAlphaliege
			}
			else alert(strError)
		}
		
		aktCurrValue=1
		
		function calcItEng(){
			aktFrm=document.calcFrm
			strError=""
			
			
			
			
			aktAlphaliege=0
			aktBetriebskosten=0
			anzBen=0
			anzOef=0
			anzGeb=0
			if(aktFrm.alpha[0].checked==false && aktFrm.alpha[1].checked==false && aktFrm.alpha[2].checked==false)strError+="Please choose an Alphasphere!\n"
			
			
			// update currency
			if(aktFrm.alpha[0].checked==true){
				aktAlphaliege=Math.round(16500*aktCurrValue)
				aktBetriebskosten=Math.round(500*aktCurrValue)
			}
			if(aktFrm.alpha[1].checked==true){
				aktAlphaliege=Math.round(29000*aktCurrValue)
				aktBetriebskosten=Math.round(1000*aktCurrValue)
			}
			if(aktFrm.alpha[2].checked==true){
				aktAlphaliege=Math.round(57000*aktCurrValue)
				aktBetriebskosten=Math.round(2000*aktCurrValue)
			}
			// update currency
			
			
			
			anzBen=aktFrm.anzBen.value
			anzOef=aktFrm.anzOef.value
			anzGeb=aktFrm.anzGeb.value
			
			if(anzBen=="" || anzBen<0 || (anzBen/anzBen!=1 && anzBen!=0))strError+="Please insert a correct Alpha user amount!\n"
			if(anzOef=="" || anzOef<0 || (anzOef/anzOef!=1 && anzOef!=0))strError+="Please insert a correct Open Days amount!\n"
			if(anzGeb=="" || anzGeb<0 || (anzGeb/anzGeb!=1 && anzGeb!=0))strError+="Please instert a correct Fee (€)!\n"
			
			if (strError==""){
				document.getElementById('einMon').innerHTML=anzBen*anzOef*anzGeb
				document.getElementById('betrMon').innerHTML=aktBetriebskosten
				document.getElementById('reinMon').innerHTML=(anzBen*anzOef*anzGeb)-aktBetriebskosten
				document.getElementById('amMon').innerHTML=Math.round(aktAlphaliege/((anzBen*anzOef*anzGeb)-aktBetriebskosten))
				document.getElementById('rein1Jahr').innerHTML=((anzBen*anzOef*anzGeb)-aktBetriebskosten)*12-aktAlphaliege
				document.getElementById('rein2Jahr').innerHTML=((anzBen*anzOef*anzGeb)-aktBetriebskosten)*24-aktAlphaliege
				document.getElementById('rein3Jahr').innerHTML=((anzBen*anzOef*anzGeb)-aktBetriebskosten)*36-aktAlphaliege
			}
			else alert(strError)
		}
		
		function mehr(){
			document.getElementById('content').innerHTML=document.getElementById('fCont2').innerHTML
			document.getElementById('content2').style.display="none"
		}
		
		function zurueck(){
			document.getElementById('content').innerHTML=document.getElementById('fCont').innerHTML
			document.getElementById('content2').style.display=""
		}	
		
		function wE(psTr, asTr, tsTr, fStr){
	
			var string1 = psTr;
			var string2 = "@";
			var string3 = asTr;
			var string4 = tsTr;
			var string5 = fStr;
			if (string5=="")document.write("<a href='" + "mail" + "to:" + string1 + string2 + string3 + "." +  string4 + "'>" + string1 + string2 + string3 + "." + string4 + "</a>");
			else document.write("<a href='" + "mail" + "to:" + string1 + string2 + string3 + "." +  string4 + "'>" +  string5 + "</a>");
			return false;
		}
		
		// update currency
		function changeCurrency(tValue){
		
			aktFrm=document.calcFrm
			
			document.getElementById('einMon').innerHTML="---"
			document.getElementById('betrMon').innerHTML="---"
			document.getElementById('reinMon').innerHTML="---"
			document.getElementById('amMon').innerHTML="---"
			document.getElementById('rein1Jahr').innerHTML="---"
			document.getElementById('rein2Jahr').innerHTML="---"
			document.getElementById('rein3Jahr').innerHTML="---"
		
			if(tValue=="EUR"){
				aktCurrValue=1
				document.getElementById('contAvrValue').innerHTML=25*aktCurrValue + " &euro;"
				document.getElementById('contRMValue').innerHTML="&euro;"
				document.getElementById('contOKValue').innerHTML="&euro;"
			}
			if(tValue=="USD"){
				aktCurrValue=shaCurrencyUSD
				document.getElementById('contAvrValue').innerHTML=Math.round(25*aktCurrValue) + " $"
				document.getElementById('contRMValue').innerHTML="$"
				document.getElementById('contOKValue').innerHTML="$"
			}
			if(tValue=="JPY"){
				aktCurrValue=shaCurrencyJPY
				document.getElementById('contAvrValue').innerHTML=Math.round(25*aktCurrValue) + " &#165;"
				document.getElementById('contRMValue').innerHTML="&#165;"
				document.getElementById('contOKValue').innerHTML="&#165;"
			}
			if(tValue=="GBP"){
				aktCurrValue=shaCurrencyGBP
				document.getElementById('contAvrValue').innerHTML=Math.round(25*aktCurrValue) + " &pound;"
				document.getElementById('contRMValue').innerHTML="&pound;"
				document.getElementById('contOKValue').innerHTML="&pound;"
			}
			if(tValue=="CHF"){
				aktCurrValue=shaCurrencyCHF
				document.getElementById('contAvrValue').innerHTML=Math.round(25*aktCurrValue) + " CHF"
				document.getElementById('contRMValue').innerHTML="CHF"
				document.getElementById('contOKValue').innerHTML="CHF"
			}
			
			aktFrm.anzGeb.value=Math.round(25*aktCurrValue)
		}
		// update currency
		
		
		
		
		