﻿String.prototype.trim = function() {
    return this.replace(/^\s+|\s+$/g, "");
}

function viewedAgreement(oSrc, args)
    {
    args.IsValid = false;
    }
function checkEmail(oSrc, args) {
    var email= args.Value.trim()
    if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email)){
    args.IsValid = true;
    }
    else
    {
      args.IsValid = false;
    }
}

function isStrongPassword(oSrc, args) 
{
    var password= args.Value;
    
   // if(/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s).*$/.test(password))
    if(password.length>6)
    {
        args.IsValid = true;
    }
    else
    {
      args.IsValid = false;
    }
}

