function fct_email(inscrit_email)
	{
	//identique à la précédente, mais ne vas pas checker les domaines

	debug=0;
	inscrit_email=fct_trim(inscrit_email);
	inscrit_email=inscrit_email.toLowerCase();
	at_place=inscrit_email.indexOf("@");

	if(debug!=0)
		alert('at:'+at_place);

	if(at_place!="-1")
		{
		//on check qu'il n'y ai pas 2 @
		if(inscrit_email.indexOf("@")!=inscrit_email.lastIndexOf("@"))
			{
			if(debug!=0)
				alert('2+ @');
			return 1;
			}

		//le @ est trouvé, on reprend seulement ce qui le suis en lowercase
		check_ext_str=inscrit_email.slice(at_place+1);

		//on check sur la 1ere partie, pour être sure que le visiteur n'as pas envoyé une adresse http
		if(inscrit_email.indexOf("http")!='-1')
			{
			if(debug!=0)
				alert('http adress');
			return 1;
			}
		else
		if(inscrit_email.indexOf("://")!='-1')
			{
			if(debug!=0)
				alert('http adress');
			return 1;
			}
		else
		if(inscrit_email.indexOf("www")!='-1')
			{
			if(debug!=0)
				alert('http adress');
			return 1;
			}
		else
			{
			if(debug!=0)
				alert('not an http adress');
			//et hop, on test un peu la fin de l'adresse
			if(check_ext_str.indexOf(".")>=0)
				{
				//on vérifie qu'il y ait au moins 2 charactères après le "."
				var delta=0;
				str_length=check_ext_str.length;
				delta=str_length-check_ext_str.indexOf(".")-1;
				if(debug!=0)
					alert('delta: >'+delta+'< - length: >'+str_length+'< - dot: >'+check_ext_str.indexOf("."));
				if(delta>=2)
					{
					
					if(check_ext_str.indexOf("hotmail.ch")!='-1')
						{
						if(debug!=0)
							alert('swf domain');
						return 1;
						}
					else
					if(check_ext_str.indexOf("caramail.ch")!='-1')
						{
						if(debug!=0)
							alert('swf domain');
						return 1;
						}
					else
					//on test aussi si il n'a pas mis 2 emails
					if(check_ext_str.indexOf(" ")!='-1')
						{
						if(debug!=0)
							alert('dual email');
						return 1;
						}
					else
					if(check_ext_str.indexOf(";")!='-1')
						{
						if(debug!=0)
							alert('dual email');
						return 1;
						}
					else
					if(check_ext_str.indexOf(",")!='-1')
						{
						if(debug!=0)
							alert('dual email');
						return 1;
						}
					else
						//si tout les tests sont ok
						return 0;
					}
				else
					return 1;
				}
			}
			return 1;
		}
	else
		//Mayday,mayday, were goin' down, Repeat: were goin' down
		return 1;
	}



function fx_check_email(inscrit_email)
	{
	debug=0;
	inscrit_email=fct_trim(inscrit_email);
	inscrit_email=inscrit_email.toLowerCase();
	at_place=inscrit_email.indexOf("@");
	if(debug!=0)
		alert('at:'+at_place);
	if(at_place!="-1")
		{
		//on check qu'il n'y ai pas 2 @
		if(inscrit_email.indexOf("@")!=inscrit_email.lastIndexOf("@"))
			{
			if(debug!=0)
				alert('2+ @');
			return 1;
			}

		//le @ est trouvé, on reprend seulement ce qui le suis en lowercase
		check_ext_str=inscrit_email.slice(at_place+1);

		//on check sur la 1ere partie, pour être sure que le visiteur n'as pas envoyé une adresse http
		if(inscrit_email.indexOf("http")!='-1')
			{
			if(debug!=0)
				alert('http adress');
			return 1;
			}
		else
		if(inscrit_email.indexOf("://")!='-1')
			{
			if(debug!=0)
				alert('http adress');
			return 1;
			}
		else
		if(inscrit_email.indexOf("www")!='-1')
			{
			if(debug!=0)
				alert('http adress');
			return 1;
			}
		else
			{
			if(debug!=0)
				alert('not an http adress');
			//et hop, on test un peu la fin de l'adresse
			if(check_ext_str.indexOf(".")>=0)
				{
				//on vérifie qu'il y ait au moins 2 charactères après le "."
				var delta=0;
				str_length=check_ext_str.length;
				delta=str_length-check_ext_str.indexOf(".")-1;
				if(debug!=0)
					alert('delta: >'+delta+'< - length: >'+str_length+'< - dot: >'+check_ext_str.indexOf("."));
				if(delta>=2)
					{
					//et Hop, on vire les domaines suivants
					if(check_ext_str.indexOf("hotmail.ch")!='-1')
						{
						if(debug!=0)
							alert('hotmail domain');
						return 1;
						}
					else
					if(check_ext_str.indexOf("caramail.ch")!='-1')
						{
						if(debug!=0)
							alert('caramail domain');
						return 1;
						}
					else
					//on test aussi si il n'a pas mis 2 emails
					if(check_ext_str.indexOf(" ")!='-1')
						{
						if(debug!=0)
							alert('dual email');
						return 1;
						}
					else
					if(check_ext_str.indexOf(";")!='-1')
						{
						if(debug!=0)
							alert('dual email');
						return 1;
						}
					else
					if(check_ext_str.indexOf(",")!='-1')
						{
						if(debug!=0)
							alert('dual email');
						return 1;
						}
					else
						//si tout les tests sont ok
						return 0;
					}
				else
					{
					if(debug!=0)
						alert('No country or qualifier');
					return 1;
					}
				}
			else
				{
				if(debug!=0)
					alert('pas de "."');
				return 1;
				}
			}
			//return 1;
		}
	else
		
		return 1;
	}
