function validate(){
	
//Check wether the e-mail have been entered  
	var email = document.form1.email;
	if(email.value == "") { 
		alert ("Bitte geben Sie Ihre E-Mail Adresse ein!");
		email.focus();
		return (false); }
		
//Check wether the entered e-mail includes the sign @	
	if (email.value.indexOf("@", 2) == -1) {
		alert ("Die eingegebene E-Mail Adresse ist nicht korrekt!");
		email.focus();
		return (false);	}

//Check wether the e-mail have been entered  
	var vonemail = document.form1.vonemail;
	if(vonemail.value == "") { 
		alert ("Bitte geben Sie Ihre E-Mail Adresse ein!");
		vonemail.focus();
		return (false); }
		
//Check wether the entered e-mail includes the sign @	
	if (vonemail.value.indexOf("@", 2) == -1) {
		alert ("Die eingegebene E-Mail Adresse ist nicht korrekt!");
		vonemail.focus();
		return (false);	}


	form = document.form1;
	// CAPTCHA SPAM-Schutz...
	// Quit if captcha is not used in this form
	if(undefined == form.captcha_number) {
		return false;
	}
	
	// If the captcha-number is valid, this function directly submits the form
	captcha_isValid(form.captcha_number.value, form);
	return false;
}



function isValidName(textString)
{
	var textToReplaceExpression =  new RegExp(" ");
	var text=textString
	var i=0;
	
	while(i<100)
	{
		text = text.replace(textToReplaceExpression,"");
		i++;
	}
	return text;
}
