function test_email(str_email)
{
var pos_arob;
var pos_point;
var pos_illegal;

if (str_email == '')		
	{return false;}

// Obligation d'un seul @
pos_arob = str_email.indexOf('@',0);
last_arob = str_email.lastIndexOf('@');


if (pos_arob < 1)	
	{
		return false;
	}
	
if (pos_arob != last_arob)
	{
		return false;
	}
		

pos_point = str_email.lastIndexOf('.');
if (pos_point < pos_arob)
	{
		return false;
	}
	
// Test des caractres interdits
pos_illegal1 = str_email.indexOf(' ',0);
pos_illegal2 = str_email.indexOf(',',0);
pos_illegal3 = str_email.indexOf(';',0);

if (pos_illegal1 != -1 || pos_illegal2 != -1 || pos_illegal3 != -1)
	{
		return false;
	} 		


	return true;

}

