<!--
function new_window(theURL,winName,features,myWidth,myHeight,isCenter) {
  if(window.screen)if(isCenter)if(isCenter == 'true') {
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}

function new_imagepopup(theURL,winName,altName,features,myWidth,myHeight,isCenter) {
  if(window.screen)if(isCenter)if(isCenter == 'true') {
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  imagepopup = window.open('','',features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
  with (imagepopup) {
    document.open();
    document.write('<title>'+winName+'</title>');
    document.write('<meta http-equiv="imagetoolbar" content="no">');
    document.write('<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" scroll="no">');
    document.write('<a href="javascript:self.close()">');
    document.write('<img src="'+theURL+'" border="0" alt="'+altName+'" title="'+altName+'">');
    document.write('</a></body>');
    document.close();
  }
}

function newImage(arg) {
  if (document.images) {
    rslt = new Image();
    rslt.src = arg;
    return rslt;
  }
}

var preloadFlag = false;
function preloadImages() {
  if (document.images) {
    for (var i=0; i<preloadImages.arguments.length; i++) {
      rslt = newImage(preloadImages.arguments[i]);
    }
    preloadFlag = true;
  }
}

function changeImages() {
  if (document.images && (preloadFlag == true)) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
    }
  }
}

function checkkontakt()
{

	if (document.contactmailform.vorname.value =="") {
	 	alert("Sie haben keinen Vornamen angegeben!\n");
	  document.contactmailform.vorname.focus();
	  return false;
	 }

	if (document.contactmailform.name.value =="") {
	 	alert("Sie haben keinen Namen angegeben!\n");
	  document.contactmailform.name.focus();
	  return false;
	 }

	var chkZ = 1;
	for(i=0;i<document.contactmailform.plz.value.length;++i)
	   if(document.contactmailform.plz.value.length < "5"
	   ||document.contactmailform.plz.value.charAt(i) < "0"
	   || document.contactmailform.plz.value.charAt(i) > "9")
	     chkZ = -1;
	 if(chkZ == -1) {
	   alert("Die Postleitzahl ist falsch!");
	   document.contactmailform.plz.focus();
	   return false;
	  }

	if (document.contactmailform.email.value!="") {
		if (document.contactmailform.email.value.indexOf('@',0)==-1 || document.contactmailform.email.value.indexOf('.',0)==-1) {
			alert("Die eingegebene E-Mail Adresse ist nicht korrekt!\n");
			document.contactmailform.email.focus();
		  return false;
		}
	}
	else {
		alert("Sie haben keine E-Mail Adresse angegeben!\n");
		document.contactmailform.email.focus();
		return false;
	}

	if (document.contactmailform.anliegen.value =="") {
	 	alert("Sie haben kein Anliegen angegeben!\n");
	  document.contactmailform.anliegen.focus();
	  return false;
	 }
	
}  

function checkmedikament()
{

	if (document.contactmailform.vorname.value =="") {
	 	alert("Sie haben keinen Vornamen angegeben!\n");
	  document.contactmailform.vorname.focus();
	  return false;
	 }

	if (document.contactmailform.name.value =="") {
	 	alert("Sie haben keinen Namen angegeben!\n");
	  document.contactmailform.name.focus();
	  return false;
	 }

	if (document.contactmailform.anschrift.value =="") {
	 	alert("Sie haben keine Anschrift angegeben!\n");
	  document.contactmailform.anschrift.focus();
	  return false;
	 }


	if (document.contactmailform.plz.value == "") {
	 	alert("Sie haben keine Postleitzahl angegeben!\n");
	  document.contactmailform.plz.focus();
	  return false;
	 }
	else { 
		var chkZ = 1;
		for(i=0;i<document.contactmailform.plz.value.length;++i)
		   if(document.contactmailform.plz.value.length < "5"
		   ||document.contactmailform.plz.value.charAt(i) < "0"
		   || document.contactmailform.plz.value.charAt(i) > "9")
		     chkZ = -1;
		 if(chkZ == -1) {
		   alert("Die Postleitzahl ist falsch!");
		   document.contactmailform.plz.focus();
		   return false;
		  }
	 }

	if (document.contactmailform.ort.value =="") {
	 	alert("Sie haben keinen Ort angegeben!\n");
	  document.contactmailform.ort.focus();
	  return false;
	 }

	if (document.contactmailform.telefon.value =="") {
	 	alert("Sie haben keine Telefonnummer angegeben!\n");
	  document.contactmailform.telefon.focus();
	  return false;
	 }


	if (document.contactmailform.email.value!="") {
		if (document.contactmailform.email.value.indexOf('@',0)==-1 || document.contactmailform.email.value.indexOf('.',0)==-1) {
			alert("Die eingegebene E-Mail Adresse ist nicht korrekt!\n");
			document.contactmailform.email.focus();
		  return false;
		}
	}
	else {
		alert("Sie haben keine E-Mail Adresse angegeben!\n");
		document.contactmailform.email.focus();
		return false;
	}

}

function checktermin()
{

	if (document.contactmailform.vorname.value =="") {
	 	alert("Sie haben keinen Vornamen angegeben!\n");
	  document.contactmailform.vorname.focus();
	  return false;
	 }

	if (document.contactmailform.name.value =="") {
	 	alert("Sie haben keinen Namen angegeben!\n");
	  document.contactmailform.name.focus();
	  return false;
	 }

	if (document.contactmailform.anschrift.value =="") {
	 	alert("Sie haben keine Anschrift angegeben!\n");
	  document.contactmailform.anschrift.focus();
	  return false;
	 }


	if (document.contactmailform.plz.value == "") {
	 	alert("Sie haben keine Postleitzahl angegeben!\n");
	  document.contactmailform.plz.focus();
	  return false;
	 }
	else { 
		var chkZ = 1;
		for(i=0;i<document.contactmailform.plz.value.length;++i)
		   if(document.contactmailform.plz.value.length < "5"
		   ||document.contactmailform.plz.value.charAt(i) < "0"
		   || document.contactmailform.plz.value.charAt(i) > "9")
		     chkZ = -1;
		 if(chkZ == -1) {
		   alert("Die Postleitzahl ist falsch!");
		   document.contactmailform.plz.focus();
		   return false;
		  }
	 }

	if (document.contactmailform.ort.value =="") {
	 	alert("Sie haben keinen Ort angegeben!\n");
	  document.contactmailform.ort.focus();
	  return false;
	 }

	if (document.contactmailform.telefon.value =="") {
	 	alert("Sie haben keine Telefonnummer angegeben!\n");
	  document.contactmailform.telefon.focus();
	  return false;
	 }


	if (document.contactmailform.email.value!="") {
		if (document.contactmailform.email.value.indexOf('@',0)==-1 || document.contactmailform.email.value.indexOf('.',0)==-1) {
			alert("Die eingegebene E-Mail Adresse ist nicht korrekt!\n");
			document.contactmailform.email.focus();
		  return false;
		}
	}
	else {
		alert("Sie haben keine E-Mail Adresse angegeben!\n");
		document.contactmailform.email.focus();
		return false;
	}
	
	
	if (document.contactmailform.datum.value =="") {
	 	alert("Sie haben kein Datum angegeben!\n");
	  document.contactmailform.datum.focus();
	  return false;
	 }

	if (document.contactmailform.uhrzeit.value =="") {
	 	alert("Sie haben keine Uhrzeit angegeben!\n");
	  document.contactmailform.uhrzeit.focus();
	  return false;
	 }
	 
	if (document.contactmailform.behandlung.value =="") {
	 	alert("Sie haben keine Behandlung angegeben!\n");
	  document.contactmailform.behandlung.focus();
	  return false;
	 }	 

}


function checkbestellung()
{

	if (document.contactmailform.vorname.value =="") {
	 	alert("Sie haben keinen Vornamen angegeben!\n");
	  document.contactmailform.vorname.focus();
	  return false;
	 }

	if (document.contactmailform.name.value =="") {
	 	alert("Sie haben keinen Namen angegeben!\n");
	  document.contactmailform.name.focus();
	  return false;
	 }


	if (document.contactmailform.anschrift.value =="") {
	 	alert("Sie haben keine Anschrift angegeben!\n");
	  document.contactmailform.anschrift.focus();
	  return false;
	 }

                   if (document.contactmailform.plz.value == "") {
	 	alert("Sie haben keine Postleitzahl angegeben!\n");
	  document.contactmailform.plz.focus();
	  return false;
	 }

	var chkZ = 1;
	for(i=0;i<document.contactmailform.plz.value.length;++i)
	   if(document.contactmailform.plz.value.length < "5"
	   ||document.contactmailform.plz.value.charAt(i) < "0"
	   || document.contactmailform.plz.value.charAt(i) > "9")
	     chkZ = -1;
	 if(chkZ == -1) {
	   alert("Die Postleitzahl ist falsch!");
	   document.contactmailform.plz.focus();
	   return false;
	  }

	if (document.contactmailform.ort.value =="") {
	 	alert("Sie haben keinen Ort angegeben!\n");
	  document.contactmailform.ort.focus();
	  return false;
	 }	
	
	if (document.contactmailform.email.value!="") {
		if (document.contactmailform.email.value.indexOf('@',0)==-1 || document.contactmailform.email.value.indexOf('.',0)==-1) {
			alert("Die eingegebene E-Mail Adresse ist nicht korrekt!\n");
			document.contactmailform.email.focus();
		  return false;
		}
	}
	else {
		alert("Sie haben keine E-Mail Adresse angegeben!\n");
		document.contactmailform.email.focus();
		return false;
	}

	if (document.contactmailform.anliegen.value =="") {
	 	alert("Sie haben keine Bestellmenge angegeben!\n");
	  document.contactmailform.anliegen.focus();
	  return false;
	 }
	
}  



function checkberatung()
{

	if (document.contactmailform.vorname.value =="") {
	 	alert("Sie haben keinen Vornamen angegeben!\n");
	  document.contactmailform.vorname.focus();
	  return false;
	 }

	if (document.contactmailform.name.value =="") {
	 	alert("Sie haben keinen Namen angegeben!\n");
	  document.contactmailform.name.focus();
	  return false;
	 }

	var chkZ = 1;
	for(i=0;i<document.contactmailform.plz.value.length;++i)
	   if(document.contactmailform.plz.value.length < "5"
	   ||document.contactmailform.plz.value.charAt(i) < "0"
	   || document.contactmailform.plz.value.charAt(i) > "9")
	     chkZ = -1;
	 if(chkZ == -1) {
	   alert("Die Postleitzahl ist falsch!");
	   document.contactmailform.plz.focus();
	   return false;
	  }

	if (document.contactmailform.email.value!="") {
		if (document.contactmailform.email.value.indexOf('@',0)==-1 || document.contactmailform.email.value.indexOf('.',0)==-1) {
			alert("Die eingegebene E-Mail Adresse ist nicht korrekt!\n");
			document.contactmailform.email.focus();
		  return false;
		}
	}
	else {
		alert("Sie haben keine E-Mail Adresse angegeben!\n");
		document.contactmailform.email.focus();
		return false;
	}

	
	if (document.contactmailform.anliegen.value =="") {
	 	alert("Sie haben keine Frage angegeben!\n");
	  document.contactmailform.anliegen.focus();
	  return false;
	 }
	
}  




//-->
