function check_web() {
    var text=document.webajanlo.email.value;
    var hiba = false;
    var uzenet = "";
	
	if (document.webajanlo.nev.value == '') {
		hiba = true;
		uzenet = uzenet+"Please give your name!\n";
	}

    if (text.indexOf('@') == -1) {
	    hiba = true;
		uzenet = uzenet+"In the e-mail address must be a @ character!\n";
    }
	
	if (text.indexOf('.') == -1) {
    	hiba = true;
		uzenet = uzenet+"In the e-mail address 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 te last point 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;
	}  
}
