function IsValidEmailAddress( strValue) {
 /************************************************ 
DESCRIPTION: Validates that a string contains a valid email pattern. 
PARAMETERS: strValue - String to be tested for validity 
RETURNS: True if valid, otherwise false. 
REMARKS: Accounts for email with country appended does not validate that email contains valid URL type (.com, .gov, etc.) or valid country suffix.
 *************************************************/
 // ORIGNAL var objRegExp = /(^[a-z]([a-z_\.]*)@([a-z_\.]*)([.][a-z]{3})$)|(^[a-z]([a-z_\.]*)@([a-z_\.]*)(\.[a-z]{3})(\.[a-z]{2})*$)/i; 
 //*var objRegExp = /(^[A-Za-z0-9]([A-Za-z0-9_\.]*)@([A-Za-z0-9_\.]*)([.][A-Za-z0-9]{3})$)|(^[A-Za-z0-9]([A-Za-z0-9_\.]*)@([A-Za-z0-9_\.]*)(\.[A-Za-z0-9]{3})(\.[A-Za-z0-9]{2})*$)/i; 
 var objRegExp = /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/;
//check for valid email
if (strValue== "" || strValue== null) return true;
//
if ( !objRegExp.test(strValue)) {
   alert("Not a validate email format.");
   return false; }
return true;
}

