

		function fenster_h(url,name)
		{
   		window.open( url,name,'width=370,height=548,left=0,top=0,scrollbars=1' ); 	
		}
		function fenster_b(url,name)
		{
   		window.open( url,name,'width=570,height=600,left=0,top=0,scrollbars=1' ); 	
		}
		function fenster_cmsfaq(url,name)
		{
   		window.open( url,name,'width=570,height=600,left=0,top=0,scrollbars=1' ); 	
		}
		function fenster_impressum(url,name)
		{
   		window.open( url,name,'width=200,height=300,left=0,top=0,scrollbars=0' ); 	
		}
		     			
		function swap( Bildname, Bildobjekt )  
		{   
		// Bildwechlse nicht beim aktuellen Menupunkt durchfuehren
		if (act_bildname != Bildname) {
			
			// alert(act_bildname);
			self.document.images[Bildname].src = Bildobjekt.src;
		}
		}
		function swap2( Bildname2, Bildobjekt2 )  
		{   
		// Bildwechlse nicht beim aktuellen Menupunkt durchfuehren
		if (act_bildname2 != Bildname2) {
			
			// alert(act_bildname);
			self.document.images[Bildname2].src = Bildobjekt2.src;
		}
		}
		function swap3( Bildname3, Bildobjekt3 )  
		{   
		// Bildwechlse nicht beim aktuellen Menupunkt durchfuehren
		if (act_bildname3 != Bildname3) {
			
			// alert(act_bildname);
			self.document.images[Bildname3].src = Bildobjekt3.src;
		}
		}

		function change( Bildname, Bildobjekt ) {
		var old_bildname = act_bildname;
		var old_bildobjekt = act_bildobjekt;
	
		act_bildname = Bildname;
		act_bildobjekt = Bildobjekt;
	
		if (old_bildname != '') {
		swap(old_bildname, old_bildobjekt);
		}
		}	
		function change2( Bildname2, Bildobjekt2 ) {
		var old_bildname2 = act_bildname2;
		var old_bildobjekt2 = act_bildobjekt2;
	
		act_bildname2 = Bildname2;
		act_bildobjekt2 = Bildobjekt2;
	
		if (old_bildname2 != '') {
		swap(old_bildname2, old_bildobjekt2);
		}
		}	
		function change3( Bildname3, Bildobjekt3 ) {
		var old_bildname3 = act_bildname3;
		var old_bildobjekt3 = act_bildobjekt3;
	
		act_bildname2 = Bildname3;
		act_bildobjekt2 = Bildobjekt3;
	
		if (old_bildname3 != '') {
		swap(old_bildname3, old_bildobjekt3);
		}
		}	
		
		function check_Form()
{
var richtig = true;
	if ( richtig )
		 richtig = check_Anrede();
	if ( richtig )
		 richtig = check_Name();
	if ( richtig )
		 richtig = check_Kontakt();
	if ( richtig )
		 richtig = check_Adresse();
	if ( richtig )
		 richtig = check_Tel();
	if ( richtig )
		 richtig = check_Email();
	return richtig;
}
function check_Anrede()
{
var richtig = true;
var anrede_1 = document.kontaktForm.Anrede[0].checked;
var anrede_2 = document.kontaktForm.Anrede[1].checked;
	if ( !anrede_1 && !anrede_2)
	{
		alert( "Bitte eine Anrede auswählen" );
		document.kontaktForm.Anrede[0].focus();
		richtig = false;
	}
	return richtig;
}
function check_Name()
{
var name_1 = document.kontaktForm.Name.value;
var richtig = true;
	if ( name_1 == "" )
	{
		alert( "Bitte geben Sie Ihren Namen an!" );
		document.kontaktForm.Name.focus();
		richtig = false;
	}
	return richtig;
}
function check_Kontakt()
{
var richtig = true;
var kontAd = document.kontaktForm.Strasse.value;
var kontEm = document.kontaktForm.Telefon.value;
var kontTe = document.kontaktForm.Email.value;
	if ( kontAd == "" &&  kontEm == "" && kontTe == "" )
	{
		alert( "Bitte geben Sie eine Adresse, E-Mail oder Telefonnummer an!" );
		document.kontaktForm.Strasse.focus();
		richtig = false;
	}
	return richtig;
}
function check_Adresse()
{
var richtig = true;
var kontStr = document.kontaktForm.Strasse.value;
var kontOrt = document.kontaktForm.Ort.value;
	if ( kontStr != "" &&  kontOrt == "" )
	{
		alert( "Bitte geben Sie auch einen Ort an!" );
		document.kontaktForm.Ort.focus();
		richtig = false;
	}
	return richtig;
}
function check_Tel()
{
var richtig = true;
var telefon_1 = document.kontaktForm.Telefon.value;
var zeichen = "0123456789/- ";
var i;
var d = "";
var laenge = telefon_1.length;
	if ( telefon_1 != "" )
	{
 		for (i = 0; i < laenge; i++)
		{
				d = telefon_1.charAt( i );
				if ( zeichen.indexOf( d )== -1 )
				{
						alert("Bitte als Telefonnummer nur Ziffern\nund - bzw / eingeben");
						document.kontaktForm.Telefon.focus();
						richtig = false;
						break;
				}
		}
	}
	return richtig;
}
function check_Email()
{
var richtig = true;
var email_1 = document.kontaktForm.Email.value;
var laenge = email_1.length;
var add = email_1.indexOf('@');
var dot = email_1.lastIndexOf('.');
	if(email_1 != "")
	{
		if(add == -1 || dot < add || dot < (add + 4) || dot > (laenge - 3))
		{
				alert('Das ist keine korrekte E-Mail-Adresse!');
				document.kontaktForm.Email.focus();
				richtig = false;
		}
	 }
	return richtig;
}														
