function showlang(ID){
  var myObj = document.getElementById(ID);
  myObj.style.visibility="visible";
}
function hide(ID){
  var myObj = document.getElementById(ID);
    myObj.style.visibility="hidden";
}
function showonly(ID){
  document.getElementById('a1000').style.visibility="hidden";
  document.getElementById('a1000o').style.color ="#1E3D4A";
  document.getElementById('a2000').style.visibility="hidden";
  document.getElementById('a2000o').style.color ="#1E3D4A";
  document.getElementById('a3000').style.visibility="hidden";
  document.getElementById('a3000o').style.color ="#1E3D4A";
  document.getElementById('a4000').style.visibility="hidden";
  document.getElementById('a4000o').style.color ="#1E3D4A";
  document.getElementById('a5000').style.visibility="hidden";
  document.getElementById('a5000o').style.color ="#1E3D4A";
  var myObj = document.getElementById(ID);
  myObj.style.visibility="visible";
  document.getElementById(ID+'o').style.color ="#B3C5C4";
}
function overpaleblue(ID){
  document.getElementById(ID).style.color = "#B3C5C4";
}
function outpaleblue(ID, ID2){
if(document.getElementById(ID2).style.visibility != 'visible')
document.getElementById(ID).style.color = "#FFFFFF";
}
function activate(ID){
  var myObj = document.getElementById(ID);
  if(myObj.src.substring(myObj.src.length - 8) != "_akt.gif")
    myObj.src = myObj.src.replace(/.gif/g, "_akt.gif");
}
function deactivate(ID){
  var myObj = document.getElementById(ID);
    myObj.src = myObj.src.replace(/_akt.gif/g, ".gif");
}

function UnCryptMailto(s, shift) {
	var n=0;
	var r="";
	for(var i=0;i<s.length;i++) { 
		n=s.charCodeAt(i); 
		if (n>=8364) {n = 128;}
		r += String.fromCharCode(n-(shift)); 
	}
	return r;
}

function linkTo_UnCryptMailto(s, shift)	{
	location.href=UnCryptMailto(s, shift);
}

  function chkFormular () {
    if (document.Formular.Firma.value == "" || document.Formular.Strasse.value == ""  || document.Formular.PLZ.value == ""  || document.Formular.Ort.value == "" 
     || document.Formular.Vorname.value == ""  || document.Formular.Zuname.value == ""  || document.Formular.Telefon.value == "" 
     || document.Formular.Mail.value == ""  || document.Formular.Nachricht.value == "") {
      alert("Bitte füllen Sie alle mit * gekennzeichneten Felder aus");
      return false;
  	}
	else
	{
  	  alert("E-Mail erfolgreich versendet");
	}
  }
