<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Assessment_AdmissionMarkEntry, App_Web_0bicqyzg" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="leftUlMenu">
                                        <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="112"
                                            Visible="true" runat="server" />
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader1WireBox card card-box">
                        <div class="himsBoxHeader card-head">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <i class="fas fa-edit"></i>
                                        <asp:Label ID="Label1" runat="server" Text="Admission Mark Entry"></asp:Label>
                                    </header>
                                </div>
                            </div>
                        </div>


                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controLabelWidth">
                                            <asp:Label ID="ClassLabel" Text="Class" runat="server"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="ClassDropDownList" SkinID="CustomWidthDropDownList"
                                                CssClass="form-control" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" AutoPostBack="True"
                                                OnSelectedIndexChanged="ClassDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>

                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controLabelWidth">
                                            <asp:Label ID="CriteriaLabel" Text="Criteria Name" runat="server"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:DropDownList runat="server" ID="CriteriaDropDownList" SkinID="CustomWidthDropDownList"
                                              CssClass="form-control" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" AutoPostBack="True"
                                                OnSelectedIndexChanged="CriteriaDropDownList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div id="Div1" class="himssuHeader6WireBox pTop5 col-md-12 pTop5" runat="server" visible="true">
                                              <div class="pTop5 col-md-12 alignCenter">
                                                <%--   <asp:FileUpload ID="FileUpload1" runat="server" SkinID="CustomWidthFileUpload" Width="75px" />--%>
                                                <asp:HiddenField ID="DetailHiddenField" runat="server" />
                                                <asp:Button ID="UploadToExcelLinkButton" Text="&#xf093; Export" runat="Server" OnClick="UploadToExcelLinkButton_Click"
                                                    SkinID="0" CssClass="fa btn btn-examcommon m-b-10" />
                                                <asp:Button ID="AddFileButton" Text="&#xf019; Import From Excel" runat="Server" OnClick="AddFileButton_Click"
                                                    SkinID="0" CssClass="fas btn btn-examcommon m-b-10" />
                                                <asp:Button ID="ImportLinkButton" Text="&#xf0e2; Refresh" runat="Server" OnClick="ImportLinkButton_Click"
                                                    SkinID="0" CssClass="fas btn btn-refresh m-b-10" />

                                            </div>





                                        <div class="himsBoxHeader" id="GridViewPagerDiv" runat="server" visible="True">
                                            <div class="himsBoxHeader card-head inner" id="Div2" runat="server" visible="True">
                                                    <div class="leftdiv">
                                                    </div>
                                                    <div class="himsBoxTitle">
                                                        <div class="headerText">
                                                            <%--    <header>
                                                <asp:Label ID="GridViewLabel" Text="Student List For Mark Entry" runat="server" />
                                                    </header>--%>
                                                            <div class="pull-right col-md-6 display-flex mt-7">
                                                                <asp:TextBox ID="FromTextBox" runat="server" AutoPostBack="false" SkinID="CustomWidthTextBox" Visible="false" Style="top: 10px; position: relative;"></asp:TextBox>
                                                                <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" TargetControlID="FromTextBox" FilterType="Numbers">
                                                                </cc1:FilteredTextBoxExtender>
                                                                &nbsp;&nbsp;&nbsp;&nbsp; 
                                                <asp:TextBox ID="ToTextBox" runat="server" SkinID="CustomWidthTextBox" Visible="false" Style="top: 10px; position: relative;"></asp:TextBox>
                                                                <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="ToTextBox" FilterType="Numbers">
                                                                </cc1:FilteredTextBoxExtender>
                                                                &nbsp;&nbsp;&nbsp;&nbsp;      
                                                                <asp:Button ID="GenerateButton" runat="server" SkinID="0" Text="Generate" CssClass="fas btn btn-generate" Visible="false" OnClick="GenerateButton_Click" />
                                                            </div>


                                                        </div>

                                                    </div>

                                                </div>

                                            <div class="leftdiv"></div>
                                                <div id="GridViewMessageDiv" class="himsBoxContentMsg" runat="server" visible="False">
                                                    </div>
                                            <div class="himsBoxContent table-responsive">

                                                <asp:GridView ID="CriteriaMarkEntryGridview" runat="server" Width="100%" AutoGenerateColumns="False"
                                                    EmptyDataText="No Records Found !!"
                                                    AllowPaging="false" ShowHeader="True"
                                                    DataKeyNames="FormId"
                                                    CssClass="table table-striped table-bordered table-hover">
                                                    <Columns>
                                                        <asp:BoundField DataField="FormId" HeaderText="Admission Form Id" Visible="false"></asp:BoundField>
                                                        <%--<asp:BoundField DataField="FormNo" HeaderText="Form No"></asp:BoundField>
                                                        <asp:BoundField DataField="FirstName" HeaderText="Student Name"></asp:BoundField>--%>

                                                        <asp:TemplateField HeaderText="Form No" ItemStyle-Wrap="true" ItemStyle-Width="200px" HeaderStyle-Width="200px" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="FormNoLabel" runat="server" Text='<%# Bind("FormNo") %>'>' </asp:Label>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Name" ItemStyle-Wrap="true" ItemStyle-Width="200px" HeaderStyle-Width="200px" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="StudentNameLabel" runat="server" Text='<%# Bind("FirstName") %>'>' </asp:Label>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Activity1" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <HeaderTemplate>
                                                                <asp:Label ID="Activity1HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                            </HeaderTemplate>
                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="Activity1TextBox" SkinID="CustomWidthTextBox" runat="server" Width="100%"
                                                                    MaxLength="100" onkeyup="if (/[^0-9\.]/g.test(this.value)) this.value = this.value.replace(/[^0-9\.]/g,'')"
                                                                    Text=''></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Activity2" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <HeaderTemplate>
                                                                <asp:Label ID="Activity2HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                            </HeaderTemplate>
                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="Activity2TextBox" SkinID="CustomWidthTextBox" runat="server" Width="100%"
                                                                    MaxLength="100" onkeyup="if (/[^0-9\.]/g.test(this.value)) this.value = this.value.replace(/[^0-9\.]/g,'')"
                                                                    Text=''></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Activity3" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <HeaderTemplate>
                                                                <asp:Label ID="Activity3HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                            </HeaderTemplate>
                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="Activity3TextBox" SkinID="CustomWidthTextBox" runat="server" Width="100%"
                                                                    MaxLength="100" onkeyup="if (/[^0-9\.]/g.test(this.value)) this.value = this.value.replace(/[^0-9\.]/g,'')"
                                                                    Text=''></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Activity4" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <HeaderTemplate>
                                                                <asp:Label ID="Activity4HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                            </HeaderTemplate>
                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="Activity4TextBox" SkinID="CustomWidthTextBox" runat="server" Width="100%"
                                                                    MaxLength="100" onkeyup="if (/[^0-9\.]/g.test(this.value)) this.value = this.value.replace(/[^0-9\.]/g,'')"
                                                                    Text=''></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Activity5" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <HeaderTemplate>
                                                                <asp:Label ID="Activity5HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                            </HeaderTemplate>
                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="Activity5TextBox" SkinID="CustomWidthTextBox" runat="server" Width="100%"
                                                                    MaxLength="100" onkeyup="if (/[^0-9\.]/g.test(this.value)) this.value = this.value.replace(/[^0-9\.]/g,'')"
                                                                    Text=''></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Activity6" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <HeaderTemplate>
                                                                <asp:Label ID="Activity6HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                            </HeaderTemplate>
                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="Activity6TextBox" SkinID="CustomWidthTextBox" runat="server" Width="100%"
                                                                    MaxLength="100" onkeyup="if (/[^0-9\.]/g.test(this.value)) this.value = this.value.replace(/[^0-9\.]/g,'')"
                                                                    Text=''></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Activity7" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <HeaderTemplate>
                                                                <asp:Label ID="Activity7HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                            </HeaderTemplate>
                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="Activity7TextBox" SkinID="CustomWidthTextBox" runat="server" Width="100%"
                                                                    MaxLength="100" onkeyup="if (/[^0-9\.]/g.test(this.value)) this.value = this.value.replace(/[^0-9\.]/g,'')"
                                                                    Text=''></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Activity8" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <HeaderTemplate>
                                                                <asp:Label ID="Activity8HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                            </HeaderTemplate>
                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="Activity8TextBox" SkinID="CustomWidthTextBox" runat="server" Width="100%"
                                                                    MaxLength="100" onkeyup="if (/[^0-9\.]/g.test(this.value)) this.value = this.value.replace(/[^0-9\.]/g,'')"
                                                                    Text=''></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Activity9" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <HeaderTemplate>
                                                                <asp:Label ID="Activity9HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                            </HeaderTemplate>
                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="Activity9TextBox" SkinID="CustomWidthTextBox" runat="server" Width="100%"
                                                                    MaxLength="100" onkeyup="if (/[^0-9\.]/g.test(this.value)) this.value = this.value.replace(/[^0-9\.]/g,'')"
                                                                    Text=''></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Activity10" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <HeaderTemplate>
                                                                <asp:Label ID="Activity10HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                            </HeaderTemplate>
                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="Activity10TextBox" SkinID="CustomWidthTextBox" runat="server" Width="100%"
                                                                    MaxLength="100" onkeyup="if (/[^0-9\.]/g.test(this.value)) this.value = this.value.replace(/[^0-9\.]/g,'')"
                                                                    Text=''></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Activity11" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <HeaderTemplate>
                                                                <asp:Label ID="Activity11HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                            </HeaderTemplate>
                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="Activity11TextBox" SkinID="CustomWidthTextBox" runat="server" Width="100%"
                                                                    MaxLength="100" onkeyup="if (/[^0-9\.]/g.test(this.value)) this.value = this.value.replace(/[^0-9\.]/g,'')"
                                                                    Text=''></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Activity12" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <HeaderTemplate>
                                                                <asp:Label ID="Activity12HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                            </HeaderTemplate>
                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="Activity12TextBox" SkinID="CustomWidthTextBox" runat="server" Width="100%"
                                                                    MaxLength="100" onkeyup="if (/[^0-9\.]/g.test(this.value)) this.value = this.value.replace(/[^0-9\.]/g,'')"
                                                                    Text=''></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Activity13" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <HeaderTemplate>
                                                                <asp:Label ID="Activity13HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                            </HeaderTemplate>
                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="Activity13TextBox" SkinID="CustomWidthTextBox" runat="server" Width="100%"
                                                                    MaxLength="100" onkeyup="if (/[^0-9\.]/g.test(this.value)) this.value = this.value.replace(/[^0-9\.]/g,'')"
                                                                    Text=''></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Activity14" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <HeaderTemplate>
                                                                <asp:Label ID="Activity14HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                            </HeaderTemplate>
                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="Activity14TextBox" SkinID="CustomWidthTextBox" runat="server" Width="100%"
                                                                    MaxLength="100" onkeyup="if (/[^0-9\.]/g.test(this.value)) this.value = this.value.replace(/[^0-9\.]/g,'')"
                                                                    Text=''></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="Activity15" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <HeaderTemplate>
                                                                <asp:Label ID="Activity15HeaderLabel" Font-Bold="true" SkinID="CustomWidthTextBox" runat="server"></asp:Label>
                                                            </HeaderTemplate>
                                                            <HeaderStyle VerticalAlign="NotSet" HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="Activity15TextBox" SkinID="CustomWidthTextBox" runat="server" Width="100%"
                                                                    MaxLength="100" onkeyup="if (/[^0-9\.]/g.test(this.value)) this.value = this.value.replace(/[^0-9\.]/g,'')"
                                                                    Text=''></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>



                                                    </Columns>
                                                    <PagerSettings Visible="False" />
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </div>
                            </asp:Panel>
                        </div>

                    </div>
                </div>

                <%--HEDP History Ends Here--%>
            </div>
            </div>
            
        </ContentTemplate>
    </asp:UpdatePanel>
 <%--   <script data-main="../../JavaScript/rjs/encrypt/admission-markentry-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/admission-markentry")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
      <script type="text/javascript">
        function calobtain1(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain1HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain2(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain2HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain3(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain3HeaderLabel').text().split('-');

            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain4(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain4HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain5(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain5HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain6(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain6HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain7(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain7HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain8(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain8HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain9(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain9HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain10(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain10HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain11(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain11HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain12(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain12HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain13(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain13HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain14(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain14HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function calobtain15(obj) {
            var txtval = $(obj).val();
            var hdnval = $('#ctl00_CP_MarkEntryGridView_ctl01_Obtain15HeaderLabel').text().split('-');
            if (parseFloat(txtval) > parseFloat(hdnval[1])) {
                alert('Obtain Marks can not be greater than max marks');
                $(obj).val('');
            }
        }
        function ConfirmExecute(obj) {
            alert(obj);
        }

   
    </script>
</asp:Content>
