function MM_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

function emailcheck(cur)
{
var string1=cur.from.value
if (string1.indexOf("@")==-1) {
	alert("deine eMail Adresse sieht komisch aus!")
	return false
}
}

function gone()
{
location=document.getElementById('jumpy').menuing.options[document.getElementById('jumpy').menuing.selectedIndex].value
}
function gonea()
{
location=document.getElementById('jumpya').menuinga.options[document.getElementById('jumpya').menuinga.selectedIndex].value
}
function goneb()
{
location=document.getElementById('jumpyb').menuingb.options[document.getElementById('jumpyb').menuingb.selectedIndex].value
}
function gonec()
{
location=document.getElementById('jumpyc').menuingc.options[document.getElementById('jumpyc').menuingc.selectedIndex].value
}
function goned()
{
location=document.getElementById('jumpyd').menuingd.options[document.getElementById('jumpyd').menuingd.selectedIndex].value
}
function gonee()
{
location=document.getElementById('jumpye').menuinge.options[document.getElementById('jumpye').menuinge.selectedIndex].value
}
function gonef()
{
location=document.getElementById('jumpyf').menuingf.options[document.getElementById('jumpyf').menuingf.selectedIndex].value
}
function shutDown() {
	self.close();
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function SpamCheck() 
{
	if (document.getElementById('aufnahme').d_Plz.value=="") {
		alert("Bitte auch Postleitzahl (PLZ) angeben")
		return false
	}
	if (document.getElementById('aufnahme').Ort.value=="") {
		alert("Bitte auch Ort angeben")
		return false
	}
	document.getElementById('aufnahme').Geburtsdatum.value = document.getElementById('aufnahme').Geburtsdatum.value.toUpperCase();
	if (document.getElementById('aufnahme').Geburtsdatum.value=="YYYYMMDD") {
		alert("Bitte Geburtsdatum angeben")
		return false
	}
	if (document.getElementById('aufnahme').Geburtsdatum.value=="") {
		alert("Bitte Geburtsdatum angeben")
		return false
	}
	if (document.getElementById('aufnahme').r_Name.value>"" & document.getElementById('aufnahme').r_Name.value==document.getElementById('aufnahme').r_Vorname.value) {
		alert("Wir lieben SPAM! Deine Anfrage wurde an die Internetpolizei weitergeleitet")
		return false
	}
	if (document.getElementById('aufnahme').r_Name.value>"" & document.getElementById('aufnahme').r_Name.value==document.getElementById('aufnahme').Ort.value) {
		alert("Wir lieben SPAM! Deine Anfrage wurde an die Internetpolizei weitergeleitet")
		return false
	}
	if (document.getElementById('aufnahme').r_Vorname.value>"" & document.getElementById('aufnahme').r_Vorname.value==document.getElementById('aufnahme').Ort.value) {
		alert("Wir lieben SPAM! Deine Anfrage wurde an die Internetpolizei weitergeleitet")
		return false
	}
	if (document.getElementById('aufnahme').Telefon_P.value=="123456") {
		alert("Wir lieben SPAM! Deine Anfrage wurde an die Internetpolizei weitergeleitet")
		return false
	}
	if (document.getElementById('aufnahme').Telefon_P.value=="123456") {
		alert("Wir lieben SPAM! Deine Anfrage wurde an die Internetpolizei weitergeleitet")
		return false
	}
	if (document.getElementById('aufnahme').Telefon_G.value=="123456") {
		alert("Wir lieben SPAM! Deine Anfrage wurde an die Internetpolizei weitergeleitet")
		return false
	}
	if (document.getElementById('aufnahme').Telefon_M.value=="123456") {
		alert("Wir lieben SPAM! Deine Anfrage wurde an die Internetpolizei weitergeleitet")
		return false
	}
	var string = document.getElementById('aufnahme').Message.value;
	var result = string.match(/href/i);

	if (result) {
		alert("Wir lieben SPAM! aaa Deine Anfrage wurde an die Internetpolizei weitergeleitet")
		return false
	}
}
