function EmailObj(email)
{
	var s = '',c = '',d = '',a = '';
	var valid = false;
	var re = /^\w+((-\w+)|(\.\w+))*\@[a-zA-Z0-9]+(\.|\-)?[a-zA-Z0-9]+(\.[a-zA-Z]{2,3})+$/i;
	if(email.replace(/\s/gi,'').length > 0)
	{
		s = email.replace(/(^\s*)(\S+\s*\S+)(\s*$)/gi,'$2');

		if(s.match(/^<[^<>]+>$/i) != null)
			s = s.replace(/^<([^<>]+)>$/i,'$1');

		if(s.match(/^.+<.+>$/i) != null)
		{
			a = s.replace(/^([^<>]+)<[^>]+>$/i,'$1').replace(/(^\s*)(\S+\s*\S+)(\s*$)/gi,'$2');
			s = s.replace(/^[^<]+<([^>]+)>$/i,'$1');
		}
		s = s.replace(/(^\s*)(\S+\s*\S+)(\s*$)/gi,'$2').toLowerCase();
		if(re.test(s))
			valid =  true;
	}
		
	this.isValid = valid;
	
	if(valid)
	{
		c = s.replace(/^([^@]+)@[^@]+$/i,'$1');
		d = s.replace(/^[^@]+@([^@]+)$/i,'$1');
	}
	this.endereco = s;
	this.conta = c;
	this.dominio = d;
	this.alias = a;
	if(a.length > 0)
		this.enderecoCompleto = a + ' <' + s + '>';
	else
		this.enderecoCompleto = s;
}