function pruef_form_mail(news)
{
	if (news.name.value == "" || news.name.value == "Name")
	{
		alert("Please enter your name");
    	news.name.focus();
	    return (false);
	}
	
	
	if (news.email.value == "" || news.email.value == "E-Mail")
	{
		alert("Please enter your E-Mail adress");
    	news.email.focus();
	    return (false);
	}
	
	mailkorrekt = /([.0-9a-z_-]+)@(([0-9a-z-]+\.)+[0-9a-z]{2,4})$/i;
	ergebnis = news.email.value.search(mailkorrekt);
	if (ergebnis == -1) {
		alert("Please enter your correct E-Mail.");
		news.email.focus();
		return (false);
	}
	

	return (true);



}



function check(theForm)
{
	if (theForm.from.value == "")
	{
	    alert("Please enter the correct start.");
    	theForm.from.focus();
	    return (false);
	}
	if (theForm.to.value == "")
	{
		alert("Please enter the correct designation.");
		theForm.to.focus();
		return (false);
	}

	if (theForm.departure.value == ""|| theForm.departure.value == "dd.mm.yyyy")
	{
		alert("Please enter the date of your departure.");
		theForm.departure.focus();
		return (false);
	}
		
	if (theForm.back.value == ""||theForm.back.value == "dd.mm.yyyy")
	{
		alert("Please enter the date of your return.");
		theForm.back.focus();
		return (false);
	}
	
	
	if (theForm.firstname.value == "")
	{
	    alert("Please enter your firstname.");
    	theForm.firstname.focus();
	    return (false);
	}
	if (theForm.firstname.value.length < 2)
	{
		alert("Please fill at least 2 signs for your firstname.");
		theForm.firstname.focus();
		return (false);
	}
	
	if (theForm.surname.value == "")
	{
	    alert("Please enter your surname.");
    	theForm.surname.focus();
	    return (false);
	}
	if (theForm.surname.value.length < 2)
	{
		alert("Please fill at least 2 signs for your surname.");
		theForm.surname.focus();
		return (false);
	}
	
	
	
	if (theForm.street.value == "")
	{
	    alert("Please enter your Street.");
    	theForm.street.focus();
	    return (false);
	}
	
	
	if (theForm.postcode.value == "")
	{
	    alert("Please enter the postcode.");
    	theForm.postcode.focus();
	    return (false);
	}
	
	
	
	if (theForm.city.value == "")
	{
	    alert("Please enter the city.");
    	theForm.city.focus();
	    return (false);
	}
	
	if (theForm.country.value == "")
	{
	    alert("Please enter the country.");
    	theForm.country.focus();
	    return (false);
	}
	
	
	
	mailkorrekt = /([.0-9a-z_-]+)@(([0-9a-z-]+\.)+[0-9a-z]{2,4})$/i;
	ergebnis = theForm.Email.value.search(mailkorrekt);
	if (ergebnis == -1) {
		alert("Please enter your correct email.");
		theForm.Email.focus();
		return (false);
	}
	

	return (true);
}

 
 

function check_products(theForm)
{
	if (theForm.first_name.value == "")
	{
	    alert("Please enter your firstname.");
    	theForm.first_name.focus();
	    return (false);
	}
	if (theForm.first_name.value.length < 2)
	{
		alert("Please fill at least 2 signs for your firstname.");
		theForm.first_name.focus();
		return (false);
	}
	
	if (theForm.surname.value == "")
	{
	    alert("Please enter your surname.");
    	theForm.surname.focus();
	    return (false);
	}
	if (theForm.surname.value.length < 2)
	{
		alert("Please fill at least 2 signs for your surname.");
		theForm.surname.focus();
		return (false);
	}
	
	mailkorrekt = /([.0-9a-z_-]+)@(([0-9a-z-]+\.)+[0-9a-z]{2,4})$/i;
	ergebnis = theForm.Email.value.search(mailkorrekt);
	if (ergebnis == -1) {
		alert("Please enter your correct email.");
		theForm.Email.focus();
		return (false);
	}


	return (true);
}



function check_anonym(theForm)
{
	
	if (theForm.bez_name.value == "")
	{
	    alert("You've to fill in the new name for Mr. Anonymous.");
    	theForm.bez_name.focus();
	    return (false);
	}
	
	if (theForm.f_name.value == "" || theForm.f_name.value.length < 2)
	{
	    alert("Please enter your correct firstname.");
    	theForm.f_name.focus();
	    return (false);
	}
	
	
	if (theForm.s_name.value == "" || theForm.s_name.value.length < 2)
	{
	    alert("Please enter your surname.");
    	theForm.s_name.focus();
	    return (false);
	}
	
	if (theForm.t_feld.value == "" || theForm.t_feld.value.length < 2)
	{
	    alert("Please enter your street.");
    	theForm.t_feld.focus();
	    return (false);
	}
	
		
	
	if (theForm.post.value == "")
	{
	    alert("Please enter the postcode.");
    	theForm.post.focus();
	    return (false);
	}
	
	
	
	if (theForm.country.value == "")
	{
	    alert("Please enter the country.");
    	theForm.country.focus();
	    return (false);
	}
	

	
	
	mailkorrekt = /([.0-9a-z_-]+)@(([0-9a-z-]+\.)+[0-9a-z]{2,4})$/i;
	ergebnis = theForm.mail.value.search(mailkorrekt);
	if (ergebnis == -1) {
		alert("Please enter your correct email.");
		theForm.mail.focus();
		return (false);
	}
	

	return (true);
}
