﻿// 用户注册js文件 JScript 文件
function ResetAccountInfo()
{
    document.getElementById("Sign_Up_UC1_Email").value = "";
    document.getElementById("Sign_Up_UC1_password").value = "";
    document.getElementById("Sign_Up_UC1_pwdconfirmation").value = "";
}

var IsExist = "0";
function CheckAccountInfo()
{
    var EmailReg=/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
    var Email = document.getElementById("Sign_Up_UC1_Email").value;
    var Password = document.getElementById("Sign_Up_UC1_password").value;
    var PwdConfirm = document.getElementById("Sign_Up_UC1_pwdconfirmation").value;
    if(Email == "")
    {
        alert("Please Fill in Your Email");
        return false;
    }
    if(!EmailReg.test(Email))
    {
        alert("Your e_mail is invalid");
        return false;
    }
    if(Password == "")
    {
        alert("Please Fill in Your Password");
        return false;
    }
    if(PwdConfirm != Password)
    {
        alert("The Password is invalid")
        return false;
    }
}
function addFav(url, title)
{
    try 
    {
        window.external.AddFavorite(url, title);
    }
    catch (ex)
    {
        if ((typeof window.sidebar == 'object') && (typeof window.sidebar.addPanel == 'function'))
        window.sidebar.addPanel (title, url,'');
    }
}
function LoginCheck1()
{
    var E_Mail = document.getElementById("Email1").value;
    var Password = document.getElementById("Password1").value;
    if(E_Mail == "")
    {
        alert("Please Fill in Your Email");
        return false;
    }
    if(Password == "")
    {
        alert("Please Fill in Your password");
        return false;
    }
}



