﻿// JScript 文件
var username;
var password;
var code;
PersonUser='<div class="login_users"><form action="../acton.aspx"><ul>\
<li>用户名：<input id="users_names" style="{width:120px; height:18px;}"></input><br></li>\
<li>密&nbsp;&nbsp;码：<input type="password" id="users_pawd" style="{width:120px; height:18px;}"></li>\
<li>验证码：<input id="users_code" style="{width:80px; height:15px;}"><img id="chk_img" onclick="checkwd_reload()" style="cursor: pointer;" align="absbottom" /></td></li>\
<li><a href="../"  target="_blank"><img src="../images/webimages/login/forgetpassword.jpg" style="{width:87px; height:19px; border:0px;}"></a></li>\
<li><input type="image" src="../images/webimages/login/DengLu.jpg" style="{width:42px; height:20px; border:0px;}" onclick="return Denglu();">\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../RegInfo.aspx" target="_blank"><image src="../images/webimages/login/RegUser.jpg" style="{width:42px; height:20px; border:0px;}"></a>\
</li>\
</ul></form></div>';

function OpenNews()
{
    window.open('../RegInfo.aspx');
    return true;
}
function Change_sf(info)
{
    if(info=="q")
        div_shenfen.innerHTML="企业";
    else
        div_shenfen.innerHTML="个人";
}
function Denglu()
{
   
    username=document.getElementById("users_names").value;
    password=document.getElementById("users_pawd").value;
    code=document.getElementById("users_code").value;
    chkimg=document.getElementById("chk_img");
    if(username=="")
    {
        _error_msg_show(Strings.NoAccount,'','',Strings.Msg_Title);
        return false;
    } 
    if(password=="")
    {
        _error_msg_show(Strings.NoPassword,'','',Strings.Msg_Title);
        return false;
    } 
    if(code=="")
    {
        _error_msg_show(Strings.VerifyCode,'','',Strings.Msg_Title);
        return false;
    } 
    //alert(include_User_Login.RetCode('s').value);
    
   return true;
}

