﻿function UserLoginCheck()
{
    if(document.getElementById("ctl00_userLogin_UC1_txt_UserName").value == "")
    {
        alert("Please fill in your e_mail address.");
        return false;
    }
    var username = document.getElementById("ctl00_userLogin_UC1_txt_UserName").value;
    var EmailReg=/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
    if(!EmailReg.test(username))
    {
        alert("Your e_mail address is invalid.");
        return false;
    }
    if(document.getElementById("ctl00_userLogin_UC1_txt_Password").value == "")
    {
        alert("Please fill in your password.");
        return false;
    }
    return true
}
function IsLoginOk()
{
    if(UserLoginCheck())
    {
       __doPostBack('ctl00$userLogin_UC1$lb_Login','')
    }
}


