﻿// JScript 文件

function LoginCheck()
{
    var E_Mail = document.getElementById("Left1_Email").value;
    var Password = document.getElementById("Left1_Password").value;
    if(E_Mail == "")
    {
        alert("Please Fill in Your Email.");
        return false;
    }
    var EmailReg=/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
    if(!EmailReg.test(E_Mail))
    {
        alert("Your password is invalid.");
        return false;        
    }
    if(Password == "")
    {
        alert("Please Fill in Your password.");
        return false;
    }
}

function PLLoginCheck()
{
    var E_Mail = document.getElementById("PLLeftTop1_Email").value;
    var Password = document.getElementById("PLLeftTop1_Password").value;
    if(E_Mail == "")
    {
        alert("Please Fill in Your Email.");
        return false;
    }
    var EmailReg=/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
    if(!EmailReg.test(E_Mail))
    {
        alert("Your password is invalid.");
        return false;        
    }
    if(Password == "")
    {
        alert("Please Fill in Your password.");
        return false;
    }
}
