<%@ Page Language="C#" AutoEventWireup="true" Inherits="PowerEasy.Module.General.WebSite.Comment.CommentPKZoneManage"
    CodeBehind="CommentPKZoneManage.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>
        <asp:Label ID="Label1" runat="server" Text="<%$ Res: Comment_CommentPKZoneManage_PKTitle,动易网络科技 %>" />
    </title>
    <style type="text/css">
        #Panel1_DropShadow
        {
            background-color: #CCCCCC;
            opacity: 0.45;
            left: 2px;
            top: 2px;
            position: absolute;
            width: 400px;
            height: 400px;
            visibility: visible;
            z-index: 1;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <table border="0" cellpadding="0" cellspacing="0" width="100%" class="border" style="background-color: White;
        height: 100%;">
        <tr>
            <td valign="top">
                <table border="0" cellpadding="1" cellspacing="1" width="100%">
                    <tr>
                        <td align="left" colspan="2" style="height: 20px">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 120px; color: Green; font-size: 14px" align="right">
                            <asp:Localize ID="llTheme" Text="<%$ Res: Comment_CommentPKZoneManage_llTheme,PK 主题： %>"
                                runat="server" />&nbsp;
                        </td>
                        <td align="left">
                            <span style="color: #3B78AF; font-size: 20px"><strong>
                                <pe:ExtendedLabel HtmlEncode="false" ID="LblTitle" runat="server" Text="" />
                            </strong></span>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 120px; color: #E9BD17; font-size: 14px" align="right">
                            <asp:Localize ID="llHead" Text="<%$ Res: Comment_CommentPKZoneManage_llHead,PK 对象： %>"
                                runat="server" />&nbsp;
                        </td>
                        <td align="left">
                            <span style="font-size: 14px">
                                <asp:Label ID="LblUserName" runat="server" Text="Label" />
                                <asp:Label ID="LblTime" runat="server" Text="" />
                            </span>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 120px; color: Red; font-size: 14px" align="right">
                            <asp:Localize ID="llSpeech" Text="<%$ Res: Comment_CommentPKZoneManage_llSpeech,PK 言论： %>"
                                runat="server" />&nbsp;
                        </td>
                        <td align="left">
                            <span style="font-size: 14px">——
                                <asp:Label ID="LblContent" runat="server" Text="" />
                            </span>
                        </td>
                    </tr>
                    <tr>
                        <td style="color: #000000" align="center" colspan="2">
                            <asp:Localize ID="llPKStatement" Text="<%$ Res: Comment_CommentPKZoneManage_llSpeech,PK 言论： %>"
                                runat="server" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td class="sustainfilter" align="right">
                            <strong>
                                <asp:Localize ID="llSupport" Text="<%$ Res: Comment_CommentPKZoneManage_llSupport,支持方： %>"
                                    runat="server" />&nbsp;<asp:Label ID="LblSustain" runat="server" Text="Label" />&nbsp;<asp:Label
                                        ID="Label5" runat="server" Text="<%$ Res: Comment_CommentPKZoneManage_PKLabel2,人 %>" /></strong>
                        </td>
                        <td style="width: 10%; background-color: #D4EAF7;" align="center">
                        </td>
                        <td class="opposefilter" align="left">
                            <strong>
                                <asp:Localize ID="llOpposition" Text="<%$ Res: Comment_CommentPKZoneManage_llOpposition,反对方： %>"
                                    runat="server" />&nbsp;<asp:Label ID="LblOppose" runat="server" Text="Label" />&nbsp;<asp:Label
                                        ID="Label6" runat="server" Text="<%$ Res: Comment_CommentPKZoneManage_PKLabel2,人 %>" /></strong>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td style="width: 45%; background-color: #37B6ED; font-size: 14px" align="left">
                            <pe:ExtendedLabel ID="ELblpkasq" HtmlEncode="false" runat="server"></pe:ExtendedLabel>
                        </td>
                        <td style="width: 3%; background-color: #37B6ED;">
                        </td>
                        <td style="width: 1%; background-color: #FFFFFF;">
                        </td>
                        <td style="width: 3%; background-color: #D8D8D8;">
                        </td>
                        <td style="width: 44%; background-color: #D8D8D8; font-size: 14px" align="right">
                            <pe:ExtendedLabel ID="ELblpkbsq" HtmlEncode="false" runat="server"></pe:ExtendedLabel>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <!-- 主辩论开始-->
        <tr>
            <td valign="top">
                <table border="0" cellpadding="2" cellspacing="0" width="100%">
                    <tr>
                        <!-- 赞同辩论开始-->
                        <td style="width: 45%; font-size: 14px" align="left" valign="top">
                            <table border="0" cellpadding="2" cellspacing="0" width="100%">
                                <tr>
                                    <td align="right">
                                        <a href="javascript:" onclick="javascript:publishPk(1)">
                                            <asp:Image ID="ImgPKSupport" runat="server" ToolTip="<%$ Res: Comment_CommentPKZoneManage_ImgPKSupport,支持，我有话要说 %>" /></a>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left">
                                        <asp:Repeater ID="RptAgreeNetizen" runat="server" OnItemDataBound="RptAgreeNetizen_ItemDataBound">
                                            <HeaderTemplate>
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <!-- 循环赞同辩论开始-->
                                                <table border="0" cellpadding="5" cellspacing="1" style="width: 100%; background-color: #92D7F4;">
                                                    <tr>
                                                        <td style="width: 100%; background-color: #C4E9FB;">
                                                            <asp:Label ID="LblAgreeNetizen" runat="server" Text="Label" />
                                                            <asp:Localize ID="llPKView" Text="<%$ Res: Comment_CommentPKZoneManage_llPKView,辩论观点： %>"
                                                                runat="server" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 100%; background-color: #FFFFFF;">
                                                            <asp:Label ID="LblAgreeNetizenContent" runat="server" Text="Label" />
                                                            <div style="border-top: 1px dashed #1A89DA; height: 1px; overflow: hidden;">
                                                            </div>
                                                            <asp:Localize ID="llPKTime" Text="<%$ Res: Comment_CommentPKZoneManage_llPKTime,时间： %>"
                                                                runat="server" /><asp:Label ID="LblAgreeNetizenTime" runat="server" Text="" />
                                                            <asp:Localize ID="llPKFrom" Text="<%$ Res: Comment_CommentPKZoneManage_llPKFrom,来自： %>"
                                                                runat="server" /><asp:Label ID="LblAgreeNetizenIp" runat="server" Text="" />
                                                            <asp:Label ID="LblAgreeDelete" runat="server" Text="" />
                                                        </td>
                                                    </tr>
                                                </table>
                                                <br />
                                                <!-- 循环赞同辩论结束-->
                                            </ItemTemplate>
                                            <FooterTemplate>
                                            </FooterTemplate>
                                        </asp:Repeater>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center">
                                        <pe:AspNetPager ID="AgreePager" runat="server" OnPageChanged="AgreePager_PageChanged"
                                            FirstPageText="<%$ Res: Comment_CommentPKZoneManage_FirstPageText,首页 %>" InvalidPageIndexErrorString="<%$ Res: Comment_CommentPKZoneManage_InvalidPageIndexErrorString,页索引无效！ %>"
                                            LastPageText="<%$ Res: Comment_CommentPKZoneManage_LastPageText,尾页 %>" NavigationToolTipTextFormatString="<%$ Res: Comment_CommentPKZoneManage_NavigationToolTipTextFormatString,转到第{0}页 %>"
                                            NextPageText="<%$ Res: Comment_CommentPKZoneManage_NextPageText,下一页 %>" PageIndexOutOfRangeErrorString="<%$ Res: Comment_CommentPKZoneManage_PageIndexOutOfRangeErrorString,页数超出范围！ %>"
                                            PrevPageText="<%$ Res: Comment_CommentPKZoneManage_PrevPageText,上一页 %>" SubmitButtonText="<%$ Res: Comment_CommentPKZoneManage_SubmitButtonText,转到 %>">
                                        </pe:AspNetPager>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <!-- 赞同辩论结束-->
                        <td style="width: 3%; background-color: #37B6ED;">
                        </td>
                        <td style="width: 1%; background-color: #FFFFFF;">
                        </td>
                        <td style="width: 3%; background-color: #D8D8D8;">
                        </td>
                        <!-- 反对辩论开始-->
                        <td style="width: 44%; font-size: 14px" align="left" valign="top">
                            <table border="0" cellpadding="2" cellspacing="0" width="100%">
                                <tr>
                                    <td align="right">
                                        <a href="javascript:" onclick="javascript:publishPk(-1)">
                                            <asp:Image ID="ImgPKOpposition" runat="server" ToolTip="<%$ Res: Comment_CommentPKZoneManage_ImgPKOpposition,反对，我有话要说 %>" /></a>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left">
                                        <asp:Repeater ID="RptOpposeNetizen" runat="server" OnItemDataBound="RptOpposeNetizen_ItemDataBound">
                                            <HeaderTemplate>
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <!-- 循环反对辩论开始-->
                                                <table border="0" cellpadding="5" cellspacing="1" style="width: 100%; background-color: #C4C4C4;">
                                                    <tr>
                                                        <td style="width: 100%; background-color: #D8D8D8;">
                                                            <asp:Label ID="LblOpposeNetizen" runat="server" Text="Label" />
                                                            <asp:Localize ID="Localize10" Text="<%$ Res: Comment_CommentPKZoneManage_llPKView,辩论观点： %>"
                                                                runat="server" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 100%; background-color: #FFFFFF;">
                                                            <asp:Label ID="LblOpposeNetizenContent" runat="server" Text="Label" />
                                                            <div style="border-top: 1px dashed #1A89DA; height: 1px; overflow: hidden;">
                                                            </div>
                                                            <asp:Localize ID="Localize11" Text="<%$ Res: Comment_CommentPKZoneManage_llPKTime,时间： %>"
                                                                runat="server" /><asp:Label ID="LblOpposeNetizenTime" runat="server" Text="" />
                                                            <asp:Localize ID="Localize12" Text="<%$ Res: Comment_CommentPKZoneManage_llPKFrom,来自： %>"
                                                                runat="server" /><asp:Label ID="LblOpposeNetizenIp" runat="server" Text="" />
                                                            <asp:Label ID="LblOpposeDelete" runat="server" Text="" />
                                                        </td>
                                                    </tr>
                                                </table>
                                                <br />
                                                <!-- 循环反对辩论结束-->
                                            </ItemTemplate>
                                            <FooterTemplate>
                                            </FooterTemplate>
                                        </asp:Repeater>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center">
                                        <pe:AspNetPager ID="OpposePager" runat="server" OnPageChanged="OpposePager_PageChanged"
                                            FirstPageText="<%$ Res: Comment_CommentPKZoneManage_FirstPageText,首页 %>" InvalidPageIndexErrorString="<%$ Res: Comment_CommentPKZoneManage_InvalidPageIndexErrorString,页索引无效！ %>"
                                            LastPageText="<%$ Res: Comment_CommentPKZoneManage_LastPageText,尾页 %>" NavigationToolTipTextFormatString="<%$ Res: Comment_CommentPKZoneManage_NavigationToolTipTextFormatString,转到第{0}页 %>"
                                            NextPageText="<%$ Res: Comment_CommentPKZoneManage_NextPageText,下一页 %>" PageIndexOutOfRangeErrorString="<%$ Res: Comment_CommentPKZoneManage_PageIndexOutOfRangeErrorString,页数超出范围！ %>"
                                            PrevPageText="<%$ Res: Comment_CommentPKZoneManage_PrevPageText,上一页 %>" SubmitButtonText="<%$ Res: Comment_CommentPKZoneManage_SubmitButtonText,转到 %>">
                                        </pe:AspNetPager>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <!-- 反对辩论结束-->
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <table border="0" cellpadding="2" cellspacing="2" width="100%">
                    <tr>
                        <td class="sustainfilter2" align="left">
                            <strong>
                                <asp:Localize ID="Localize13" Text="<%$ Res: Comment_CommentPKZoneManage_llSupport,支持方： %>"
                                    runat="server" />&nbsp;<asp:Label ID="LblSustain2" runat="server" Text="Label" />&nbsp;<asp:Label
                                        ID="Label4" runat="server" Text="<%$ Res: Comment_CommentPKZoneManage_PKLabel2,人 %>" /></strong>
                        </td>
                        <td class="opposefilter2" align="right">
                            <strong>
                                <asp:Localize ID="Localize14" Text="<%$ Res: Comment_CommentPKZoneManage_llOpposition,反对方： %>"
                                    runat="server" />&nbsp;<asp:Label ID="LblOppose2" runat="server" Text="Label" />&nbsp;<asp:Label
                                        ID="Label3" runat="server" Text="<%$ Res: Comment_CommentPKZoneManage_PKLabel2,人 %>" /></strong>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <!-- 中立辩论开始-->
        <tr>
            <td valign="top">
                <table border="0" cellpadding="2" cellspacing="2" width="100%">
                    <tr>
                        <td align="left" style="width: 100%; background-color: #37B6ED;">
                            <pe:ExtendedLabel ID="ELblpkcsq" HtmlEncode="false" runat="server"></pe:ExtendedLabel>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" style="width: 100%;">
                            <a href="javascript:" onclick="javascript:publishPk(0)">
                                <asp:Image ID="ImgPKNeutral" runat="server" ToolTip="<%$ Res: Comment_CommentPKZoneManage_ImgPKNeutral,我中立，我有话要说 %>" />
                        </td>
                    </tr>
                    <tr>
                        <td align="left" style="width: 100%;">
                            <asp:Repeater ID="RptNeutralismNetizen" runat="server" OnItemDataBound="RptNeutralismNetizen_ItemDataBound">
                                <HeaderTemplate>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <!-- 循环中立辩论开始-->
                                    <table border="0" cellpadding="5" cellspacing="1" style="width: 100%; background-color: #92D7F4;">
                                        <tr>
                                            <td style="width: 100%; background-color: #C4E9FB;">
                                                <asp:Label ID="LblNeutralismNetizen" runat="server" Text="Label" />
                                                <asp:Localize ID="Localize15" Text="<%$ Res: Comment_CommentPKZoneManage_llPKView,辩论观点： %>"
                                                    runat="server" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 100%; background-color: #FFFFFF;">
                                                <asp:Label ID="LblNeutralismNetizenContent" runat="server" Text="Label" />
                                                <div style="border-top: 1px dashed #1A89DA; height: 1px; overflow: hidden;">
                                                </div>
                                                <asp:Localize ID="Localize16" Text="<%$ Res: Comment_CommentPKZoneManage_llPKTime,时间： %>"
                                                    runat="server" /><asp:Label ID="LblNeutralismNetizenTime" runat="server" Text="" />
                                                <asp:Localize ID="Localize17" Text="<%$ Res: Comment_CommentPKZoneManage_llPKFrom,来自： %>"
                                                    runat="server" /><asp:Label ID="LblNeutralismNetizenIp" runat="server" Text="" />
                                                <asp:Label ID="LblNeutralismDelete" runat="server" Text="" />
                                            </td>
                                        </tr>
                                    </table>
                                    <br />
                                    <!-- 循环中立辩论结束-->
                                </ItemTemplate>
                                <FooterTemplate>
                                </FooterTemplate>
                            </asp:Repeater>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class="neutralismfilter" align="right">
                <strong>
                    <asp:Localize ID="llNeutral" Text="<%$ Res: Comment_CommentPKZoneManage_llNeutral,中立方： %>"
                        runat="server" />&nbsp;<asp:Label ID="LblNeutralismNetizen" runat="server" Text="Label" />&nbsp;<asp:Label
                            ID="Label2" runat="server" Text="<%$ Res: Comment_CommentPKZoneManage_PKLabel2,人 %>" /></strong>&nbsp;&nbsp;
            </td>
        </tr>
        <tr>
            <td align="center">
                <pe:AspNetPager ID="NeutralismPager" runat="server" OnPageChanged="NeutralismPager_PageChanged"
                    FirstPageText="<%$ Res: Comment_CommentPKZoneManage_FirstPageText,首页 %>" InvalidPageIndexErrorString="<%$ Res: Comment_CommentPKZoneManage_InvalidPageIndexErrorString,页索引无效！ %>"
                    LastPageText="<%$ Res: Comment_CommentPKZoneManage_LastPageText,尾页 %>" NavigationToolTipTextFormatString="<%$ Res: Comment_CommentPKZoneManage_NavigationToolTipTextFormatString,转到第{0}页 %>"
                    NextPageText="<%$ Res: Comment_CommentPKZoneManage_NextPageText,下一页 %>" PageIndexOutOfRangeErrorString="<%$ Res: Comment_CommentPKZoneManage_PageIndexOutOfRangeErrorString,页数超出范围！ %>"
                    PrevPageText="<%$ Res: Comment_CommentPKZoneManage_PrevPageText,上一页 %>" SubmitButtonText="<%$ Res: Comment_CommentPKZoneManage_SubmitButtonText,转到 %>">
                </pe:AspNetPager>
            </td>
        </tr>
        <!-- 中立辩论结束-->
        <!-- 主辩论结束-->
    </table>
    <!-- 发表辩论开始-->
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <asp:Panel ID="Panel1" runat="server" Height="400px" Width="400px" Style="display: none"
        CssClass="modalPopup">
        <table style="width: 100%; height: 100%; background: none repeat scroll 0 0 #FFFFFF;
            margin: 0 auto;" cellpadding="2" cellspacing="1" class="border">
            <tr style="background: none repeat scroll 0 0 #E6EFF8;">
                <td class="title" align="center" colspan="2">
                    <b>
                        <asp:Label ID="LblItemTitle" runat="server" Text="Label" /></b>
                </td>
            </tr>
            <tr class="tdbg" style="background: none repeat scroll 0 0 #E6EFF8;">
                <td align="right" style="width: 120px;">
                    <asp:Localize ID="llPKPosition" Text="<%$ Res: Comment_CommentPKZoneManage_llPKPosition,您的立场： %>"
                        runat="server" />&nbsp;
                </td>
                <td>
                    <input type="radio" name="RadlPosition" value="1" />
                    <asp:Localize ID="Localize20" Text="<%$ Res: Comment_CommentPKZoneManage_RadlPositionItem1,赞同 %>"
                        runat="server" />
                    <input type="radio" name="RadlPosition" value="-1" />
                    <asp:Localize ID="Localize21" Text="<%$ Res: Comment_CommentPKZoneManage_RadlPositionItem3,反对 %>"
                        runat="server" />
                    <input type="radio" name="RadlPosition" value="0" checked="checked" />
                    <asp:Localize ID="Localize22" Text="<%$ Res: Comment_CommentPKZoneManage_RadlPositionItem2,中立 %>"
                        runat="server" />
                </td>
            </tr>
            <tr class="tdbg" style="background: none repeat scroll 0 0 #E6EFF8;">
                <td align="right">
                    <asp:Localize ID="llQuote" Text="<%$ Res: Comment_CommentPKZoneManage_llQuote,引用： %>"
                        runat="server" />&nbsp;
                </td>
                <td>
                    <asp:Label ID="LblItemContent" runat="server" Text="Label" />
                </td>
            </tr>
            <tr class="tdbg" style="background: none repeat scroll 0 0 #E6EFF8;">
                <td align="right" style="height: 17px">
                    <asp:Localize ID="Localize24" Text="<%$ Res: Comment_CommentPKZoneManage_llExTitle,标题： %>"
                        runat="server" />&nbsp;
                </td>
                <td align="left" style="height: 17px">
                    <input type="text" name="ItemTitle" value="" id="TxtItemTitle" maxlength="5" style="width: 250px;"
                        class="inputtext" />
                </td>
            </tr>
            <tr class="tdbg" style="background: none repeat scroll 0 0 #E6EFF8;">
                <td align="right">
                    <asp:Localize ID="Localize25" Text="<%$ Res: Comment_CommentPKZoneManage_llCommentRestore,辩论： %>"
                        runat="server" />&nbsp;
                </td>
                <td align="left">
                    <textarea name="ItemContent" id="ItemContent" rows="" cols="" style="width: 300px;
                        height: 200px"></textarea>
                </td>
            </tr>
            <tr class="tdbg" style="background: none repeat scroll 0 0 #E6EFF8;">
                <td align="right">
                    <asp:Localize ID="llCurrently" Text="<%$ Res: Comment_CommentPKZoneManage_llCurrently,当前： %>"
                        runat="server" />&nbsp;
                </td>
                <td align="left">
                    <asp:Label ID="LblState" runat="server" Text="匿名发表" />
                </td>
            </tr>
            <tr class="tdbg" id="trValidCode" visible="false" runat="server" style="background: none repeat scroll 0 0 #E6EFF8;">
                <td align="right">
                    <asp:Localize ID="Localize1" Text="<%$ Res: Comment_CommentPKZoneManage_llPKValidCode,验证码： %>"
                        runat="server" />&nbsp;
                </td>
                <td align="left">
                    <input name="TxtValidCode" type="text" maxlength="6" value="" id="TxtValidCode" size="12"
                        onfocus="this.select();" />
                    <img id="VcodeLogOn" title="看不清楚，换一个" onclick="refreshValidateCodeImage(this);" src="<%=Path %>Controls/validateCodeImage.aspx"
                        align="absmiddle" style="border: none; cursor: pointer;" />
                </td>
            </tr>
            <tr class="tdbg" style="background: none repeat scroll 0 0 #E6EFF8;">
                <td align="center" colspan="2">
                    <asp:Button ID="OkButton" OnClientClick="return checkValidCode();" UseSubmitBehavior="false"
                        CausesValidation="false" runat="server" Text="<%$ Res: Comment_CommentPKZoneManage_PKOkButton,确定 %>"
                        OnClick="OkButton_Click" />&nbsp;&nbsp;<asp:Button ID="CancelButton" runat="server"
                            Text="<%$ Res: Comment_CommentPKZoneManage_BtnResetEx,取消 %> " />
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:HiddenField ID="HdnPKZone" runat="server" />
    <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="HdnPKZone"
        PopupControlID="Panel1" CancelControlID="CancelButton" BackgroundCssClass="modalBackground"
        DropShadow="true" />
    <!-- 发表辩论结束-->
    <input id="generalId" type="hidden" value="<%=generalId %>" />
    <script language="javascript" type="text/javascript">
        function checkValidCode() {
            if (document.getElementById("ItemContent").value == '') {
                alert("请输入辨论内容");
                document.getElementById("ItemContent").focus();
                return false;
            }
            var txtValidCode = document.getElementById("TxtValidCode");
            if (txtValidCode != null) {
                if (txtValidCode.value == '') {
                    alert("请输入验证码！");
                    txtValidCode.focus();
                    return false;
                }
            }

            var checkValidCode;
            checkValidCode = "true";

            var x = new AjaxRequest('XML', 'status');
            x.para = ['generalId=' + document.getElementById("generalId").value, 'TxtValidCode=' + (document.getElementById("TxtValidCode")==null? '' : document.getElementById("TxtValidCode").value)];
            x.paratype = ['nohtml', 'nohtml', 'nohtml']
            x.post('CheckPKZoneValidCode', '<%=Path %>ajax.aspx', function (s) {
                var xml = x.createXmlDom(s);
                var status = xml.getElementsByTagName("status")[0].firstChild.data;

                if (status == "checkCodeError") {
                    checkValidCode = "false";
                    alert("您输入的验证码和系统产生的不一致，请重新输入！");
                }
                else {
                    __doPostBack('OkButton', '')
                    return true;
                }

                if (checkValidCode == "true") {
                    var validCode = document.getElementById("TxtValidCode");
                    if (validCode != null) {
                        document.getElementById("TxtValidCode").value = '';
                    }
                }
                var VcodeLogOn = document.getElementById("VcodeLogOn");
                if (VcodeLogOn != null) {
                    refreshValidateCodeImage(VcodeLogOn);
                }
            });





        }
        function publishPk(type) {
            switch (type) {
                case 1:
                    document.form1.RadlPosition[0].checked = true;
                    break;
                case -1:
                    document.form1.RadlPosition[1].checked = true;
                    break;
                case 0:
                    document.form1.RadlPosition[2].checked = true;
                    break;
            }
            var popup = $find('ModalPopupExtender1');
            popup.show();
        }

        function refreshValidateCodeImage(ValidateCodeImageControl) {
            ValidateCodeImageControl.src = ValidateCodeImageControl.src + '?code=' + randomNum(10);
        }
        function randomNum(n) {
            var rnd = '';
            for (var i = 0; i < n; i++)
                rnd += Math.floor(Math.random() * 10);
            return rnd;
        }

    </script>
    </form>
</body>
</html>
