﻿function ValidateEmail(elmName)
{
    var emailPat = /^(\".*\"|[A-Za-z]\w*)@(\[\d{1,3}(\.\d{1,3}){3}]|[A-Za-z]\w*(\.[A-Za-z]\w*)+)$/;
    var emailid=document.getElementById(elmName).value;
    var matchArray = emailid.match(emailPat);
    if (matchArray == null)
    {
               alert("Lütfen "+ document.getElementById(elmName).label +" alanını doğru olarak giriniz!");
               document.getElementById(elmName).focus();
               return false;
    }

     return true;
}
function ValidateRequired(elmName)
{
    if (document.getElementById(elmName).value=="")
    {
             alert("Lütfen "+ document.getElementById(elmName).label +" alanını boş bırakmayınız!");
             document.getElementById(elmName).focus();
             return false;
    }
}