<%@ page language="C#" autoeventwireup="true" inherits="ApplicationSetup, App_Web_applicationsetup.aspx.de3fb1ff" enableEventValidation="false" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="~/UserControls/iERPToolBar.ascx" TagName="iERPToolBar" TagPrefix="dsit" %>
<%@ Register Src="~/UserControls/iERPUtilityBar.ascx" TagName="iERPUtilityBar" TagPrefix="dsip" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head id="Head1" runat="server">
    <title>..:: ICDAS 2.1 ::..</title>
    <meta http-equiv="X-UA-Compatible" content="IE=9" />

    <script type="text/javascript" language="javascript" src="../App_Include/JavaScript/js_functions.js"> </script>

    <script type="text/javascript" language="javascript" src="../App_Include/JavaScript/ScreenSaverStar.js"> </script>

    <script type="text/javascript" language="javascript">

        function numericFilter(txb) {
            txb.value = txb.value.replace(/[^0-9\,+]/g, "");
        }


        function resizeObject() {
            var w = getBrowserWindowSize().width;
            var h = getBrowserWindowSize().height - 5;
            //window.resizeTo(w, h);
            var cObj = document.getElementById("divChildBody");
            if (cObj != null) {
                //cObj.style.height = parseInt((h*79)/100) +"px";
                cObj.style.height = (parseInt(h) - 70) + "px";
                //cObj.style.width = parseInt(w) +"px";
            }
            hideWait();
        }

        function hidedivImg() {
            var cObj = document.getElementById("<%# divImg.ClientID %>");
            if (cObj != null) {
                cObj.style.visibility = "visible";
                cObj.style.display = "hidden";
            }
        }

        function validateTestSMS() {

            var doc = document.forms[0];
            if (doc.TxtTestSMS.value == "") {
                alert("Please Enter Mobile Number...");
                document.forms[0].TxtTestSMS.focus()
                return false;
            }

        }

        function validateTestmail() {
            var doc = document.forms[0];

            if (doc.txtTestEmail.value == "") {
                alert("Please Enter Test Email Id...");
                document.forms[0].txtTestEmail.focus()
                return false;
            }

            //            if (validateEmail(doc.txtTestEmail.value, 1, 0) == false) {
            //                alert("Invalid SMTP Email Address...");
            //                document.forms[0].txtTestEmail.focus()
            //                return false;
            //            }

            if (doc.txtSMTPEmail.value == "") {
                alert("Please Enter SMTP Email...");
                document.forms[0].txtSMTPEmail.focus()
                return false;
            }

            if (validateEmail(doc.txtSMTPEmail.value, 1, 0) == false) {
                alert("Invalid Email Address...");
                document.forms[0].txtSMTPEmail.focus()
                return false;
            }

        }
        function validateRecord() {
            var doc = document.forms[0];
            if (Trim(doc.txtBackupLocalPath.value) == "") {
                alert("Please Enter Backup Path...");
                document.forms[0].txtBackupLocalPath.focus()
                return false;
            }

//            else if (doc.cmbBackupHours.selectedIndex <= 0) {
//                alert("Please Select Backup Hours...");
//                document.forms[0].cmbBackupHours.focus()
//                return false;
//            }

//            else if (doc.cmbBackupMins.selectedIndex <= 0) {
//                alert("Please Select Backup Mins...");
//                document.forms[0].cmbBackupMins.focus()
//                return false;
//            }

            else if (Trim(doc.txtPasswordFrequency.value) == "") {
                alert("Please Enter Password  Frequency...");
                document.forms[0].txtPasswordFrequency.focus()
                return false;
            }

            else if (parseInt(doc.txtPasswordFrequency.value) < 1) {
                alert("Please Enter Password Frequency > 0...");
                document.forms[0].txtPasswordFrequency.focus();
                return false;
            }
            else if (parseInt(doc.txtPasswordFrequency.value) > 365) {
                alert("Please Enter Password Frequency <= 365...");
                document.forms[0].txtPasswordFrequency.focus();
                return false;
            }

            if (doc.hdnMainEmailSystem.value == 0 && doc.rdBtnEnabled.checked == true) {

                if (doc.txtSMTPEmail.value == "") {
                    alert("Please Enter SMTP Email...");
                    document.forms[0].txtSMTPEmail.focus()
                    return false;
                }

                if (validateEmail(doc.txtSMTPEmail.value, 1, 0) == false) {
                    alert("Invalid Email Address...");
                    document.forms[0].txtSMTPEmail.focus()
                    return false;
                }

                if (doc.txtSMTPAddress.value == "") {
                    alert("Please Enter SMTP Address...");
                    document.forms[0].txtSMTPAddress.focus()
                    return false;
                }

                if (doc.cmbSMTPAuthentication.selectedIndex == 0 && doc.txtSMTPUserName.value == "") {
                    alert("Please Enter SMTP User Name...");
                    document.forms[0].txtSMTPUserName.focus()
                    return false;
                }

                if (doc.cmbSMTPAuthentication.selectedIndex == 0 && doc.txtSMTPPassword.value == "") {
                    alert("Please Enter SMTP Password...");
                    document.forms[0].txtSMTPPassword.focus()
                    return false;
                }

            }
            if (doc.hdnMainSMSSystem.value == 0 && doc.rdBtnSMSEnabled.checked == true) {

                if (doc.txtCommunicationPort.value == "") {
                    alert("Please Enter Communication Port...");
                    document.forms[0].txtCommunicationPort.focus()
                    return false;
                }
                else if (parseInt(doc.txtCommunicationPort.value) < 1) {
                    alert("Please Enter Communication Port > 0...");
                    document.forms[0].txtCommunicationPort.focus();
                    return false;
                }
                else if (parseInt(doc.txtCommunicationPort.value) > 99) {
                    alert("Please Enter Communication Port <= 99...");
                    document.forms[0].txtCommunicationPort.focus();
                    return false;
                }
            }
            return true;
        }			
    </script>

