﻿
    function clientRegister()
    {
        hideDialog('customerLogin');
        showDialog('customerReg');
        getErea(1);
        change(0);
        document.getElementById("clientRegister").Fpasswd.value = "";
        document.getElementById("clientRegister").Fpasswd1.value = "";
        document.getElementById("clientRegister").verifycode.value = "";
        GetVerifyCode('registerverifyimg');
    }
    
    function agentRegister()
    {
        hideDialog('agentLogin');
        showDialog('agentReg');    
        getErea(2);
        change(0);    
        document.getElementById("agentRegister").Fpasswd.value = "";
        document.getElementById("agentRegister").Fpasswd1.value = "";
        document.getElementById("agentRegister").verifycode.value = "";
        GetVerifyCode('registerverifyimg2');
    }   

    //下面处理几个按钮
    function consumerLogin()
    {
        if (checkLogin('customerLogin_pnl_0'))
        {
            hideDialog('customerLogin');        
            document.getElementById('customerLogin_pnl_0').submit();
        }
    }

    function agentLogin()
    {
        if (checkLogin('agentLogin_pnl_0'))
        {
            hideDialog('agentLogin');
            document.getElementById('agentLogin_pnl_0').submit();
        }
    }

    function ClientLogin()
    {
        showDialog('customerLogin');
        document.getElementById("customerLogin_pnl_0").PS.value = "";
        document.getElementById("customerLogin_pnl_0").VC.value = "";
    }

    function AgentLogin()
    {
        showDialog('agentLogin');
        document.getElementById("agentLogin_pnl_0").PS.value = "";
        document.getElementById("agentLogin_pnl_0").VC.value = "";
    }