function checkTextEmail(maill){
	 if(maill.length<1){
	  	return 0;
	 }
	 else{
	  	if(maill.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1){
	  		return 2;
	  	}
		return 1;
	 }
}