function clearAll(formular)
	{
		for (var index = 0; index < (formular.length); index++)
			{ formular.elements[index].value = ""; }

		formular.reset();
	}

function jb(destination){
  
  re = /\r\n/gi;
  text = String( document.form1.nachricht.value );
  text = text.replace( re, '<br>' ); 
  
  printFile = destination + '?name=' + document.form1.name.value + 
             '&mail=' + document.form1.mail.value + '&betreff=' + document.form1.betreff.value + '&s=' + document.form1.s.value +
             '&nachricht=' + text;
   WelcomePopWin=window.open (printFile,'jb','width=600,height=500,resizable=yes,scrollbars=yes,toolbar=no,status=no,directories=no,menubar=no,location=inhalt');
}
	
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;
/* Name Check */

if(commando.name.value == "")
{
alert("Bitte geben Sie Ihren Vor- und Zunamen an !");
commando.name.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;
}

/* Betreff Check */

if(commando.betreff.value == "")
{
alert("Bitte geben Sie einen Betreff an!");
commando.name.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;
}
}
