function checkEmail(email)
{
    var filter1=/^[\w-+!#\$\.']+@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;   
    var filter2=/\.\.|^\.|\.@/;

    return filter1.test(email) && !filter2.test(email);

    
}

// ie.: accepts: abc@domain.com;123@abc.com and also simple abc@domain.com format
function checkEmailList(emailList)
{
    if (!emailList)
        return {status: false};
    
    var list = emailList.split(";");    

    for (var i = 0; i < list.length; i++)
      if (false == checkEmail(list[i].replace(/^\s+|\s+$/g,""))) // trim
        return {status: false, problem: list[i]};
        
    return {status: true};
}

function TellAFriend()
{
	location.href="mailto:?subject=Link your emails&body=%0D%0AI am currently using the %22EasyLinkMail%22 email threading program that combines emails of the same topic into one email string utilizing Smart Threading Technology. This program saves a lot of time by organizing your emails automatically and removes all duplicates. You have to try it to believe it! Check it out this great tool at http://www.easycombinemail.com."
}