/*  Für Gästebuch */
function controlGB(){

var ns="Netscape";
if((navigator.appName==ns) && (navigator.appVersion.substring(0,1) >= "4")){
commando=document.form1;
}
else
commando=document.form1;

if(commando.name.value == ""){
alert("Bitte geben Sie Ihren Namen an!");
commando.name.focus();
commando.name.select();
return false;
}

/* txt Check */
if(commando.kommentar.value == ""){
alert("Sie wollten doch etwas in unser Gästebuch schreiben!?");
commando.kommentar.focus();
commando.kommentar.select();
return false;
}
}

/* Für den Newsletter */
function controlNews()
{
var ns="Netscape";
if((navigator.appName==ns) && (navigator.appVersion.substring(0,1) >= "4")){
commando=document.formNews;
}
else
commando=document.formNews;
/* Mail Check */

if(commando.email.value == ""){
alert("Bitte geben Sie Ihre E-Mail ein !");
commando.email.focus();
return false;
}
}
/*  Ende Newsletter */

function clearAll(formular)
	{
		for (var index = 0; index < (formular.length); index++)
			{ formular.elements[index].value = ""; }

		formular.reset();
	}
	
function control(){
var commando, plzl="0123456789",datl="0123456789.",datl2="0123456789., ",telfax="0123456789-/+ ",c , d, L, E, indexZ;
var ns="Netscape";
if((navigator.appName==ns) && (navigator.appVersion.substring(0,1) >= "4")){
commando=document.form1;
}
else
commando=document.form1;

/* Anrede Check */

if(commando.anrede.value== "1"){
	alert("Bitte Anrede auswählen");
	commando.anrede.focus();
	return false;
}

/* Name Check */

if(commando.name.value == "")
{
alert("Bitte geben Sie Ihren Vor- und Zunamen an!");
commando.name.focus();
return false;
}

/* Telefon Check */

if(commando.tel.value == "")
{
alert("Bitte geben Sie Ihre Telefonnummer an!");
commando.tel.focus();
return false;
}


/* Mail Check */

if(commando.mail.value == ""){
var dialogbox;
dialogbox=confirm("Bitte geben Sie Ihre E-Mail Adresse an !\n\nSollten Sie keine E-Mail Adresse besitzen, so klicken Sie bitte \nauf \"Abbrechen\" und dann nochmal auf \"SENDEN\".");
if(dialogbox==true){
commando.mail.focus();
commando.mail.select();
}
if(dialogbox==false)
{
commando.mail.value="Keine E-Mail";
commando.mail.focus();
}
return false;
}


/* Nachricht Check */

if(commando.nachricht.value == ""){
alert("Sie wollten uns doch eigentlich etwas mitteilen!?");
commando.nachricht.focus();
commando.nachricht.select();
return false;
}
}