function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}

function openmaxwindow() { //v2.0
	if (self != top) {
	top.location=self.location;
	}
	self.moveTo(0,0);
	self.resizeTo(screen.availWidth,screen.availHeight);
	self.focus();
	}

// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header

function printWindow(){
   bV = parseInt(navigator.appVersion)
   if (bV >= 4) window.print()
}

function open_printwindow(theURL,winName,features) {
  popupWin =  window.open(theURL,'printform','width=795,height=540,scrollbars=yes,toolbars=no,menubar=no,resizable=no')
}

function chkFormular(){
		if(document.bestell.name.value == "")  {
   		alert("Bitte Ihren Namen eingeben!");
   		document.bestell.name.focus();
   		return false;
  		}
		if(document.bestell.vorname.value == "")  {
   		alert("Bitte Ihren Vornamen eingeben!");
   		document.bestell.vorname.focus();
   		return false;
  		}
		if(document.bestell.strasse.value == "") {
   		alert("Bitte Ihre Straße eingeben!");
   		document.bestell.strasse.focus();
   		return false;
  		}
		if(document.bestell.ort.value == "") {
   		alert("Bitte Ihren Wohnort eingeben!");
   		document.bestell.ort.focus();
   		return false;
  		}
		if(document.bestell.plz.value == "") {
   		alert("Bitte Ihre PLZ eingeben!");
   		document.bestell.plz.focus();
   		return false;
  		}
 		var chkZ = 1;
 		for(i=0;i<document.bestell.plz.value.length;++i)
   		if(document.bestell.plz.value.charAt(i) < "0"
   		|| document.bestell.plz.value.charAt(i) > "9")
     		chkZ = -1;
 		if(chkZ == -1) {
   		alert("Keine gültige PLZ!");
   		document.bestell.plz.focus();
   		return false
  		}
		if(document.bestell.email.value == "") {
   		alert("Bitte Ihre E-Mail-Adresse eingeben!");
   		document.bestell.email.focus();
   		return false;
  		}
 		if(document.bestell.email.value.indexOf('@') == -1) {
   		alert("Eingabe ist keine gültige E-Mail-Adresse!");
   		document.bestell.email.focus();
   		return false;
  		}
}

function chkSupport(){
		if(document.support.name.value == "")  {
   		alert("Bitte Ihren Namen eingeben!");
   		document.support.name.focus();
   		return false;
  		}
		if(document.support.vorname.value == "")  {
   		alert("Bitte Ihren Vornamen eingeben!");
   		document.support.vorname.focus();
   		return false;
  		}
		if(document.support.strasse.value == "") {
   		alert("Bitte Ihre Straße eingeben!");
   		document.support.strasse.focus();
   		return false;
  		}
		if(document.support.ort.value == "") {
   		alert("Bitte Ihren Wohnort eingeben!");
   		document.support.ort.focus();
   		return false;
  		}
		if(document.support.plz.value == "") {
   		alert("Bitte Ihre PLZ eingeben!");
   		document.support.plz.focus();
   		return false;
  		}
 		var chkZ = 1;
 		for(i=0;i<document.support.plz.value.length;++i)
   		if(document.support.plz.value.charAt(i) < "0"
   		|| document.support.plz.value.charAt(i) > "9")
     		chkZ = -1;
 		if(chkZ == -1) {
   		alert("Keine gültige PLZ!");
   		document.support.plz.focus();
   		return false
  		}
		if(document.support.email.value == "") {
   		alert("Bitte Ihre E-Mail-Adresse eingeben!");
   		document.support.email.focus();
   		return false;
  		}
 		if(document.support.email.value.indexOf('@') == -1) {
   		alert("Eingabe ist keine gültige E-Mail-Adresse!");
   		document.support.email.focus();
   		return false;
  		}
}