function checkText(entry) {
  var val = entry.value + "";
  val = val.replace(/ */, "");
  if (val.length > 0)  { return true; }
  entry.focus();
  entry.select();
  alert("Dieses Feld darf nicht leer sein.");
  return false;
}
function checkMail(entry){
 var val = entry.value + "";
  val = val.replace(/ */, "");
if (val.indexOf('@') != -1) { return true; }
entry.focus();
entry.select();
alert("Die eingegebene Mailadresse ist ungültig !");
return false;
}

function oeffnen_ortsplan(bild,breite,hoehe,titel) {
posLeft=250;
posTop=100;
tb=breite;
th=hoehe;
bb=breite;
bh=hoehe;
var w = (screen.width / 2) - (bb / 2);
posLeft=w;


	newWindow = window.open("","newWindow", "width="+bb+", height="+bh+", left="+posLeft+", top="+posTop+", toolbar=no,status=no,scrollbars=no,resizable=no,menubar=no");
	newWindow.document.open();
	newWindow.document.write('<html><title>'+titel+'</title><body style="margin:0;background-color:123D8F">'); 
	newWindow.document.write('<img src='+bild+' width='+breite+' height='+hoehe+' alt="Deutschkreutz">'); 
	
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}


function check_kontakt(){
 if (document.f.Nachricht.value == "")       {
             alert ("Bitte geben Sie eine Nachricht  ein!");
             document.f.Nachricht.focus();
             return false;    }      
 if (document.f.Name.value == "")       {
             alert ("Bitte geben Sie Ihren Namen  ein!");
             document.f.Name.focus();
             return false;             }

if(document.f.Email.value ==""){
	alert ("Bitte geben Sie Ihre Mailadresse ein!");
		document.f.Email.focus();             
		return false;
             }
if(document.f.Email.value.indexOf('@') == -1) {
   alert("Bitte geben Sie eine gültige Mailadresse ein!");
   document.f.Email.focus();
   return false;
  }
        return true;
        }

 function zoomen(bild) {
 window.location.href = "#top";
document.getElementById("bildg").src = bild;

}
function zeigen(){
document.getElementById("hauptbild").style.visibility = "visible";
}


