﻿function Clears() {
    Ext.getDom('Msg').innerHTML = '';
    Ext.getDom('Msg').className = '';
};
function CookieEnable() {
    var result = false;
    if (navigator.cookiesEnabled)
        return true;
    document.cookie = "testcookie=yes;";
    var cookieSet = document.cookie;
    if (cookieSet.indexOf("testcookie=yes") > -1)
        result = true;
    document.cookie = "";
    return result;
};
function CkForm() {
    if (Ext.getDom('tbLoginName').value == '') {
        Ext.getDom('tbLoginName').focus();
        alert('系统提示：用户名为空！');
        return false;
    }
    if (Ext.getDom('tbPassWord').value == '') {
        Ext.getDom('tbPassWord').focus();
        alert('系统提示：密码为空！');
        return false;
    }
    if (Ext.getDom('ccode')) {
        if (Ext.getDom('ccode').value == '') {
            Ext.getDom('ccode').focus();
            alert('系统提示：认证码为空！');
            return false;
        }
    }
    if (Ext.getDom('vcode')) {
        if (Ext.getDom('vcode').value == '') {
            Ext.getDom('vcode').focus();
            alert('系统提示：验证码为空！');
            return false;
        }
    }
};
