function GenIsValidEmail(strEmail, strFldName)
{
var strTemp;
tmp = '';
// validate email address
//var re = /^\w+@\w+(\.\w+)+$/;
var re = /^[A-Za-z0-9_.\-]+@\w+(\.\w+)+$/;
//alert(strEmail);
if (strEmail.length <= 0)
{
if (strFldName.length <= 0)
tmp = ' ';
else
tmp = '  ';
return tmp;
}

if (!re.test(strEmail))
//if (!((strEmail.indexOf("@") != -1) && (strEmail.indexOf(".") != -1)))
{
if (strFldName.length <= 0)
tmp = 'The Email address you specified is not valid.';
else
tmp = strFldName + ' is not a valid Email address.';

}

return tmp;
} 
