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.EasyLinkMail.com."
}

function TellAFriendCW()
{
	location.href="mailto:?subject=I found a helpful Excel tool for you&body=Hello,%0D%0A%0D%0AI wanted to let you know about a product I found called CooWire by KM Sciences Inc. You can create and email your questions directly from Excel to a group of people and their replies get automatically updated in the same Excel spreadsheet. You can also manage who you have sent your questions to and who have responded back. This tool is great for organizing events, asking for comments or soliciting feedback. Give it a try and download it today from http://www.kmsciences.com.%0D%0AThanks!"
}