</head>
<body bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0" onload="resizeObject(); init(); initScreenSaver('1',<%=Session["AutoLogOutTime"]%>);">
    <form id="Form1" runat="server" class="formbg">
    <asp:ToolkitScriptManager runat="Server" EnablePartialRendering="true" AsyncPostBackTimeout="0"
        ID="ToolkitScriptManager1" />
    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="left" class="formbg">
        <tr>
            <td valign="top" align="left">
                <div id="divMainBody" align="center" runat="server" width="100%" height="100%">
                    <div id="divHeader" runat="server" style="border-style: none; height: 26px; width: 100%;
                        position: absolute; left: 1px; top: 8px;" align="center">
                        <dsip:iERPUtilityBar ID="iERPUtilityBar1" runat="server" Caption="Branch Master"
                            PageAccess="11111" />
                    </div>
                    <asp:UpdatePanel ID="uplChildBody" runat="server" UpdateMode="Always">
                        <ContentTemplate>
                            <asp:HiddenField ID="hdnRecordKeyId" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnRecordIds" runat="server" Value="" />
                            <asp:HiddenField ID="hdnUserId" runat="server" Value="" />
                            <asp:HiddenField ID="hdnBusinessUnitId" runat="server" Value="" />
                            <asp:HiddenField ID="hdnBranchId" runat="server" Value="" />
                            <asp:HiddenField ID="hdnBackupTime" runat="server" Value="" />
                            <asp:HiddenField ID="hdnSMTPPassword" runat="server" Value="" />
                            <asp:HiddenField ID="hdnEmailSystem" runat="server" Value="" />
                            <asp:HiddenField ID="hdnSMSSystem" runat="server" Value="" />
                            <asp:HiddenField ID="hdnTestEmailTime" runat="server" Value="" />
                            <asp:HiddenField ID="hdnTestSMSTime" runat="server" Value="" />
                            <asp:HiddenField ID="hdnMKTTime" runat="server" Value="" />
                            <asp:HiddenField ID="hdnMovingMKTTime" runat="server" Value="" />
                            <asp:HiddenField ID="hdnMainEmailSystem" runat="server" Value="" />
                            <asp:HiddenField ID="hdnMainSMSSystem" runat="server" Value="" />
                            <%--<asp:Panel ID="divChildBody" ScrollBars="Vertical" runat="server" width="100%">--%>
                            <div id="divChildBody" runat="server" style="overflow: auto; width: 99%; position: absolute;
                                top: 62px;">
                                <table width="100%" align="left" cellpadding="1" cellspacing="0" class="tablefont">
                                    <tr>
                                        <td width="15%">
                                            Backup Local Path*
                                        </td>
                                        <td width="85%">
                                            <asp:TextBox MaxLength="500" ID="txtBackupLocalPath" runat="server" Width="99%"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="15%">
                                            Backup Remote Path
                                        </td>
                                        <td width="85%">
                                            <asp:TextBox MaxLength="500" ID="txtBackupRemotePath" runat="server" Width="99%"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="15%">
                                            Backup Time*
                                        </td>
                                        <td width="85%">
                                            <asp:DropDownList ID="cmbBackupHours" runat="server">
                                                <asp:ListItem Text="00" Value="0" Selected="True" />
                                                <asp:ListItem Text="01" Value="1" />
                                                <asp:ListItem Text="02" Value="2" />
                                                <asp:ListItem Text="03" Value="3" />
                                                <asp:ListItem Text="04" Value="4" />
                                                <asp:ListItem Text="05" Value="5" />
                                                <asp:ListItem Text="06" Value="6" />
                                                <asp:ListItem Text="07" Value="7" />
                                                <asp:ListItem Text="07" Value="7" />
                                                <asp:ListItem Text="08" Value="8" />
                                                <asp:ListItem Text="09" Value="9" />
                                                <asp:ListItem Text="10" Value="10" />
                                                <asp:ListItem Text="11" Value="11" />
                                                <asp:ListItem Text="12" Value="12" />
                                                <asp:ListItem Text="13" Value="13" />
                                                <asp:ListItem Text="14" Value="14" />
                                                <asp:ListItem Text="15" Value="15" />
                                                <asp:ListItem Text="16" Value="16" />
                                                <asp:ListItem Text="17" Value="17" />
                                                <asp:ListItem Text="18" Value="18" />
                                                <asp:ListItem Text="19" Value="19" />
                                                <asp:ListItem Text="20" Value="20" />
                                                <asp:ListItem Text="21" Value="21" />
                                                <asp:ListItem Text="22" Value="22" />
                                                <asp:ListItem Text="23" Value="23" />
                                            </asp:DropDownList>
                                            :
                                            <asp:DropDownList ID="cmbBackupMins" runat="server">
                                                <asp:ListItem Text="00" Value="0" Selected="True" />
                                                <asp:ListItem Text="01" Value="01" />
                                                <asp:ListItem Text="02" Value="02" />
                                                <asp:ListItem Text="03" Value="03" />
                                                <asp:ListItem Text="04" Value="04" />
                                                <asp:ListItem Text="05" Value="05" />
                                                <asp:ListItem Text="06" Value="06" />
                                                <asp:ListItem Text="07" Value="07" />
                                                <asp:ListItem Text="08" Value="08" />
                                                <asp:ListItem Text="09" Value="09" />
                                                <asp:ListItem Text="10" Value="10" />
                                                <asp:ListItem Text="11" Value="11" />
                                                <asp:ListItem Text="12" Value="12" />
                                                <asp:ListItem Text="13" Value="13" />
                                                <asp:ListItem Text="14" Value="14" />
                                                <asp:ListItem Text="15" Value="15" />
                                                <asp:ListItem Text="16" Value="16" />
                                                <asp:ListItem Text="17" Value="17" />
                                                <asp:ListItem Text="18" Value="18" />
                                                <asp:ListItem Text="19" Value="19" />
                                                <asp:ListItem Text="20" Value="20" />
                                                <asp:ListItem Text="21" Value="21" />
                                                <asp:ListItem Text="22" Value="22" />
                                                <asp:ListItem Text="23" Value="23" />
                                                <asp:ListItem Text="24" Value="24" />
                                                <asp:ListItem Text="25" Value="25" />
                                                <asp:ListItem Text="26" Value="26" />
                                                <asp:ListItem Text="27" Value="27" />
                                                <asp:ListItem Text="28" Value="28" />
                                                <asp:ListItem Text="29" Value="29" />
                                                <asp:ListItem Text="30" Value="30" />
                                                <asp:ListItem Text="31" Value="31" />
                                                <asp:ListItem Text="32" Value="32" />
                                                <asp:ListItem Text="33" Value="33" />
                                                <asp:ListItem Text="34" Value="34" />
                                                <asp:ListItem Text="35" Value="35" />
                                                <asp:ListItem Text="36" Value="36" />
                                                <asp:ListItem Text="37" Value="37" />
                                                <asp:ListItem Text="38" Value="38" />
                                                <asp:ListItem Text="39" Value="39" />
                                                <asp:ListItem Text="40" Value="40" />
                                                <asp:ListItem Text="41" Value="41" />
                                                <asp:ListItem Text="42" Value="42" />
                                                <asp:ListItem Text="43" Value="43" />
                                                <asp:ListItem Text="44" Value="44" />
                                                <asp:ListItem Text="45" Value="45" />
                                                <asp:ListItem Text="46" Value="46" />
                                                <asp:ListItem Text="47" Value="47" />
                                                <asp:ListItem Text="48" Value="48" />
                                                <asp:ListItem Text="49" Value="49" />
                                                <asp:ListItem Text="50" Value="50" />
                                                <asp:ListItem Text="51" Value="51" />
                                                <asp:ListItem Text="52" Value="52" />
                                                <asp:ListItem Text="53" Value="53" />
                                                <asp:ListItem Text="54" Value="54" />
                                                <asp:ListItem Text="55" Value="55" />
                                                <asp:ListItem Text="56" Value="56" />
                                                <asp:ListItem Text="57" Value="57" />
                                                <asp:ListItem Text="58" Value="58" />
                                                <asp:ListItem Text="59" Value="59" />
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr style="display: none;">
                                        <td width="15%">
                                            MKT Time*
                                        </td>
                                        <td width="85%">
                                            <asp:DropDownList ID="cmbMKTHours" runat="server">
                                                <asp:ListItem Text="00" Value="0" Selected="True" />
                                                <asp:ListItem Text="01" Value="1" />
                                                <asp:ListItem Text="02" Value="2" />
                                                <asp:ListItem Text="03" Value="3" />
                                                <asp:ListItem Text="04" Value="4" />
                                                <asp:ListItem Text="05" Value="5" />
                                                <asp:ListItem Text="06" Value="6" />
                                                <asp:ListItem Text="07" Value="7" />
                                                <asp:ListItem Text="07" Value="7" />
                                                <asp:ListItem Text="08" Value="8" />
                                                <asp:ListItem Text="09" Value="9" />
                                                <asp:ListItem Text="10" Value="10" />
                                                <asp:ListItem Text="11" Value="11" />
                                                <asp:ListItem Text="12" Value="12" />
                                                <asp:ListItem Text="13" Value="13" />
                                                <asp:ListItem Text="14" Value="14" />
                                                <asp:ListItem Text="15" Value="15" />
                                                <asp:ListItem Text="16" Value="16" />
                                                <asp:ListItem Text="17" Value="17" />
                                                <asp:ListItem Text="18" Value="18" />
                                                <asp:ListItem Text="19" Value="19" />
                                                <asp:ListItem Text="20" Value="20" />
                                                <asp:ListItem Text="21" Value="21" />
                                                <asp:ListItem Text="22" Value="22" />
                                                <asp:ListItem Text="23" Value="23" />
                                            </asp:DropDownList>
                                            :
                                            <asp:DropDownList ID="cmbMKTMinutes" runat="server">
                                                <asp:ListItem Text="00" Value="0" Selected="True" />
                                                <asp:ListItem Text="05" Value="05" />
                                                <asp:ListItem Text="10" Value="10" />
                                                <asp:ListItem Text="15" Value="15" />
                                                <asp:ListItem Text="20" Value="20" />
                                                <asp:ListItem Text="25" Value="25" />
                                                <asp:ListItem Text="30" Value="30" />
                                                <asp:ListItem Text="35" Value="35" />
                                                <asp:ListItem Text="40" Value="40" />
                                                <asp:ListItem Text="45" Value="45" />
                                                <asp:ListItem Text="50" Value="50" />
                                                <asp:ListItem Text="55" Value="55" />
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr style="display: none;">
                                        <td width="15%" visible="false">
                                            Moving MKT Time*
                                        </td>
                                        <td width="85%">
                                            <asp:DropDownList ID="cmbMovingMKTHours" runat="server">
                                                <asp:ListItem Text="00" Value="0" Selected="True" />
                                                <asp:ListItem Text="01" Value="1" />
                                                <asp:ListItem Text="02" Value="2" />
                                                <asp:ListItem Text="03" Value="3" />
                                                <asp:ListItem Text="04" Value="4" />
                                                <asp:ListItem Text="05" Value="5" />
                                                <asp:ListItem Text="06" Value="6" />
                                                <asp:ListItem Text="07" Value="7" />
                                                <asp:ListItem Text="08" Value="8" />
                                                <asp:ListItem Text="09" Value="9" />
                                                <asp:ListItem Text="10" Value="10" />
                                                <asp:ListItem Text="11" Value="11" />
                                                <asp:ListItem Text="12" Value="12" />
                                                <asp:ListItem Text="13" Value="13" />
                                                <asp:ListItem Text="14" Value="14" />
                                                <asp:ListItem Text="15" Value="15" />
                                                <asp:ListItem Text="16" Value="16" />
                                                <asp:ListItem Text="17" Value="17" />
                                                <asp:ListItem Text="18" Value="18" />
                                                <asp:ListItem Text="19" Value="19" />
                                                <asp:ListItem Text="20" Value="20" />
                                                <asp:ListItem Text="21" Value="21" />
                                                <asp:ListItem Text="22" Value="22" />
                                                <asp:ListItem Text="23" Value="23" />
                                            </asp:DropDownList>
                                            :
                                            <asp:DropDownList ID="cmbMovingMKTMinutes" runat="server">
                                                <asp:ListItem Text="00" Value="0" Selected="True" />
                                                <asp:ListItem Text="05" Value="05" />
                                                <asp:ListItem Text="10" Value="10" />
                                                <asp:ListItem Text="15" Value="15" />
                                                <asp:ListItem Text="20" Value="20" />
                                                <asp:ListItem Text="25" Value="25" />
                                                <asp:ListItem Text="30" Value="30" />
                                                <asp:ListItem Text="35" Value="35" />
                                                <asp:ListItem Text="40" Value="40" />
                                                <asp:ListItem Text="45" Value="45" />
                                                <asp:ListItem Text="50" Value="50" />
                                                <asp:ListItem Text="55" Value="55" />
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="15%">
                                            Report Date/Time Stamp*
                                        </td>
                                        <td width="85%">
                                            <asp:DropDownList ID="cmbReportDisplayDateTime" runat="server">
                                                <asp:ListItem Text="Yes" Value="Y" Selected="True" />
                                                <asp:ListItem Text="No" Value="N" />
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="15%">
                                            Password Change*
                                        </td>
                                        <td width="85%">
                                            <asp:TextBox MaxLength="3" ID="txtPasswordFrequency" runat="server" Width="4%" CssClass="numInput"></asp:TextBox>
                                            &nbsp;Frequency in Days ( Min 1 to Max 365 )
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="15%">
                                            System Auto Logout Time*
                                        </td>
                                        <td width="85%">
                                            <asp:DropDownList ID="cmbAutoLogOutTime" runat="server">
                                                <asp:ListItem Text="01" Value="1" />
                                                <asp:ListItem Text="02" Value="2" />
                                                <asp:ListItem Text="03" Value="3" />
                                                <asp:ListItem Text="04" Value="4" />
                                                <asp:ListItem Text="05" Value="5" />
                                                <asp:ListItem Text="10" Value="10" Selected="True" />
                                                <asp:ListItem Text="15" Value="15" />
                                                <asp:ListItem Text="20" Value="20" />
                                                <asp:ListItem Text="25" Value="25" />
                                                <asp:ListItem Text="30" Value="30" />
                                                <asp:ListItem Text="35" Value="35" />
                                                <asp:ListItem Text="40" Value="40" />
                                                <asp:ListItem Text="45" Value="45" />
                                                <asp:ListItem Text="50" Value="50" />
                                                <asp:ListItem Text="55" Value="55" />
                                                <asp:ListItem Text="60" Value="60" />
                                            </asp:DropDownList>&nbsp; Minutes
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="15%">
                                            User Access Lock Count*
                                        </td>
                                        <td width="85%">
                                            <asp:DropDownList ID="cmbUserLockCount" runat="server">
                                                <asp:ListItem Text="03" Value="3" />
                                                <asp:ListItem Text="04" Value="4" />
                                                <asp:ListItem Text="05" Value="5" Selected="True" />
                                                <asp:ListItem Text="06" Value="6" />
                                                <asp:ListItem Text="07" Value="7" />
                                                <asp:ListItem Text="08" Value="8" />
                                                <asp:ListItem Text="09" Value="9" />
                                                <asp:ListItem Text="10" Value="10" />
                                            </asp:DropDownList>&nbsp; No. of Attemps
                                        </td>
                                    </tr>
                                    <asp:Panel ID="pnlMainEmail" runat="server">
                                        <tr class="frametitle" height="20px">
                                            <td colspan="5">
                                                Email
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="18%">
                                                Email System*
                                            </td>
                                            <td width="82%" colspan="4">
                                                <asp:RadioButton ID="rdBtnEnabled" runat="server" GroupName="EmailSystem" Text="Enabled"
                                                    Checked="True" AutoPostBack="true" OnCheckedChanged="rdBtnEnabled_CheckedChanged" />
                                                <asp:RadioButton ID="rdBtnDisabled" runat="server" GroupName="EmailSystem" Text="Disabled"
                                                    AutoPostBack="true" OnCheckedChanged="rdBtnDisabled_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <asp:Panel ID="pnlEmail" runat="server">
                                            <tr>
                                                <td width="15%">
                                                    SMTP Authentication*
                                                </td>
                                                <td width="85%" colspan="4">
                                                    <asp:DropDownList ID="cmbSMTPAuthentication" runat="server">
                                                        <asp:ListItem Text="Yes" Value="0" Selected="True" />
                                                        <asp:ListItem Text="No" Value="1" />
                                                    </asp:DropDownList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="15%">
                                                    SMTP Email*
                                                </td>
                                                <td width="85%" colspan="4">
                                                    <asp:TextBox MaxLength="100" ID="txtSMTPEmail" runat="server" Width="49%"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="15%">
                                                    SMTP Address*
                                                </td>
                                                <td width="85%" colspan="4">
                                                    <asp:TextBox MaxLength="100" ID="txtSMTPAddress" runat="server" Width="49%"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="15%">
                                                    SMTP User Name*
                                                </td>
                                                <td width="85%" colspan="4">
                                                    <asp:TextBox MaxLength="30" ID="txtSMTPUserName" runat="server" Width="49%"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="15%">
                                                    SMTP Password*
                                                </td>
                                                <td width="85%" colspan="4">
                                                    <asp:TextBox MaxLength="20" ID="txtSMTPPassword" runat="server" Width="25%" TextMode="Password"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="15%">
                                                    SMTP Port
                                                </td>
                                                <td width="85%" colspan="4">
                                                    <asp:TextBox ID="txtEmailSMTPPort" runat="server" MaxLength="4" Width="5%" CssClass="numInput"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="15%">
                                                    Secure Sockets Layer
                                                </td>
                                                <td width="85%" colspan="4">
                                                    <asp:CheckBox ID="chkEmailSMTPSSL" runat="server" Text="Enable (SSL)" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="15%" valign="top">
                                                    Email Signature
                                                </td>
                                                <td width="85%" colspan="4">
                                                    <asp:TextBox ID="txtEmailSignature" runat="server" TextMode="MultiLine" Width="49%"
                                                        Height="50px"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="15%">
                                                    Test Email Id
                                                </td>
                                                <td width="85%" colspan="4">
                                                    <asp:TextBox MaxLength="100" ID="txtTestEmail" runat="server" Width="49%"></asp:TextBox>&nbsp;&nbsp;<asp:ImageButton
                                                        ID="imgBtntestmail" runat="server" ImageUrl="~/Images/emailtest.png" ImageAlign="AbsMiddle"
                                                        ToolTip="Test Email" BackColor="Transparent" OnClick="imgBtntestmail_Click" />&nbsp;&nbsp;(E.g.
                                                    abc@domainname.com,xyz@domainname.com)
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="15%">
                                                    Test Email Time
                                                </td>
                                                <td width="85%" colspan="4">
                                                    <asp:DropDownList ID="cmbTestEmailHours" runat="server">
                                                        <asp:ListItem Text="Hours" Value="-1" Selected="True" />
                                                        <asp:ListItem Text="00" Value="0" />
                                                        <asp:ListItem Text="01" Value="1" />
                                                        <asp:ListItem Text="02" Value="2" />
                                                        <asp:ListItem Text="03" Value="3" />
                                                        <asp:ListItem Text="04" Value="4" />
                                                        <asp:ListItem Text="05" Value="5" />
                                                        <asp:ListItem Text="06" Value="6" />
                                                        <asp:ListItem Text="07" Value="7" />
                                                        <asp:ListItem Text="07" Value="7" />
                                                        <asp:ListItem Text="08" Value="8" />
                                                        <asp:ListItem Text="09" Value="9" />
                                                        <asp:ListItem Text="10" Value="10" />
                                                        <asp:ListItem Text="11" Value="11" />
                                                        <asp:ListItem Text="12" Value="12" />
                                                        <asp:ListItem Text="13" Value="13" />
                                                        <asp:ListItem Text="14" Value="14" />
                                                        <asp:ListItem Text="15" Value="15" />
                                                        <asp:ListItem Text="16" Value="16" />
                                                        <asp:ListItem Text="17" Value="17" />
                                                        <asp:ListItem Text="18" Value="18" />
                                                        <asp:ListItem Text="19" Value="19" />
                                                        <asp:ListItem Text="20" Value="20" />
                                                        <asp:ListItem Text="21" Value="21" />
                                                        <asp:ListItem Text="22" Value="22" />
                                                        <asp:ListItem Text="23" Value="23" />
                                                    </asp:DropDownList>
                                                    :
                                                    <asp:DropDownList ID="cmbTestEmailMins" runat="server">
                                                        <asp:ListItem Text="Mins" Value="-1" Selected="True" />
                                                        <asp:ListItem Text="00" Value="0" />
                                                        <asp:ListItem Text="05" Value="05" />
                                                        <asp:ListItem Text="10" Value="10" />
                                                        <asp:ListItem Text="15" Value="15" />
                                                        <asp:ListItem Text="20" Value="20" />
                                                        <asp:ListItem Text="25" Value="25" />
                                                        <asp:ListItem Text="30" Value="30" />
                                                        <asp:ListItem Text="35" Value="35" />
                                                        <asp:ListItem Text="40" Value="40" />
                                                        <asp:ListItem Text="45" Value="45" />
                                                        <asp:ListItem Text="50" Value="50" />
                                                        <asp:ListItem Text="55" Value="55" />
                                                    </asp:DropDownList>
                                                </td>
                                            </tr>
                                        </asp:Panel>
                                    </asp:Panel>
                                    <asp:Panel ID="pnlMainSMS" runat="server">
                                        <tr class="frametitle" height="20px">
                                            <td colspan="5">
                                                SMS
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="18%">
                                                SMS System*
                                            </td>
                                            <td width="82%" colspan="4">
                                                <asp:RadioButton ID="rdBtnSMSEnabled" runat="server" GroupName="SMSSystem" Text="Enabled"
                                                    Checked="True" AutoPostBack="true" OnCheckedChanged="rdBtnSMSEnabled_CheckedChanged" />
                                                <asp:RadioButton ID="rdBtnSMSDisabled" runat="server" GroupName="SMSSystem" Text="Disabled"
                                                    AutoPostBack="true" OnCheckedChanged="rdBtnSMSDisabled_CheckedChanged" />
                                            </td>
                                        </tr>
                                        <asp:Panel ID="pnlSMS" runat="server">
                                            <tr>
                                                <td width="15%">
                                                    Communication Port
                                                </td>
                                                <td width="85%" colspan="4">
                                                    <asp:TextBox ID="txtCommunicationPort" runat="server" MaxLength="2" Width="5%" CssClass="numInput"></asp:TextBox>
                                                    ( Min 1 to Max 99 )
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="15%">
                                                    Parity
                                                </td>
                                                <td width="85%" colspan="4">
                                                    <asp:DropDownList ID="cmbParity" runat="server">
                                                        <asp:ListItem Text="Even" Value="Even" />
                                                        <asp:ListItem Text="Odd" Value="Odd" />
                                                        <asp:ListItem Text="None" Value="None" Selected="True" />
                                                    </asp:DropDownList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="15%">
                                                    Baud Rate
                                                </td>
                                                <td width="85%" colspan="4">
                                                    <asp:DropDownList ID="cmbBaudRate" runat="server">
                                                        <asp:ListItem Text="2400" Value="2400" Selected="True" />
                                                        <asp:ListItem Text="4800" Value="4800" />
                                                        <asp:ListItem Text="7200" Value="7200" />
                                                        <asp:ListItem Text="9600" Value="9600" />
                                                        <asp:ListItem Text="14400" Value="14400" />
                                                        <asp:ListItem Text="19200" Value="19200" />
                                                        <asp:ListItem Text="38400" Value="38400" />
                                                        <asp:ListItem Text="57600" Value="57600" />
                                                        <asp:ListItem Text="115200" Value="115200" />
                                                        <asp:ListItem Text="230400" Value="230400" />
                                                        <asp:ListItem Text="4680000" Value="4680000" />
                                                        <asp:ListItem Text="921600" Value="921600" />
                                                    </asp:DropDownList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="15%">
                                                    Data Bits
                                                </td>
                                                <td width="85%" colspan="4">
                                                    <asp:DropDownList ID="cmbDataBits" runat="server">
                                                        <asp:ListItem Text="4" Value="4" Selected="True" />
                                                        <asp:ListItem Text="5" Value="5" />
                                                        <asp:ListItem Text="6" Value="6" />
                                                        <asp:ListItem Text="7" Value="7" />
                                                        <asp:ListItem Text="8" Value="8" />
                                                    </asp:DropDownList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="15%">
                                                    Stop Bits
                                                </td>
                                                <td width="85%" colspan="4">
                                                    <asp:DropDownList ID="cmbStopBits" runat="server">
                                                        <asp:ListItem Text="1" Value="1" Selected="True" />
                                                        <asp:ListItem Text="2" Value="2" />
                                                    </asp:DropDownList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="15%">
                                                    Test Mobile Number
                                                </td>
                                                <td width="85%" colspan="4">
                                                    <asp:TextBox ID="TxtTestSMS" runat="server" Width="49%" MaxLength="100" onKeyUp="numericFilter(this);"></asp:TextBox>&nbsp;&nbsp;<asp:ImageButton
                                                        ID="imgBtnTestSMS" runat="server" ImageUrl="~/Images/sms-test.png" ImageAlign="AbsMiddle"
                                                        ToolTip="Graph" BackColor="Transparent" OnClick="imgBtnTestSMS_Click" />&nbsp;&nbsp;(E.g.
                                                    +919811111111,+919822222222)
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="15%">
                                                    Test SMS Time
                                                </td>
                                                <td width="85%" colspan="4">
                                                    <asp:DropDownList ID="cmbTestSMSHours" runat="server">
                                                        <asp:ListItem Text="00" Value="0" Selected="True" />
                                                        <asp:ListItem Text="01" Value="1" />
                                                        <asp:ListItem Text="02" Value="2" />
                                                        <asp:ListItem Text="03" Value="3" />
                                                        <asp:ListItem Text="04" Value="4" />
                                                        <asp:ListItem Text="05" Value="5" />
                                                        <asp:ListItem Text="06" Value="6" />
                                                        <asp:ListItem Text="07" Value="7" />
                                                        <asp:ListItem Text="07" Value="7" />
                                                        <asp:ListItem Text="08" Value="8" />
                                                        <asp:ListItem Text="09" Value="9" />
                                                        <asp:ListItem Text="10" Value="10" />
                                                        <asp:ListItem Text="11" Value="11" />
                                                        <asp:ListItem Text="12" Value="12" />
                                                        <asp:ListItem Text="13" Value="13" />
                                                        <asp:ListItem Text="14" Value="14" />
                                                        <asp:ListItem Text="15" Value="15" />
                                                        <asp:ListItem Text="16" Value="16" />
                                                        <asp:ListItem Text="17" Value="17" />
                                                        <asp:ListItem Text="18" Value="18" />
                                                        <asp:ListItem Text="19" Value="19" />
                                                        <asp:ListItem Text="20" Value="20" />
                                                        <asp:ListItem Text="21" Value="21" />
                                                        <asp:ListItem Text="22" Value="22" />
                                                        <asp:ListItem Text="23" Value="23" />
                                                    </asp:DropDownList>
                                                    :
                                                    <asp:DropDownList ID="cmbTestSMSMins" runat="server">
                                                        <asp:ListItem Text="00" Value="0" Selected="True" />
                                                        <asp:ListItem Text="05" Value="10" />
                                                        <asp:ListItem Text="10" Value="10" />
                                                        <asp:ListItem Text="15" Value="15" />
                                                        <asp:ListItem Text="20" Value="20" />
                                                        <asp:ListItem Text="25" Value="25" />
                                                        <asp:ListItem Text="30" Value="30" />
                                                        <asp:ListItem Text="35" Value="35" />
                                                        <asp:ListItem Text="40" Value="40" />
                                                        <asp:ListItem Text="45" Value="45" />
                                                        <asp:ListItem Text="50" Value="50" />
                                                        <asp:ListItem Text="55" Value="55" />
                                                    </asp:DropDownList>
                                                </td>
                                            </tr>
                                        </asp:Panel>
                                    </asp:Panel>
                                    <asp:Panel ID="pnlRestart" runat="server" Visible="false">
                                        <tr class="frametitle" height="20px">
                                            <td colspan="5">
                                                Restart Server Service
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="15%">
                                                Server Service
                                            </td>
                                            <td width="85%" colspan="4">
                                                <asp:DropDownList ID="cmbRestartServerService" runat="server">
                                                    <asp:ListItem Text="No" Value="0" Selected="True" />
                                                    <asp:ListItem Text="Yes" Value="1" />
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                    </asp:Panel>
                                </table>
                            </div>
                            <%--</asp:Panel>--%>
                        </ContentTemplate>
                        <Triggers>
                        </Triggers>
                    </asp:UpdatePanel>
                    <div id="divImg" runat="server" align="center" style="width: 100%; height: 1500px;
                        visibility: hidden; top: 0px; left: 0px; position: absolute; background-color: #333333;
                        padding-left: 10%; text-align: center; vertical-align: middle; filter: alpha(opacity=90);
                        opacity: 0.90;">
                        <%--filter: alpha(opacity=75); opacity: 0.75;--%>
                        <%--<div id="divImg" runat="server" class="LockOff">--%>
                        <br />
                        <br />
                        <asp:Panel ID="pnlImg" runat="server" BorderColor="Silver" BorderStyle="Ridge" BackColor="White"
                            BorderWidth="5" Width="70%" Height="100px">
                            <table class="subtitle" id="Table11" cellspacing="1" cellpadding="1" width="100%"
                                align="center" border="0">
                                <tr>
                                    <td align="left">
                                        <b>&nbsp;Image Upload</b>
                                    </td>
                                    <td align="right">
                                        <asp:ImageButton ID="ImgOk" runat="server" ImageUrl="~/ToolBarIcon/button-ok-icon.png"
                                            Height="24px" Width="54px" ToolTip="Ok" BackColor="Transparent" OnClick="ImgOk_Click" />
                                        <asp:ImageButton ID="ImgClose" runat="server" ImageUrl="~/ToolBarIcon/button-cancel-icon.png"
                                            Height="24px" Width="54px" ToolTip="Cancel" BackColor="Transparent" OnClick="ImgClose_Click" />
                                    </td>
                                </tr>
                            </table>
                            <table class="formbg" id="Table12" cellspacing="1" cellpadding="1" width="99%" align="left"
                                border="0">
                                <tr align="left">
                                    <td width="15%">
                                        &nbsp;Select File
                                    </td>
                                    <td width="85%">
                                        <input id="CTId" style="width: 17px" type="hidden" value="0" name="CTId" runat="server" />
                                        <input id="TType" style="width: 15px" type="hidden" value="a" name="TType" runat="server" />
                                        <input onkeypress="suppresskey();" onchange="CaptionName();" id="ImgTL" style="width: 90%;
                                            border-top-style: groove; border-right-style: groove; border-left-style: groove;
                                            height: 20px; border-bottom-style: groove" type="file" size="80" name="fileUpload"
                                            runat="server" />
                                    </td>
                                </tr>
                                <tr align="left">
                                    <td width="15%">
                                        &nbsp;File Caption
                                    </td>
                                    <td width="85%">
                                        <asp:TextBox ID="txtFileCaption" runat="server" Width="80%" MaxLength="95"></asp:TextBox>
                                        <a target="_blank" onclick="viewdivImg();" style="cursor: pointer;">View File</a>
                                    </td>
                                </tr>
                                <tr align="left">
                                    <td width="15%">
                                    </td>
                                    <td width="85%">
                                        <asp:CheckBox ID="cbxExist" runat="server" Text="Overwright Existing File" Checked="false" />
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </div>
                </div>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
