function check_email() {
    var text=document.form_newsletter.email.value;
    var hiba = false;
    var uzenet = "";
	
    if (text.indexOf('@') == -1) {
	    hiba = true;
		uzenet = uzenet+'In der Email-Adresse muss ein "@"-Charakter vorkommen!\n';
    }
	
	if (text.indexOf('.') == -1) {
    	hiba = true;
		uzenet = uzenet+'In der Email-Adresse muss ein "."-Charakter vorkommen!\n';
    }  
    
	if ((text.length-text.lastIndexOf('.'))>4 || (text.length-text.lastIndexOf('.'))<2) {
    	hiba = true;
		uzenet = uzenet+'In der Email-Adresse können nach dem "."-Charakter nur 2 oder 3 Buchstaben eingefügt werden!\n';
    }  

    if (text.lastIndexOf('.')==text.indexOf('@')+1) {
		hiba = true;
		uzenet = uzenet+"In der von Ihnen angegebenen E-mail-Adresse kann nach einem @ kein . stehen!\n";
    }
    
	if (hiba == true) {
        alert(uzenet);
		return false;
	}  
}  

function check_email_eng() {
    var text=document.form_newsletter.email.value;
    var hiba = false;
    var uzenet = "";
	
    if (text.indexOf('@') == -1) {
	    hiba = true;
		uzenet = uzenet+'In the e-mail adress must be a "@" character!\n';
    }
	
	if (text.indexOf('.') == -1) {
    	hiba = true;
		uzenet = uzenet+'In the e-mail adress must be a "." character!!\n';
    }  
    
	if ((text.length-text.lastIndexOf('.'))>4 || (text.length-text.lastIndexOf('.'))<2) {
    	hiba = true;
		uzenet = uzenet+'In the e-mail adress after the last "." character must be other 2 or 3 characters!\n';
    }  

    if (text.lastIndexOf('.')==text.indexOf('@')+1) {
		hiba = true;
		uzenet = uzenet+"In the e-mail adress after the @ character beyond possibility a . character!\n";
    }
    
	if (hiba == true) {
        alert(uzenet);
		return false;
	}  
}