<%@ page language="C#" autoeventwireup="true" inherits="iERPLogin, App_Web_ierplogin.aspx.cdcab7d2" enableEventValidation="false" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<!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">
<head id="Head1" runat="server">
    <title>..:: ICDAS 2.1 ::..</title>
    <meta http-equiv="X-UA-Compatible" content="IE=9">
    <link href="App_Themes/iERP/style.css" rel="stylesheet" type="text/css" />

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

    <script language="javascript" type="text/javascript">
    
        function validate() {
            var doc = document.forms[0];
            doc.SWidth.value = screen.width;
            doc.SHeight.value = screen.height;
        }
        function visibility() {
            if (document.getElementById("ErrorMsg") != null) {
                document.getElementById("ErrorMsg").style.visibility = "hidden";
            }
        }
        function testEnterKey() {
            if (event.keyCode == 13) {
                event.cancelBubble = true;
                event.returnValue = false;
                document.forms[0].btnImgLogin.click();
            }
        }
        function resizeObject() {
            var w = getBrowserWindowSize().width;
            var h = getBrowserWindowSize().height - 0;

            var cObj = document.getElementById("Form1");
            if (cObj != null) {
                cObj.style.height = (parseInt(h)) + "px";
            }

            var cObj = document.getElementById("topspace");
            if (cObj != null) {
                cObj.style.height = ((parseInt(h) / 3) - 10) + "px";
            }

        }	        
         	
    </script>

</head>
<body class="mainbg">
    <form id="Form1" runat="server">
    <asp:ToolkitScriptManager runat="Server" EnablePartialRendering="true" AsyncPostBackTimeout="0"
        ID="ScriptManager1" />
    <table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
        <tr>
            <td align="left">
                <img src="Images/ImagesiERP/logo-2.jpg" border="0" vspace="32" />
                <br />
                <br />
            </td>
        </tr>
    </table>
    <table width="30%" border="0" align="right" cellpadding="2" cellspacing="2">
        <tr>
            <td width="30%" rowspan="6" align="center" valign="middle">
                <img src="Images/ImagesiERP/login-icon.png" width="96" height="95" />
            </td>
            <td width="70%" height="40" align="left" valign="top" class="LoginFont">
                Login
            </td>
        </tr>
        <tr>
            <td height="30" align="left" valign="bottom" class="LOGIN-TEXT">
                Login Name
            </td>
        </tr>
        <tr>
            <td align="left" valign="top">
                <asp:TextBox ID="txtUserName" runat="server" MaxLength="20" class="LOGIN-TEXT1" autocomplete="off"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td height="30" align="left" valign="bottom" class="LOGIN-TEXT">
                Password
            </td>
        </tr>
        <tr>
            <td align="left" valign="top">
                <%--textbox is added to remove savepassword prompt in browser--%>
                <asp:TextBox ID="txthiddenPassword" runat="server" TextMode="Password" Style="display: none;"></asp:TextBox>
                <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" MaxLength="15" class="LOGIN-TEXT1"
                    autocomplete="off"></asp:TextBox>
                <asp:HiddenField ID="SWidth" runat="server" />
                <asp:HiddenField ID="SHeight" runat="server" />
            </td>
        </tr>
        <tr>
            <td height="50" align="left" valign="middle">
                <asp:ImageButton ID="ImgBtnLogin" runat="server" align="absmiddle" ToolTip="Login"
                    Width="79" Height="29" BorderWidth="0px" ImageUrl="Images/ImagesiERP/login-bt.png"
                    OnClick="ImgBtnLogin_Click" border="0" />
            </td>
        </tr>
        <tr>
            <td valign="top" align="center" colspan="2">
                <asp:Panel ID="ErrorMsg" runat="server" Visible="false">
                    <table width="80%" align="center" cellpadding="0" height="25" cellspacing="0" style="border-style: outset;
                        border-width: thin;">
                        <tr>
                            <td valign="middle" align="left" style="background: red;">
                                &nbsp;<img src="Images/error-24.png" width="24" height="20" align="absmiddle">
                                <asp:Label ID="lblError" runat="server" ForeColor="White" Font-Bold="true"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td height="150">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="center" colspan="2" height="30" valign="bottom" class="LOGIN-TEXT">
               VERSION : 2.1.1
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
