﻿function CheckCode() {
    var tb_cc = $("#tb_checkcode");
    if (tb_cc.val().length != 0) {
        if (Xfz_Way.BackCheckCode().value != tb_cc.val().toLowerCase()) {
            alert('输入错误，请重新输入！');
            tb_cc.val("");
            tb_cc.focus();
            $("#img_checkcode").attr("src", "System/CheckCode.aspx?" + Math.random());
            return false;
        }
        else {
            return true;
        }
    }
}
function ShowReview() {
    if ($("#lb_reviewcount").html() > 0) {
        $("#result").show();
        $("#btn_comment").attr("disabled", true);
    }
}
function ShowCommentButton() {
    if ($("#lb_reviewcount").html() == 0) {
        $("#btn_comment").attr("disabled", true);
    }
}