function webmail() {
		
     var password  	   = document.implogin.pass.value;
     var email     = document.implogin.imapuser.value;    
     var mail_reg_exp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;

		if (!mail_reg_exp.test(email) || (email == "") || (email == "undefined")) {
           alert("Inserire un indirizzo E-mail corretto.");
           document.implogin.imapuser.focus();           
           return false;
        }
		
		else if ((password == "") || (password == "undefined")) {
           alert("Il campo PASSWORD è obbligatorio.");
           document.implogin.pass.focus();           
           return false;
        }

        //INVIA IL modul
        else {
		var user=document.getElementById("user").value;
		var xs=user.split("@");
		document.implogin.action="http://webmail."+xs[1]+"/cgi-bin/check.cgi";
		document.getElementById("host").value="webmail."+xs[1]+"";
           document.implogin.submit();
        }
     
  }
