<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SupportArticleRanking.ascx.vb" Inherits="Controls_SupportArticleRanking" %>
<%@ Register Src="CustomContent.ascx" TagName="CustomContent" TagPrefix="uc" %>

<script language="javascript">
function enableButton()
{
    document.getElementById('ContentPlaceHolderHome_ucSupportArticleRanking_btnSend').disabled = false;
    document.getElementById('ContentPlaceHolderHome_ucSupportArticleRanking_btnSend').src = '/CMS_IMAGES/btn_send.ccom';
}
</script>

<asp:Panel ID="pnlArticleRanking" runat="server">
    <div id="articleRankingCont" class="leftColBotCont complexCorners">
        <div class="content">
           <table width="100%">
                <tr>
                    <td><uc:CustomContent ID="ucSupportArticleRankingText1" runat="server" ContentKey="Support:ArticleRankingLineOne" /></td>
                    <td align="right">
                    <asp:RadioButtonList ID="rdoComment" runat="server" RepeatColumns="5" RepeatDirection="Horizontal"  Onclick="enableButton()">
                    <asp:ListItem Text="1" Value="1"></asp:ListItem>
                    <asp:ListItem Text="2" Value="2"></asp:ListItem>
                    <asp:ListItem Text="3" Value="3"></asp:ListItem>
                    <asp:ListItem Text="4" Value="4"></asp:ListItem>
                    <asp:ListItem Text="5" Value="5"></asp:ListItem>
                </asp:RadioButtonList>
                    </td>
                </tr>
                <tr runat='server' id='commentRow' visible='false'>
                    <td colspan='2'><uc:CustomContent ID="ucSupportArticleRankingText4" runat="server" 
                        ContentKey="Support:ArticleRankingLineFour" />
                    <br/>
                    <asp:TextBox ID='txtComments' runat='server' 
                        MaxLength="2000" Width='100%' TextMode='MultiLine' Rows='5' >
                        </asp:TextBox>
                    </td>
                    
                </tr>
                <tr>
                    <td valign="top"><uc:CustomContent ID="ucSupportArticleRankingText2" runat="server" ContentKey="Support:ArticleRankingLineTwo" /></td>
                        <td align="right" valign="top">
                        <asp:ImageButton ID="btnSend" runat="server"  disabled="disabled" 
                        ImageUrl="/CMS_IMAGES/send_grayedout.ccom"/>
                    </td>
                </tr>

            </table>
        </div>
    </div>
</asp:Panel>


<asp:Panel ID="pnlArticleRankingThanks" runat="server" Width="500" Visible="false">
    <div class="leftColBotCont complexCorners">
        <div class="content" style="text-align:center;">
            <br />
                <p>Your grading of the article has been sent. Thank you for your input.</p>
                   </div>
    </div>
</asp:Panel>






