/*
function: fnIsValidEmail(argStr) - Check whether the input parameter string is a valid email or not
*/
function fnIsValidEmail(argStr){
	if (argStr.match(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == null)
		return false;
	else
		return true;

/*
	This validation allows !#$%&'*+-./=?^_`{|}~ in the email
	And double quote is also allowed if double quotes appear in both start and end position. e.g. "test"@abc.com
	But other formats are invalid. e.g.: test"@abc.com  "test@abc.com  te"st@abc.com
*/
//	var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
//    return re.test(argStr);
}
